Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.62 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html lang="en" <?php language_attributes(); ?>>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  6. <meta name="apple-mobile-web-app-capable" content="yes"/>
  7.  
  8. <!--[if IE 8]>
  9. <?php
  10. global $is_IE;
  11. if ( $is_IE ){
  12. wp_enqueue_style("ie8", get_template_directory_uri()."/style/ie8.css" , false, "1.0");
  13. }
  14. ?>
  15. <![endif]-->
  16. <meta name="apple-mobile-web-app-capable" content="yes"/>
  17. <title><?php bloginfo("name"); ?> : <?php the_title(); ?></title>
  18. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" />
  19. <style>
  20. i.contact_icon{
  21. display: block;
  22. float: left;
  23. font-size: 39px;
  24. text-align: center;
  25. background-color: #e7a60b;
  26. color: #fff;
  27. width: 44px;
  28. height: 44px;
  29. margin-right: 15px;
  30. padding-top: 3px;
  31. }
  32. </style>
  33. <?php
  34. wp_enqueue_style("main", get_template_directory_uri()."/style/global.css" , false, "1.1");
  35. wp_enqueue_style("fonts", get_template_directory_uri()."/style/fonts/stylesheet.css" , false, "1.0");
  36. wp_enqueue_style("font_awesome", "http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.3/css/font-awesome.css" , false, "1.0");
  37. //wp_enqueue_style("scrollpane_css", get_template_directory_uri()."/style/jquery.jscrollpane.css" , false, "1.0");
  38. wp_enqueue_style("liteaccordion", get_template_directory_uri()."/scripts/liteaccordion.css" , false, "1.0");
  39. wp_enqueue_style("anim", get_template_directory_uri()."/style/anim.css" , false, "1.0");
  40. if(get_field("skins","options") == "Dark"){
  41. wp_enqueue_style("dark_skin", get_template_directory_uri()."/style/dark.css" , false, "1.0");
  42. }
  43. if(get_field("enable_responsive","options")){
  44. wp_enqueue_style("responsive", get_template_directory_uri()."/style/responsive.css" , false, "1.0");
  45. }
  46. if ( is_singular() && get_option( 'thread_comments' ) ){
  47. wp_enqueue_script( 'comment-reply' );
  48. }
  49. global $fonts;
  50. $font = get_field("google_fonts","options");
  51. if($font != "Robotto"):
  52. $fonti;
  53. foreach($fonts as $fnt){
  54. if($fnt["name"] == $font){
  55. $fonti = $fnt;
  56. break;
  57. }
  58. }
  59. echo $fonti["url"];
  60. endif;
  61. ?>
  62. <?php wp_enqueue_script( 'jquery' ); ?>
  63. <?php
  64. wp_enqueue_script("umbrella_twitterfeed", get_template_directory_uri()."/scripts/jquery.twitterfeed.js" , false, "1.0");
  65. wp_enqueue_script("css3_prefix", get_template_directory_uri()."/scripts/prefixfree.min.js" , false, "1.0");
  66. wp_enqueue_script("jquery.scrollTo", get_template_directory_uri()."/scripts/jquery.scrollTo-1.4.3.1-min.js" , false, "1.0");
  67. //wp_enqueue_script("scrollpane", get_template_directory_uri()."/scripts/jquery.jscrollpane.min.js" , false, "1.0");
  68. //wp_enqueue_script("mousewheel", get_template_directory_uri()."/scripts/jquery.mousewheel.js" , false, "1.0");
  69. wp_enqueue_script("move_js", get_template_directory_uri()."/scripts/move.js" , false, "1.0");
  70. wp_enqueue_script("modernizr", get_template_directory_uri()."/scripts/modernizr.custom.02353.js" , false, "1.0");
  71. wp_enqueue_script("easing", get_template_directory_uri()."/scripts/jquery.easing.1.3.js" , false, "1.0");
  72. wp_enqueue_script("liteaccordion_script", get_template_directory_uri()."/scripts/liteaccordion.jquery.js" , false, "1.0");
  73. wp_enqueue_script("kinetick", get_template_directory_uri()."/scripts/jquery.kinetic.min.js" , false, "1.0");
  74. if(get_field("animation","options")){
  75. wp_enqueue_script("global", get_template_directory_uri()."/scripts/global.js" , false, "1.0");
  76. }
  77. wp_enqueue_script("script", get_template_directory_uri()."/scripts/script.js" , false, "1.0");
  78. wp_enqueue_script("google_map", "https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false" , false, "1.0");
  79. /*Supersized*/
  80. if(is_page()){
  81. $template = basename(get_page_template());
  82. if($template == "template-home.php"){
  83. wp_enqueue_style("supersized", get_template_directory_uri()."/css/supersized.css" , false, "1.0");
  84. wp_enqueue_script("supersized2", get_template_directory_uri()."/scripts/supersized.3.2.7.js" , false, "1.0");
  85. wp_enqueue_script("supersized3", get_template_directory_uri()."/scripts/supersized.shutter.js" , false, "1.0");
  86. }
  87. }
  88. else{
  89. $template = "category";
  90. }
  91. /*Supersized*/
  92. ?>
  93. <style>
  94. .error{
  95. border:1px solid #DC1430 !important;
  96. }
  97. </style>
  98. <?php if(get_field("google_analytics","options")): ?>
  99. <?php the_field("google_analytics","options"); ?>
  100. <?php endif; ?>
  101.  
  102. <?php if(get_field("custom_php","options")): ?>
  103. <?php eval(get_field("custom_php","options")); ?>
  104. <?php endif; ?>
  105. <?php if(get_field("animation","options")): ?>
  106. <style>
  107. .widget_anim{
  108. transform: scale(1.2);
  109. opacity:0;
  110. }
  111. </style>
  112. <?php endif; ?>
  113.  
  114. <?php if(get_field("favicon","options")): ?>
  115. <link rel="icon" type="image/png" href="<?php $img = get_field("favicon","options");echo $img["url"]; ?>">
  116. <?php endif; ?>
  117.  
  118. <?php wp_head(); ?>
  119. <?php include "headingoptions.php"; ?>
  120. <?php if(get_field("custom_css","options")): ?>
  121. <style>
  122. <?php the_field("custom_css","options"); ?>
  123. </style>
  124. <?php endif; ?>
  125. </head>
  126.  
  127. <div id="ajax_wrap"></div>
  128. <div id="ajax_loader">
  129. <div id="facebookG">
  130. <div id="blockG_1" class="facebook_blockG">
  131. </div>
  132. <div id="blockG_2" class="facebook_blockG">
  133. </div>
  134. <div id="blockG_3" class="facebook_blockG">
  135. </div>
  136. </div>
  137. </div>
  138. <style>
  139. div#ajax_wrap
  140. {
  141. position:fixed;
  142. z-index:9999998;
  143. background:#fff;
  144. opacity:0.5;
  145. width:50000px;
  146. height:50000px;
  147. top: 0;
  148. }
  149. div#ajax_loader{
  150. position:fixed;
  151. left: 50%;
  152. top: 50%;
  153. z-index:9999999;
  154. }
  155. #facebookG{
  156. width:64px}
  157.  
  158. .facebook_blockG{
  159. background-color:#D9D9D9;
  160. border:2px solid #;
  161. float:left;
  162. height:46px;
  163. margin-left:3px;
  164. width:12px;
  165. -webkit-animation-name:bounceG;
  166. -webkit-animation-duration:1s;
  167. -webkit-animation-iteration-count:infinite;
  168. -webkit-animation-direction:linear;
  169. -webkit-transform:scale(0.7);
  170. -moz-animation-name:bounceG;
  171. -moz-animation-duration:1s;
  172. -moz-animation-iteration-count:infinite;
  173. -moz-animation-direction:linear;
  174. -moz-transform:scale(0.7);
  175. -o-animation-name:bounceG;
  176. -o-animation-duration:1s;
  177. -o-animation-iteration-count:infinite;
  178. -o-animation-direction:linear;
  179. -o-transform:scale(0.7);
  180. -ms-animation-name:bounceG;
  181. -ms-animation-duration:1s;
  182. -ms-animation-iteration-count:infinite;
  183. -ms-animation-direction:linear;
  184. -ms-transform:scale(0.7);
  185. opacity:0.1;
  186. }
  187.  
  188. #blockG_1{
  189. -webkit-animation-delay:0.3s;
  190. -moz-animation-delay:0.3s;
  191. -o-animation-delay:0.3s;
  192. -ms-animation-delay:0.3s;
  193. }
  194.  
  195. #blockG_2{
  196. -webkit-animation-delay:0.4s;
  197. -moz-animation-delay:0.4s;
  198. -o-animation-delay:0.4s;
  199. -ms-animation-delay:0.4s;
  200. }
  201.  
  202. #blockG_3{
  203. -webkit-animation-delay:0.5s;
  204. -moz-animation-delay:0.5s;
  205. -o-animation-delay:0.5s;
  206. -ms-animation-delay:0.5s;
  207. }
  208.  
  209. @-webkit-keyframes bounceG{
  210. 0%{
  211. -webkit-transform:scale(1.2);
  212. opacity:1}
  213.  
  214. 100%{
  215. -webkit-transform:scale(0.7);
  216. opacity:0.1}
  217.  
  218. }
  219.  
  220. @-moz-keyframes bounceG{
  221. 0%{
  222. -moz-transform:scale(1.2);
  223. opacity:1}
  224.  
  225. 100%{
  226. -moz-transform:scale(0.7);
  227. opacity:0.1}
  228.  
  229. }
  230.  
  231. @-o-keyframes bounceG{
  232. 0%{
  233. -o-transform:scale(1.2);
  234. opacity:1}
  235.  
  236. 100%{
  237. -o-transform:scale(0.7);
  238. opacity:0.1}
  239.  
  240. }
  241.  
  242. @-ms-keyframes bounceG{
  243. 0%{
  244. -ms-transform:scale(1.2);
  245. opacity:1}
  246.  
  247. 100%{
  248. -ms-transform:scale(0.7);
  249. opacity:0.1}
  250.  
  251. }
  252. </style>
  253.  
  254. <?php
  255. $background = '';
  256. if(is_page()){
  257. if($template == "template-home.php"){
  258. $images = get_field("background_images");
  259. $divs = array();
  260. if(count($images)){
  261. $display = "opacity:1;";
  262. foreach($images as $image){
  263. $grayscale = get_field("grayscale_images","options") ? "grayscale" : "";
  264. $img = $image["image"]["url"];
  265. $tmparr = array();
  266. $tmparr["image"] = $img;
  267. array_push($divs,$tmparr);
  268. //$divs .= "<div class='{$grayscale} bg' style='background: url(\"{$img}\") no-repeat center center fixed;background-size: cover;{$display}'></div>";
  269. //$display = "opacity:0;";
  270. }
  271. }
  272. }else{
  273. $image = get_field("background_image");
  274. if($image){
  275. $background = 'style=\'background: url("'.$image['url'].'") no-repeat center center fixed;background-size: cover;\'';
  276. }
  277. else{
  278. $color = get_field("no_image_color","options");
  279. $background = "style='background:{$color}'";
  280. }
  281. }
  282. }else{
  283. $image = get_field("background_image");
  284. $global_image = get_field("posts_background","options");
  285. if($image){
  286. $background = 'style=\'background: url("'.$image['url'].'") no-repeat center center fixed;background-size: cover;\'';
  287. }elseif($global_image){
  288. $background = 'style=\'background: url("'.$global_image['url'].'") no-repeat center center fixed;background-size: cover;\'';
  289. }
  290. else{
  291. $color = get_field("no_image_color","options");
  292. $background = "style='background:{$color}'";
  293. }
  294. }
  295. if(!isset($divs)){
  296. $divs = array(""=>"");
  297. }
  298. ?>
  299. <body <?php body_class(); ?>>
  300. <?php if($template != "template-home.php"): ?>
  301. <div <?php echo $background; ?> class="<?php if(get_field("grayscale_images","options")){echo "grayscale"; } ?> bg"></div>
  302. <?php else: ?>
  303. <div id="backgroud">
  304. <script>
  305. var slides = <?php echo json_encode($divs); ?>;
  306. jQuery(document).ready(function(){
  307. jQuery.supersized({
  308. autoplay : true,
  309. slide_links :false,
  310. slide_interval:3000,
  311. transition:1,
  312. transition_speed:700,
  313. slideshow:1,
  314. slides : slides,
  315. })
  316. });
  317. </script>
  318. <?php if(get_field("grayscale_images","options")): ?>
  319. <style>
  320. #supersized img{
  321. filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
  322. filter: gray; /* IE6-9 */
  323. -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
  324. }
  325. </style>
  326. <?php endif; ?>
  327. </div>
  328. <?php endif; ?>
  329. <div class="wrapper">
  330. <div class="content">
  331. <ul class="mobile_social_media">
  332. <?php if(get_field("facebook_profile","options")): ?>
  333. <li><a href="<?php the_field("facebook_profile","options"); ?>" class="fb nodialog"></a></li>
  334. <?php endif; ?>
  335. <?php if(get_field("twitter_profile","options")): ?>
  336. <li><a href="<?php the_field("twitter_profile","options"); ?>" class="tw nodialog"></a></li>
  337. <?php endif; ?>
  338. </ul>
  339. </div><br style="clear:both;">
  340. <div class="header">
  341. <div class="content">
  342. <div class="logo"><a href="<?php bloginfo("wpurl"); ?>">
  343. <?php if(get_field("site_logo","options")): ?>
  344. <img src="<?php $img = get_field("site_logo","options");echo $img["url"];?>"/>
  345. <?php else : ?>
  346. <?php echo str_replace(".","<span>.</span>",get_bloginfo("name")); ?>
  347. <?php endif; ?>
  348. </a></div>
  349. <div class="navigation_holder <?php if(get_field("enable_kinetik","options")){echo " navigation_holder_extended";} ?>">
  350. <div class="navigation_box">
  351. <ul class="navigation">
  352. <?php
  353. $current_menu = get_nav_menu_locations();
  354. $current_menu = $current_menu["main_menu"];
  355. $menu_items = wp_get_nav_menu_items($current_menu);
  356. $this_url = curPageURL();
  357. if($menu_items):
  358. foreach($menu_items as $menu):
  359. $menu_id = $menu->ID;
  360. $child_menu = array();
  361. if($menu->menu_item_parent){continue;}
  362. foreach($menu_items as $child_menu_item){
  363. if($child_menu_item->menu_item_parent == $menu_id){
  364. array_push($child_menu,$child_menu_item);
  365. }
  366. }
  367. ?>
  368. <li>
  369. <a href="<?php echo $menu->url; ?>" class="<?php if($this_url == $menu->url): ?> current<?php endif; ?>"><?php echo $menu->title?></a>
  370. <?php
  371. if($child_menu):
  372. ?>
  373. <ul class="sub_menu">
  374. <?php
  375. foreach($child_menu as $child_menu_item):
  376. ?>
  377. <li><a href="<?php echo $child_menu_item->url; ?>"><?php echo $child_menu_item->title?></a></li>
  378. <?php
  379. endforeach;
  380. ?>
  381. </ul>
  382. <?php
  383. endif;
  384. ?>
  385. </li>
  386. <?php
  387. endforeach;
  388. endif;
  389. ?>
  390. </ul>
  391. </div>
  392. </div>
  393. <ul class="mobile_navigation dropped">
  394. <a href="#" class="nav_item">Navigation <span></span></a>
  395. <?php
  396. $current_menu = get_nav_menu_locations();
  397. $current_menu = $current_menu["main_menu"];
  398. $menu_items = wp_get_nav_menu_items($current_menu);
  399. $this_url = curPageURL();
  400. if($menu_items):
  401. foreach($menu_items as $menu):
  402. ?>
  403. <li><a href="<?php echo $menu->url; ?>" class="<?php if($this_url == $menu->url): ?> current<?php endif; ?>"><?php echo $menu->title?></a></li>
  404. <?php
  405. endforeach;
  406. endif;
  407. ?>
  408. </ul>
  409. <ul class="social_media">
  410. <?php if(get_field("facebook_profile","options")): ?>
  411. <li><a href="<?php the_field("facebook_profile","options"); ?>" class="fb nodialog"></a></li>
  412. <?php endif; ?>
  413. <?php if(get_field("twitter_profile","options")): ?>
  414. <li><a href="<?php the_field("twitter_profile","options"); ?>" class="tw nodialog"></a></li>
  415. <?php endif; ?>
  416. <li><a href="http://url.com" class="fawesome nodialog"><i class="fa fa-linkedin"></i></a></li>
  417. <style>
  418. .fawesome{
  419. color: #fff;
  420. background-image: none !important;
  421. text-align: center;
  422. }
  423. .fawesome i{ padding-top: 2px; }
  424. </style>
  425. </ul>
  426. </div>
  427. </div><!--Close Header-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement