Advertisement
Guest User

Ripple CG Wordpress help for Vinod Dalvi

a guest
Jun 4th, 2014
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.40 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5.  
  6. <title><?php bloginfo('name');?><?php wp_title(' - ', true, 'left'); ?></title>
  7.  
  8. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" />
  9.  
  10. <!--[if lt IE 9]>
  11. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/respond.min.js"></script>
  12. <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>
  13. <?
  14.  
  15. ?>/css/ie.css" />
  16. <![endif]-->
  17.  
  18. <?php global $data; ?>
  19. <?php if($data['responsive']): ?>
  20. <?php $isiPad = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPad');
  21. if(!$isiPad || !$data['ipad_potrait']): ?>
  22. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  23. <?php endif; ?>
  24. <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/media.css" />
  25. <?php if(!$data['ipad_potrait']): ?>
  26. <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ipad.css" />
  27. <?php else: ?>
  28. <style type="text/css">
  29. @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait){
  30. #wrapper{
  31. width:1100px !important;
  32. }
  33. }
  34. @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape){
  35. #wrapper{
  36. width:1100px !important;
  37. }
  38. }
  39. </style>
  40. <?php endif; ?>
  41. <?php else: ?>
  42. <style type="text/css">
  43. @media only screen and (min-device-width : 768px) and (max-device-width : 1024px){
  44. #wrapper{
  45. width:1100px !important;
  46. }
  47. }
  48. </style>
  49. <?php $isiPhone = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPhone');
  50. if($isiPhone):
  51. ?>
  52. <style type="text/css">
  53. @media only screen and (min-device-width : 320px) and (max-device-width : 480px){
  54. #wrapper{
  55. width:1024px !important;
  56. }
  57. }
  58. </style>
  59. <?php endif; ?>
  60. <?php endif; ?>
  61.  
  62. <?php if($data['google_body'] && $data['google_body'] != 'Select Font'): ?>
  63. <link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['google_body']); ?>:400,400italic,700,700italic&amp;subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
  64. <?php endif; ?>
  65.  
  66. <?php if($data['google_nav'] && $data['google_nav'] != 'Select Font'): ?>
  67. <link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['google_nav']); ?>:400,400italic,700,700italic&amp;subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
  68. <?php endif; ?>
  69.  
  70. <?php if($data['google_headings'] && $data['google_headings'] != 'Select Font'): ?>
  71. <link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['google_headings']); ?>:400,400italic,700,700italic&amp;subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
  72. <?php endif; ?>
  73.  
  74. <?php if($data['google_footer_headings'] && $data['google_footer_headings'] != 'Select Font'): ?>
  75. <link href='http://fonts.googleapis.com/css?family=<?php echo urlencode($data['google_footer_headings']); ?>:400,400italic,700,700italic&amp;subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
  76. <?php endif; ?>
  77.  
  78. <?php if($data['favicon']): ?>
  79. <link rel="shortcut icon" href="<?php echo $data['favicon']; ?>" type="image/x-icon" />
  80. <?php endif; ?>
  81.  
  82. <?php if($data['iphone_icon']): ?>
  83. <!-- For iPhone -->
  84. <link rel="apple-touch-icon-precomposed" href="<?php echo $data['iphone_icon']; ?>">
  85. <?php endif; ?>
  86.  
  87. <?php if($data['iphone_icon_retina']): ?>
  88. <!-- For iPhone 4 Retina display -->
  89. <link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo $data['iphone_icon_retina']; ?>">
  90. <?php endif; ?>
  91.  
  92. <?php if($data['ipad_icon']): ?>
  93. <!-- For iPad -->
  94. <link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo $data['ipad_icon']; ?>">
  95. <?php endif; ?>
  96.  
  97. <?php if($data['ipad_icon_retina']): ?>
  98. <!-- For iPad Retina display -->
  99. <link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo $data['ipad_icon_retina']; ?>">
  100. <?php endif; ?>
  101.  
  102. <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
  103.  
  104. <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
  105.  
  106. <?php wp_head(); ?>
  107.  
  108. <!--[if IE 8]>
  109. <script type="text/javascript">
  110. jQuery(document).ready(function() {
  111. var imgs, i, w;
  112. var imgs = document.getElementsByTagName( 'img' );
  113. for( i = 0; i < imgs.length; i++ ) {
  114. w = imgs[i].getAttribute( 'width' );
  115. if ( 615 < w ) {
  116. imgs[i].removeAttribute( 'width' );
  117. imgs[i].removeAttribute( 'height' );
  118. }
  119. }
  120. });
  121. </script>
  122. <![endif]-->
  123. <script type="text/javascript">
  124. jQuery(window).load(function() {
  125. jQuery('.tfs-slider').flexslider({
  126. animation: "<?php if($data['tfs_animation']) { echo $data['tfs_animation']; } else { echo 'fade'; } ?>",
  127. slideshow: <?php if($data['tfs_autoplay']) { echo 'true'; } else { echo 'false'; } ?>,
  128. slideshowSpeed: <?php if($data['tfs_slideshow_speed']) { echo $data['tfs_slideshow_speed']; } else { echo '7000'; } ?>,
  129. animationSpeed: <?php if($data['tfs_animation_speed']) { echo $data['tfs_animation_speed']; } else { echo '600'; } ?>,
  130. smoothHeight: true
  131. });
  132.  
  133. jQuery('.flexslider').flexslider({
  134. slideshow: <?php if($data["slideshow_autoplay"]) { echo 'true'; } else { echo 'false'; } ?>,
  135. });
  136.  
  137. jQuery('.full-video, .video-shortcode, .wooslider .slide-content').fitVids();
  138.  
  139. if(jQuery('.fullwidthbanner-container').length >=1 && jQuery('.tp-bannershadow').length == 0) {
  140. jQuery('<div class="shadow-left">').appendTo('.rev_slider_wrapper');
  141. jQuery('<div class="shadow-right">').appendTo('.rev_slider_wrapper');
  142.  
  143. jQuery('.fullwidthbanner-container').addClass('avada-skin-rev');
  144. }
  145.  
  146. jQuery('.tparrows').each(function() {
  147. if(jQuery(this).css('visibility') == 'hidden') {
  148. jQuery(this).remove();
  149. }
  150. });
  151. });
  152. jQuery(document).ready(function($) {
  153. function onAfter(curr, next, opts, fwd) {
  154. var $ht = $(this).height();
  155.  
  156. //set the container's height to that of the current slide
  157. $(this).parent().animate({height: $ht});
  158. }
  159.  
  160. $('.reviews').cycle({
  161. fx: 'fade',
  162. after: onAfter,
  163. <?php if($data['testimonials_speed']): ?>
  164. timeout: <?php echo $data['testimonials_speed']; ?>
  165. <?php endif; ?>
  166. });
  167.  
  168. <?php if($data['image_rollover']): ?>
  169. /*$('.image').live('mouseenter', function(e) {
  170. if(!$(this).hasClass('slided')) {
  171. $(this).find('.image-extras').show().stop(true, true).animate({opacity: '1', left: '0'}, 400);
  172. $(this).addClass('slided');
  173. } else {
  174. $(this).find('.image-extras').stop(true, true).fadeIn('normal');
  175. }
  176. });
  177. $('.image-extras').mouseleave(function(e) {
  178. $(this).fadeOut('normal');
  179. });*/
  180. <?php endif; ?>
  181.  
  182. var ppArgs = {
  183. <?php if($data["lightbox_animation_speed"]): ?>
  184. animation_speed: '<?php echo strtolower($data["lightbox_animation_speed"]); ?>',
  185. <?php endif; ?>
  186. overlay_gallery: <?php if($data["lightbox_gallery"]) { echo 'true'; } else { echo 'false'; } ?>,
  187. autoplay_slideshow: <?php if($data["lightbox_autoplay"]) { echo 'true'; } else { echo 'false'; } ?>,
  188. <?php if($data["lightbox_slideshow_speed"]): ?>
  189. slideshow: <?php echo $data['lightbox_slideshow_speed']; ?>,
  190. <?php endif; ?>
  191. <?php if($data["lightbox_opacity"]): ?>
  192. opacity: <?php echo $data['lightbox_opacity']; ?>,
  193. <?php endif; ?>
  194. show_title: <?php if($data["lightbox_title"]) { echo 'true'; } else { echo 'false'; } ?>,
  195. <?php if(!$data["lightbox_social"]) { echo 'social_tools: "",'; } ?>
  196. };
  197.  
  198. $("a[rel^='prettyPhoto']").prettyPhoto(ppArgs);
  199.  
  200. <?php if($data['lightbox_post_images']): ?>
  201. $('.single-post .post-content a').has('img').prettyPhoto(ppArgs);
  202. <?php endif; ?>
  203.  
  204. var mediaQuery = 'desk';
  205.  
  206. if (Modernizr.mq('only screen and (max-width: 600px)') || Modernizr.mq('only screen and (max-height: 520px)')) {
  207.  
  208. mediaQuery = 'mobile';
  209. $("a[rel^='prettyPhoto']").unbind('click');
  210. <?php if($data['lightbox_post_images']): ?>
  211. $('.single-post .post-content a').has('img').unbind('click');
  212. <?php endif; ?>
  213. }
  214.  
  215. // Disables prettyPhoto if screen small
  216. $(window).resize(function() {
  217. if ((Modernizr.mq('only screen and (max-width: 600px)') || Modernizr.mq('only screen and (max-height: 520px)')) && mediaQuery == 'desk') {
  218. $("a[rel^='prettyPhoto']").unbind('click.prettyphoto');
  219. <?php if($data['lightbox_post_images']): ?>
  220. $('.single-post .post-content a').has('img').unbind('click.prettyphoto');
  221. <?php endif; ?>
  222. mediaQuery = 'mobile';
  223. } else if (!Modernizr.mq('only screen and (max-width: 600px)') && !Modernizr.mq('only screen and (max-height: 520px)') && mediaQuery == 'mobile') {
  224. $("a[rel^='prettyPhoto']").prettyPhoto(ppArgs);
  225. <?php if($data['lightbox_post_images']): ?>
  226. $('.single-post .post-content a').has('img').prettyPhoto(ppArgs);
  227. <?php endif; ?>
  228. mediaQuery = 'desk';
  229. }
  230. });
  231. <?php if($data['sidenav_behavior'] == 'Click'): ?>
  232. $('.side-nav li a').live('click', function(e) {
  233. if($(this).find('.arrow').length >= 1) {
  234. if($(this).parent().find('> .children').length >= 1 && !$(this).parent().find('> .children').is(':visible')) {
  235. $(this).parent().find('> .children').stop(true, true).slideDown('slow');
  236. } else {
  237. $(this).parent().find('> .children').stop(true, true).slideUp('slow');
  238. }
  239. }
  240.  
  241. if($(this).find('.arrow').length >= 1) {
  242. return false;
  243. }
  244. });
  245. <?php else: ?>
  246. $('.side-nav li').hoverIntent({
  247. over: function() {
  248. if($(this).find('> .children').length >= 1) {
  249. $(this).find('> .children').stop(true, true).slideDown('slow');
  250. }
  251. },
  252. out: function() {
  253. if(!$(this).find('.current_page_item').length) {
  254. $(this).find('.children').stop(true, true).slideUp('slow');
  255. }
  256. },
  257. timeout: 500
  258. });
  259. <?php endif; ?>
  260.  
  261. $('#ei-slider').eislideshow({
  262. <?php if($data["tfes_animation"]): ?>
  263. animation: '<?php echo $data["tfes_animation"]; ?>',
  264. <?php endif; ?>
  265. autoplay: <?php if($data["tfes_autoplay"]) { echo 'true'; } else { echo 'false'; } ?>,
  266. <?php if($data["tfes_interval"]): ?>
  267. slideshow_interval: <?php echo $data['tfes_interval']; ?>,
  268. <?php endif; ?>
  269. <?php if($data["tfes_speed"]): ?>
  270. speed: <?php echo $data['tfes_speed']; ?>,
  271. <?php endif; ?>
  272. <?php if($data["tfes_width"]): ?>
  273. thumbMaxWidth: <?php echo $data['tfes_width']; ?>
  274. <?php endif; ?>
  275. });
  276.  
  277. var retina = window.devicePixelRatio > 1 ? true : false;
  278.  
  279. <?php if($data['logo_retina'] && $data['retina_logo_width'] && $data['retina_logo_height']): ?>
  280. if(retina) {
  281. $('#header .logo img').attr('src', '<?php echo $data["logo_retina"]; ?>');
  282. $('#header .logo img').attr('width', '<?php echo $data["retina_logo_width"]; ?>');
  283. $('#header .logo img').attr('height', '<?php echo $data["retina_logo_height"]; ?>');
  284. }
  285. <?php endif; ?>
  286. });
  287. </script>
  288.  
  289. <style type="text/css">
  290. <?php if($data['primary_color']): ?>
  291. a:hover,
  292. #nav ul .current_page_item a, #nav ul .current-menu-item a, #nav ul > .current-menu-parent a,
  293. .footer-area ul li a:hover,
  294. .side-nav li.current_page_item a,
  295. .portfolio-tabs li.active a, .faq-tabs li.active a,
  296. .project-content .project-info .project-info-box a:hover,
  297. .about-author .title a,
  298. span.dropcap,.footer-area a:hover,.copyright a:hover,
  299. #sidebar .widget_categories li a:hover,
  300. #main .post h2 a:hover,
  301. #sidebar .widget li a:hover,
  302. #nav ul a:hover{
  303. color:<?php echo $data['primary_color']; ?> !important;
  304. }
  305. #nav ul .current_page_item a, #nav ul .current-menu-item a, #nav ul > .current-menu-parent a,
  306. #nav ul ul,#nav li.current-menu-ancestor a,
  307. .reading-box,
  308. .portfolio-tabs li.active a, .faq-tabs li.active a,
  309. .tab-holder .tabs li.active a,
  310. .post-content blockquote,
  311. .progress-bar-content,
  312. .pagination .current,
  313. .pagination a.inactive:hover,
  314. #nav ul a:hover{
  315. border-color:<?php echo $data['primary_color']; ?> !important;
  316. }
  317. .side-nav li.current_page_item a{
  318. border-right-color:<?php echo $data['primary_color']; ?> !important;
  319. }
  320. .header-v2 .header-social, .header-v3 .header-social, .header-v4 .header-social,.header-v5 .header-social{
  321. border-top-color:<?php echo $data['primary_color']; ?> !important;
  322. }
  323. h5.toggle.active span.arrow,
  324. .post-content ul.arrow li:before,
  325. .progress-bar-content,
  326. .pagination .current,
  327. .header-v3 .header-social,.header-v4 .header-social,.header-v5 .header-social{
  328. background-color:<?php echo $data['primary_color']; ?> !important;
  329. }
  330. <?php endif; ?>
  331.  
  332. <?php if($data['pricing_box_color']): ?>
  333. .sep-boxed-pricing ul li.title-row{
  334. background-color:<?php echo $data['pricing_box_color']; ?> !important;
  335. border-color:<?php echo $data['pricing_box_color']; ?> !important;
  336. }
  337. .pricing-row .exact_price, .pricing-row sup{
  338. color:<?php echo $data['pricing_box_color']; ?> !important;
  339. }
  340. <?php endif; ?>
  341. <?php if($data['image_gradient_top_color'] && $data['image_gradient_bottom_color']): ?>
  342. .image .image-extras{
  343. background-image: linear-gradient(top, <?php echo $data['image_gradient_top_color']; ?> 0%, <?php echo $data['image_gradient_bottom_color']; ?> 100%);
  344. background-image: -o-linear-gradient(top, <?php echo $data['image_gradient_top_color']; ?> 0%, <?php echo $data['image_gradient_bottom_color']; ?> 100%);
  345. background-image: -moz-linear-gradient(top, <?php echo $data['image_gradient_top_color']; ?> 0%, <?php echo $data['image_gradient_bottom_color']; ?> 100%);
  346. background-image: -webkit-linear-gradient(top, <?php echo $data['image_gradient_top_color']; ?> 0%, <?php echo $data['image_gradient_bottom_color']; ?> 100%);
  347. background-image: -ms-linear-gradient(top, <?php echo $data['image_gradient_top_color']; ?> 0%, <?php echo $data['image_gradient_bottom_color']; ?> 100%);
  348.  
  349. background-image: -webkit-gradient(
  350. linear,
  351. left top,
  352. left bottom,
  353. color-stop(0, <?php echo $data['image_gradient_top_color']; ?>),
  354. color-stop(1, <?php echo $data['image_gradient_bottom_color']; ?>)
  355. );
  356.  
  357. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='<?php echo $data['image_gradient_top_color']; ?>', endColorstr='<?php echo $data['image_gradient_bottom_color']; ?>');
  358. }
  359. .no-cssgradients .image .image-extras{
  360. background:<?php echo $data['image_gradient_top_color']; ?>;
  361. }
  362. <?php endif; ?>
  363. <?php if($data['button_gradient_top_color'] && $data['button_gradient_bottom_color'] && $data['button_gradient_text_color']): ?>
  364. #main .reading-box .button,
  365. #main .continue.button,
  366. #main .portfolio-one .button,
  367. #main .comment-submit,
  368. .button.default{
  369. color: <?php echo $data['button_gradient_text_color']; ?> !important;
  370. background-image: linear-gradient(top, <?php echo $data['button_gradient_top_color']; ?> 0%, <?php echo $data['button_gradient_bottom_color']; ?> 100%);
  371. background-image: -o-linear-gradient(top, <?php echo $data['button_gradient_top_color']; ?> 0%, <?php echo $data['button_gradient_bottom_color']; ?> 100%);
  372. background-image: -moz-linear-gradient(top, <?php echo $data['button_gradient_top_color']; ?> 0%, <?php echo $data['button_gradient_bottom_color']; ?> 100%);
  373. background-image: -webkit-linear-gradient(top, <?php echo $data['button_gradient_top_color']; ?> 0%, <?php echo $data['button_gradient_bottom_color']; ?> 100%);
  374. background-image: -ms-linear-gradient(top, <?php echo $data['button_gradient_top_color']; ?> 0%, <?php echo $data['button_gradient_bottom_color']; ?> 100%);
  375.  
  376. background-image: -webkit-gradient(
  377. linear,
  378. left top,
  379. left bottom,
  380. color-stop(0, <?php echo $data['button_gradient_top_color']; ?>),
  381. color-stop(1, <?php echo $data['button_gradient_bottom_color']; ?>)
  382. );
  383. border:1px solid <?php echo $data['button_gradient_bottom_color']; ?>;
  384.  
  385. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='<?php echo $data['button_gradient_top_color']; ?>', endColorstr='<?php echo $data['button_gradient_bottom_color']; ?>');
  386. }
  387. .no-cssgradients #main .reading-box .button,
  388. .no-cssgradients #main .continue.button,
  389. .no-cssgradients #main .portfolio-one .button,
  390. .no-cssgradients #main .comment-submit,
  391. .no-cssgradients .button.default{
  392. background:<?php echo $data['button_gradient_top_color']; ?>;
  393. }
  394. #main .reading-box .button:hover,
  395. #main .continue.button:hover,
  396. #main .portfolio-one .button:hover,
  397. #main .comment-submit:hover,
  398. .button.default:hover{
  399. color: <?php echo $data['button_gradient_text_color']; ?> !important;
  400. background-image: linear-gradient(top, <?php echo $data['button_gradient_bottom_color']; ?> 0%, <?php echo $data['button_gradient_top_color']; ?> 100%);
  401. background-image: -o-linear-gradient(top, <?php echo $data['button_gradient_bottom_color']; ?> 0%, <?php echo $data['button_gradient_top_color']; ?> 100%);
  402. background-image: -moz-linear-gradient(top, <?php echo $data['button_gradient_bottom_color']; ?> 0%, <?php echo $data['button_gradient_top_color']; ?> 100%);
  403. background-image: -webkit-linear-gradient(top, <?php echo $data['button_gradient_bottom_color']; ?> 0%, <?php echo $data['button_gradient_top_color']; ?> 100%);
  404. background-image: -ms-linear-gradient(top, <?php echo $data['button_gradient_bottom_color']; ?> 0%, <?php echo $data['button_gradient_top_color']; ?> 100%);
  405.  
  406. background-image: -webkit-gradient(
  407. linear,
  408. left top,
  409. left bottom,
  410. color-stop(0, <?php echo $data['button_gradient_bottom_color']; ?>),
  411. color-stop(1, <?php echo $data['button_gradient_top_color']; ?>)
  412. );
  413. border:1px solid <?php echo $data['button_gradient_bottom_color']; ?>;
  414.  
  415. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='<?php echo $data['button_gradient_bottom_color']; ?>', endColorstr='<?php echo $data['button_gradient_top_color']; ?>');
  416. }
  417. .no-cssgradients #main .reading-box .button:hover,
  418. .no-cssgradients #main .continue.button:hover,
  419. .no-cssgradients #main .portfolio-one .button:hover,
  420. .no-cssgradients #main .comment-submit:hover,
  421. .no-cssgradients .button.default{
  422. background:<?php echo $data['button_gradient_bottom_color']; ?>;
  423. }
  424. <?php endif; ?>
  425.  
  426. <?php if($data['layout'] == 'Boxed'): ?>
  427. body{
  428. <?php if(get_post_meta($post->ID, 'pyre_page_bg_color', true)): ?>
  429. background-color:<?php echo get_post_meta($post->ID, 'pyre_page_bg_color', true); ?>;
  430. <?php else: ?>
  431. background-color:<?php echo $data['bg_color']; ?>;
  432. <?php endif; ?>
  433.  
  434. <?php if(get_post_meta($post->ID, 'pyre_page_bg', true)): ?>
  435. background-image:url(<?php echo get_post_meta($post->ID, 'pyre_page_bg', true); ?>);
  436. background-repeat:<?php echo get_post_meta($post->ID, 'pyre_page_bg_repeat', true); ?>;
  437. <?php if(get_post_meta($post->ID, 'pyre_page_bg_full', true) == 'yes'): ?>
  438. background-attachment:fixed;
  439. background-position:center center;
  440. -webkit-background-size: cover;
  441. -moz-background-size: cover;
  442. -o-background-size: cover;
  443. background-size: cover;
  444. <?php endif; ?>
  445. <?php elseif($data['bg_image']): ?>
  446. background-image:url(<?php echo $data['bg_image']; ?>);
  447. background-repeat:<?php echo $data['bg_repeat']; ?>;
  448. <?php if($data['bg_full']): ?>
  449. background-attachment:fixed;
  450. background-position:center center;
  451. -webkit-background-size: cover;
  452. -moz-background-size: cover;
  453. -o-background-size: cover;
  454. background-size: cover;
  455. <?php endif; ?>
  456. <?php endif; ?>
  457.  
  458. <?php if($data['bg_pattern_option'] && $data['bg_pattern'] && !(get_post_meta($post->ID, 'pyre_page_bg_color', true) || get_post_meta($post->ID, 'pyre_page_bg', true))): ?>
  459. background-image:url("<?php echo get_bloginfo('template_directory') . '/images/patterns/' . $data['bg_pattern'] . '.png'; ?>");
  460. background-repeat:repeat;
  461. <?php endif; ?>
  462. }
  463. #wrapper{
  464. background:#fff;
  465. width:1000px;
  466. margin:0 auto;
  467. }
  468. #layerslider-container{
  469. overflow:hidden;
  470. }
  471. <?php endif; ?>
  472.  
  473. <?php if(get_post_meta($post->ID, 'pyre_page_title_bar_bg', true)): ?>
  474. .page-title-container{
  475. background-image:url(<?php echo get_post_meta($post->ID, 'pyre_page_title_bar_bg', true); ?>) !important;
  476. }
  477. <?php elseif($data['page_title_bg']): ?>
  478. .page-title-container{
  479. background-image:url(<?php echo $data['page_title_bg']; ?>) !important;
  480. }
  481. <?php endif; ?>
  482.  
  483. <?php if(get_post_meta($post->ID, 'pyre_page_title_bar_bg_color', true)): ?>
  484. .page-title-container{
  485. background-color:<?php echo get_post_meta($post->ID, 'pyre_page_title_bar_bg_color', true); ?>;
  486. }
  487. <?php elseif($data['page_title_bg_color']): ?>
  488. .page-title-container{
  489. background-color:<?php echo $data['page_title_bg_color']; ?>;
  490. }
  491. <?php endif; ?>
  492.  
  493. <?php
  494. if(
  495. $data['custom_font_woff'] && $data['custom_font_ttf'] &&
  496. $data['custom_font_svg'] && $data['custom_font_eot']
  497. ):
  498. ?>
  499. @font-face {
  500. font-family: 'MuseoSlab500Regular';
  501. src: url('<?php echo $data['custom_font_eot']; ?>');
  502. src:
  503. <?php if(strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') !== false): ?>
  504. url('<?php echo $data['custom_font_woff']; ?>') format('woff'),
  505. <?php endif; ?>
  506. url('<?php echo $data['custom_font_eot']; ?>?#iefix') format('embedded-opentype'),
  507. url('<?php echo $data['custom_font_svg']; ?>#MuseoSlab500Regular') format('svg'),
  508. <?php if(strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') == false): ?>
  509. url('<?php echo $data['custom_font_woff']; ?>') format('woff'),
  510. <?php endif; ?>
  511. url('<?php echo $data['custom_font_ttf']; ?>') format('truetype');
  512. font-weight: normal;
  513. font-style: normal;
  514. }
  515. <?php $custom_font = true; endif; ?>
  516.  
  517. <?php
  518. if($data['google_body'] != 'Select Font') {
  519. $font = '"'.$data['google_body'].'", Arial, Helvetica, sans-serif !important';
  520. } elseif($data['standard_body'] != 'Select Font') {
  521. $font = $data['standard_body'].' !important';
  522. }
  523. ?>
  524.  
  525. body,#nav ul li ul li a,
  526. .more,
  527. .avada-container h3,
  528. .meta .date,
  529. .review blockquote q,
  530. .review blockquote div strong,
  531. .image .image-extras .image-extras-content h4,
  532. .project-content .project-info h4,
  533. .post-content blockquote,
  534. .button.large,
  535. .button.small,
  536. .ei-title h3{
  537. font-family:<?php echo $font; ?>;
  538. }
  539. .avada-container h3,
  540. .review blockquote div strong,
  541. .footer-area h3,
  542. .button.large,
  543. .button.small{
  544. font-weight:bold;
  545. }
  546. .meta .date,
  547. .review blockquote q,
  548. .post-content blockquote{
  549. font-style:italic;
  550. }
  551.  
  552. <?php
  553. if(!$custom_font && $data['google_nav'] != 'Select Font') {
  554. $nav_font = '"'.$data['google_nav'].'", Arial, Helvetica, sans-serif !important';
  555. } elseif(!$custom_font && $data['standard_nav'] != 'Select Font') {
  556. $nav_font = $data['standard_nav'].' !important';
  557. }
  558. if(isset($nav_font)):
  559. ?>
  560.  
  561. #nav,
  562. .side-nav li a{
  563. font-family:<?php echo $nav_font; ?>;
  564. }
  565. <?php endif; ?>
  566.  
  567. <?php
  568. if(!$custom_font && $data['google_headings'] != 'Select Font') {
  569. $headings_font = '"'.$data['google_headings'].'", Arial, Helvetica, sans-serif !important';
  570. } elseif(!$custom_font && $data['standard_headings'] != 'Select Font') {
  571. $headings_font = $data['standard_headings'].' !important';
  572. }
  573. if(isset($headings_font)):
  574. ?>
  575.  
  576. #main .reading-box h2,
  577. #main h2,
  578. .page-title h1,
  579. .image .image-extras .image-extras-content h3,
  580. #main .post h2,
  581. #sidebar .widget h3,
  582. .tab-holder .tabs li a,
  583. .share-box h4,
  584. .project-content h3,
  585. h5.toggle a,
  586. .full-boxed-pricing ul li.title-row,
  587. .full-boxed-pricing ul li.pricing-row,
  588. .sep-boxed-pricing ul li.title-row,
  589. .sep-boxed-pricing ul li.pricing-row,
  590. .person-author-wrapper,
  591. .post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6,
  592. .ei-title h2, #header .tagline{
  593. font-family:<?php echo $headings_font; ?>;
  594. }
  595. <?php endif; ?>
  596.  
  597. <?php
  598. if($data['google_footer_headings'] != 'Select Font') {
  599. $font = '"'.$data['google_footer_headings'].'", Arial, Helvetica, sans-serif !important';
  600. } elseif($data['standard_footer_headings'] != 'Select Font') {
  601. $font = $data['standard_footer_headings'].' !important';
  602. }
  603. ?>
  604.  
  605. .footer-area h3{
  606. font-family:<?php echo $font; ?>;
  607. }
  608.  
  609. <?php if($data['body_font_size']): ?>
  610. body{
  611. font-size:<?php echo $data['body_font_size']; ?>px;
  612. <?php
  613. $line_height = round((1.5 * $data['body_font_size']));
  614. ?>
  615. line-height:<?php echo $line_height; ?>px;
  616. }
  617. .project-content .project-info h4{
  618. font-size:<?php echo $data['body_font_size']; ?>px !important;
  619. <?php
  620. $line_height = round((1.5 * $data['body_font_size']));
  621. ?>
  622. line-height:<?php echo $line_height; ?>px !important;
  623. }
  624. <?php endif; ?>
  625.  
  626. <?php if($data['nav_font_size']): ?>
  627. #nav{font-size:<?php echo $data['nav_font_size']; ?>px !important;}
  628. <?php endif; ?>
  629.  
  630. <?php if($data['snav_font_size']): ?>
  631. .header-social *{font-size:<?php echo $data['snav_font_size']; ?>px !important;}
  632. <?php endif; ?>
  633.  
  634. <?php if($data['breadcrumbs_font_size']): ?>
  635. .page-title ul li,page-title ul li a{font-size:<?php echo $data['breadcrumbs_font_size']; ?>px !important;}
  636. <?php endif; ?>
  637.  
  638. <?php if($data['side_nav_font_size']): ?>
  639. .side-nav li a{font-size:<?php echo $data['side_nav_font_size']; ?>px !important;}
  640. <?php endif; ?>
  641.  
  642. <?php if($data['sidew_font_size']): ?>
  643. #sidebar .widget h3{font-size:<?php echo $data['sidew_font_size']; ?>px !important;}
  644. <?php endif; ?>
  645.  
  646. <?php if($data['footw_font_size']): ?>
  647. .footer-area h3{font-size:<?php echo $data['footw_font_size']; ?>px !important;}
  648. <?php endif; ?>
  649.  
  650. <?php if($data['copyright_font_size']): ?>
  651. .copyright{font-size:<?php echo $data['copyright_font_size']; ?>px !important;}
  652. <?php endif; ?>
  653.  
  654. <?php if($data['responsive']): ?>
  655. #header .avada-row, #main .avada-row, .footer-area .avada-row, #footer .avada-row{ max-width:940px; }
  656. <?php endif; ?>
  657.  
  658. <?php if($data['h1_font_size']): ?>
  659. .post-content h1{
  660. font-size:<?php echo $data['h1_font_size']; ?>px !important;
  661. <?php
  662. $line_height = round((1.5 * $data['h1_font_size']));
  663. ?>
  664. line-height:<?php echo $line_height; ?>px !important;
  665. }
  666. <?php endif; ?>
  667.  
  668. <?php if($data['h2_font_size']): ?>
  669. .post-content h2,.title h2,#main .post-content .title h2,.page-title h1,#main .post h2 a{
  670. font-size:<?php echo $data['h2_font_size']; ?>px !important;
  671. <?php
  672. $line_height = round((1.5 * $data['h2_font_size']));
  673. ?>
  674. line-height:<?php echo $line_height; ?>px !important;
  675. }
  676. <?php endif; ?>
  677.  
  678. <?php if($data['h3_font_size']): ?>
  679. .post-content h3,.project-content h3,#header .tagline{
  680. font-size:<?php echo $data['h3_font_size']; ?>px !important;
  681. <?php
  682. $line_height = round((1.5 * $data['h3_font_size']));
  683. ?>
  684. line-height:<?php echo $line_height; ?>px !important;
  685. }
  686. <?php endif; ?>
  687.  
  688. <?php if($data['h4_font_size']): ?>
  689. .post-content h4{
  690. font-size:<?php echo $data['h4_font_size']; ?>px !important;
  691. <?php
  692. $line_height = round((1.5 * $data['h4_font_size']));
  693. ?>
  694. line-height:<?php echo $line_height; ?>px !important;
  695. }
  696. h5.toggle a,.tab-holder .tabs li a,.share-box h4,.person-author-wrapper{
  697. font-size:<?php echo $data['h4_font_size']; ?>px !important;
  698. }
  699. <?php endif; ?>
  700.  
  701. <?php if($data['h5_font_size']): ?>
  702. .post-content h5{
  703. font-size:<?php echo $data['h5_font_size']; ?>px !important;
  704. <?php
  705. $line_height = round((1.5 * $data['h5_font_size']));
  706. ?>
  707. line-height:<?php echo $line_height; ?>px !important;
  708. }
  709. <?php endif; ?>
  710.  
  711. <?php if($data['h6_font_size']): ?>
  712. .post-content h6{
  713. font-size:<?php echo $data['h6_font_size']; ?>px !important;
  714. <?php
  715. $line_height = round((1.5 * $data['h6_font_size']));
  716. ?>
  717. line-height:<?php echo $line_height; ?>px !important;
  718. }
  719. <?php endif; ?>
  720.  
  721. <?php if($data['es_title_font_size']): ?>
  722. .ei-title h2{
  723. font-size:<?php echo $data['es_title_font_size']; ?>px !important;
  724. <?php
  725. $line_height = round((1.5 * $data['es_title_font_size']));
  726. ?>
  727. line-height:<?php echo $line_height; ?>px !important;
  728. }
  729. <?php endif; ?>
  730.  
  731. <?php if($data['es_caption_font_size']): ?>
  732. .ei-title h3{
  733. font-size:<?php echo $data['es_caption_font_size']; ?>px !important;
  734. <?php
  735. $line_height = round((1.5 * $data['es_caption_font_size']));
  736. ?>
  737. line-height:<?php echo $line_height; ?>px !important;
  738. }
  739. <?php endif; ?>
  740.  
  741. <?php if($data['body_text_color']): ?>
  742. body,.post .post-content,.post-content blockquote,.tab-holder .news-list li .post-holder .meta,#sidebar #jtwt,.meta,.review blockquote div,.search input,.project-content .project-info h4{color:<?php echo $data['body_text_color']; ?> !important;}
  743. <?php endif; ?>
  744.  
  745. <?php if($data['headings_color']): ?>
  746. .post-content h1, .post-content h2, .post-content h3,
  747. .post-content h4, .post-content h5, .post-content h6,
  748. #sidebar .widget h3,h5.toggle a, .tab-holder .tabs li a,
  749. .page-title h1,.full-boxed-pricing ul li.title-row,
  750. .image .image-extras .image-extras-content h3,.project-content .project-info h4,.project-content h3,.share-box h4,.title h2,.person-author-wrapper,#sidebar .tab-holder .tabs li a,#header .tagline{
  751. color:<?php echo $data['headings_color']; ?> !important;
  752. }
  753. <?php endif; ?>
  754.  
  755. <?php if($data['link_color']): ?>
  756. body a,.project-content .project-info .project-info-box a,#sidebar .widget li a, #sidebar .widget .recentcomments, #sidebar .widget_categories li, #main .post h2 a{color:<?php echo $data['link_color']; ?> !important;}
  757. <?php endif; ?>
  758.  
  759. <?php if($data['breadcrumbs_text_color']): ?>
  760. .page-title ul li,.page-title ul li a{color:<?php echo $data['breadcrumbs_text_color']; ?> !important;}
  761. <?php endif; ?>
  762.  
  763. <?php if($data['footer_headings_color']): ?>
  764. .footer-area h3{color:<?php echo $data['footer_headings_color']; ?> !important;}
  765. <?php endif; ?>
  766.  
  767. <?php if($data['footer_text_color']): ?>
  768. .footer-area,.footer-area #jtwt,.copyright{color:<?php echo $data['footer_text_color']; ?> !important;}
  769. <?php endif; ?>
  770.  
  771. <?php if($data['footer_link_color']): ?>
  772. .footer-area a,.copyright a{color:<?php echo $data['footer_link_color']; ?> !important;}
  773. <?php endif; ?>
  774.  
  775. <?php if($data['menu_first_color']): ?>
  776. #nav ul a,.side-nav li a{color:<?php echo $data['menu_first_color']; ?> !important;}
  777. <?php endif; ?>
  778.  
  779. <?php if($data['menu_sub_bg_color']): ?>
  780. #nav ul ul{background-color:<?php echo $data['menu_sub_bg_color']; ?>;}
  781. <?php endif; ?>
  782.  
  783. <?php if($data['menu_sub_color']): ?>
  784. #wrapper #nav ul li ul li a,.side-nav li li a,.side-nav li.current_page_item li a{color:<?php echo $data['menu_sub_color']; ?> !important;}
  785. <?php endif; ?>
  786.  
  787. <?php if($data['es_title_color']): ?>
  788. .ei-title h2{color:<?php echo $data['es_title_color']; ?> !important;}
  789. <?php endif; ?>
  790.  
  791. <?php if($data['es_caption_color']): ?>
  792. .ei-title h3{color:<?php echo $data['es_caption_color']; ?> !important;}
  793. <?php endif; ?>
  794.  
  795. <?php if($data['snav_color']): ?>
  796. #wrapper .header-social *{color:<?php echo $data['snav_color']; ?> !important;}
  797. #wrapper .header-social .menu li{border-color:<?php echo $data['snav_color']; ?> !important;}
  798. <?php endif; ?>
  799.  
  800. <?php if(is_single() && get_post_meta($post->ID, 'pyre_fimg_width', true)): ?>
  801. #post-<?php echo $post->ID; ?> .post-slideshow,
  802. #post-<?php echo $post->ID; ?> .post-slideshow img{width:<?php echo get_post_meta($post->ID, 'pyre_fimg_width', true); ?> !important;}
  803. <?php endif; ?>
  804.  
  805. <?php if(is_single() && get_post_meta($post->ID, 'pyre_fimg_height', true)): ?>
  806. #post-<?php echo $post->ID; ?> .post-slideshow, #post-<?php echo $post->ID; ?> .post-slideshow img{height:<?php echo get_post_meta($post->ID, 'pyre_fimg_height', true); ?> !important;}
  807. <?php endif; ?>
  808.  
  809. <?php if(!$data['flexslider_circles']): ?>
  810. .main-flex .flex-control-nav{display:none !important;}
  811. <?php endif; ?>
  812.  
  813. <?php if(!$data['breadcrumb_mobile']): ?>
  814. @media only screen and (max-width: 940px){
  815. .breadcrumbs{display:none !important;}
  816. }
  817. @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait){
  818. .breadcrumbs{display:none !important;}
  819. }
  820. <?php endif; ?>
  821.  
  822. <?php if(!$data['image_rollover']): ?>
  823. .image-extras{display:none !important;}
  824. <?php endif; ?>
  825.  
  826. <?php if($data['nav_height']): ?>
  827. #nav > li > a,#nav li.current-menu-ancestor a{height:<?php echo $data['nav_height']; ?>px;line-height:<?php echo $data['nav_height']; ?>px;}
  828. #nav > li > a,#nav li.current-menu-ancestor a{height:<?php echo $data['nav_height']; ?>px;line-height:<?php echo $data['nav_height']; ?>px;}
  829.  
  830. #nav ul ul{top:<?php echo $data['nav_height']+3; ?>px;}
  831.  
  832. <?php if(is_page('header-4') || is_page('header-5')) { ?>
  833. #nav > li > a,#nav li.current-menu-ancestor a{height:40px;line-height:40px;}
  834. #nav > li > a,#nav li.current-menu-ancestor a{height:40px;line-height:40px;}
  835.  
  836. #nav ul ul{top:43px;}
  837. <?php } ?>
  838. <?php endif; ?>
  839.  
  840. @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
  841. .page-title-container {
  842. background-image: url(<?php echo $data['page_title_bg_retina']; ?>) !important;
  843. -webkit-background-size:1400px 87px;
  844. -moz-background-size:1400px 87px;
  845. -o-background-size:1400px 87px;
  846. background-size:1400px 87px;
  847. }
  848. }
  849.  
  850. <?php if($data['tfes_slider_width']): ?>
  851. .ei-slider{width:<?php echo $data['tfes_slider_width']; ?> !important;}
  852. <?php endif; ?>
  853.  
  854. <?php if($data['tfes_slider_height']): ?>
  855. .ei-slider{height:<?php echo $data['tfes_slider_height']; ?> !important;}
  856. <?php endif; ?>
  857.  
  858. <?php echo $data['custom_css']; ?>
  859. </style>
  860.  
  861. <style type="text/css" id="ss">
  862. </style>
  863.  
  864. <link rel="stylesheet" id="style_selector_ss" href="#" />
  865.  
  866. <?php echo $data['google_analytics']; ?>
  867.  
  868. <?php echo $data['space_head']; ?>
  869. </head>
  870. <body <?php body_class(); ?>>
  871. <?
  872. ?>
  873. <div id="wrapper">
  874. <?php
  875. if($data['header_layout']) {
  876. if(is_page('header-2')) {
  877. include_once('framework/headers/header-v2.php');
  878. } elseif(is_page('header-3')) {
  879. include_once('framework/headers/header-v3.php');
  880. } elseif(is_page('header-4')) {
  881. include_once('framework/headers/header-v4.php');
  882. } elseif(is_page('header-5')) {
  883. include_once('framework/headers/header-v5.php');
  884. } else {
  885. include_once('framework/headers/header-'.$data['header_layout'].'.php');
  886. }
  887. } else {
  888. if(is_page('header-2')) {
  889. include_once('framework/headers/header-v2.php');
  890. } elseif(is_page('header-3')) {
  891. include_once('framework/headers/header-v3.php');
  892. } elseif(is_page('header-4')) {
  893. include_once('framework/headers/header-v4.php');
  894. } elseif(is_page('header-5')) {
  895. include_once('framework/headers/header-v5.php');
  896. } else {
  897. include_once('framework/headers/header-v1.php');
  898. }
  899. }
  900. ?>
  901. <?php if(!is_search()): ?>
  902. <div id="sliders-container">
  903. <?php
  904. // Layer Slider
  905. $slider_page_id = $post->ID;
  906. if(is_home() && !is_front_page()){
  907. $slider_page_id = get_option('page_for_posts');
  908. }
  909. if(get_post_meta($slider_page_id, 'pyre_slider_type', true) == 'layer' && (get_post_meta($slider_page_id, 'pyre_slider', true) || get_post_meta($slider_page_id, 'pyre_slider', true) != 0)): ?>
  910. <?php
  911. // Get slider
  912. $ls_table_name = $wpdb->prefix . "layerslider";
  913. $ls_id = get_post_meta($slider_page_id, 'pyre_slider', true);
  914. $ls_slider = $wpdb->get_row("SELECT * FROM $ls_table_name WHERE id = ".(int)$ls_id." ORDER BY date_c DESC LIMIT 1" , ARRAY_A);
  915. $ls_slider = json_decode($ls_slider['data'], true);
  916. ?>
  917. <style type="text/css">
  918. #layerslider-container{max-width:<?php echo $ls_slider['properties']['width'] ?>;}
  919. </style>
  920. <div id="layerslider-container">
  921. <div id="layerslider-wrapper">
  922. <?php if($ls_slider['properties']['skin'] == 'avada'): ?>
  923. <div class="ls-shadow-top"></div>
  924. <?php endif; ?>
  925. <?php echo do_shortcode('[layerslider id="'.get_post_meta($slider_page_id, 'pyre_slider', true).'"]'); ?>
  926. <?php if($ls_slider['properties']['skin'] == 'avada'): ?>
  927. <div class="ls-shadow-bottom"></div>
  928. <?php endif; ?>
  929. </div>
  930. </div>
  931. <?php endif; ?>
  932. <?php
  933. // Flex Slider
  934. if(get_post_meta($slider_page_id, 'pyre_slider_type', true) == 'flex' && (get_post_meta($slider_page_id, 'pyre_wooslider', true) || get_post_meta($slider_page_id, 'pyre_wooslider', true) != 0)) {
  935. echo do_shortcode('[wooslider slide_page="'.get_post_meta($slider_page_id, 'pyre_wooslider', true).'" slider_type="slides" limit="'.$data['flexslider_number'].'"]');
  936. }
  937. ?>
  938. <?php
  939. if(get_post_meta($slider_page_id, 'pyre_slider_type', true) == 'rev' && get_post_meta($slider_page_id, 'pyre_revslider', true)) {
  940. putRevSlider(get_post_meta($slider_page_id, 'pyre_revslider', true));
  941. }
  942. ?>
  943. <?php
  944. if(get_post_meta($slider_page_id, 'pyre_slider_type', true) == 'flex2' && get_post_meta($slider_page_id, 'pyre_flexslider', true)) {
  945. include_once('flexslider.php');
  946. }
  947. ?>
  948. </div>
  949. <?php if(get_post_meta($slider_page_id, 'pyre_fallback', true)): ?>
  950. <style type="text/css">
  951. @media only screen and (max-width: 940px){
  952. #sliders-container{display:none;}
  953. #fallback-slide{display:block;}
  954. }
  955. @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait){
  956. #sliders-container{display:none;}
  957. #fallback-slide{display:block;}
  958. }
  959. </style>
  960. <div id="fallback-slide">
  961. <img src="<?php echo get_post_meta($slider_page_id, 'pyre_fallback', true); ?>" alt="" />
  962. </div>
  963. <?php endif; ?>
  964. <?php
  965. // ThemeFusion Elastic Slider
  966. if(get_post_meta($slider_page_id, 'pyre_slider_type', true) == 'elastic' && (get_post_meta($slider_page_id, 'pyre_elasticslider', true) || get_post_meta($slider_page_id, 'pyre_elasticslider', true) != 0)) {
  967. include_once('elastic-slider.php');
  968. }
  969. ?>
  970. <?php endif; ?>
  971. <?php if($data['page_title_bar']): ?>
  972. <?php if(((is_page() || is_single() || is_singular('avada_portfolio')) && get_post_meta($post->ID, 'pyre_page_title', true) == 'yes')) : ?>
  973. <div class="page-title-container">
  974. <div class="page-title">
  975. <div class="page-title-wrapper">
  976. <h1><?php the_title(); ?></h1>
  977. <?php if($data['breadcrumb']): ?>
  978. <?php if($data['page_title_bar_bs'] == 'Breadcrumbs'): ?>
  979. <?php themefusion_breadcrumb(); ?>
  980. <?php else: ?>
  981. <?php get_search_form(); ?>
  982. <?php endif; ?>
  983. <?php endif; ?>
  984. </div>
  985. </div>
  986. </div>
  987. <?php endif; ?>
  988. <?php if(is_home() && !is_front_page() && get_post_meta($slider_page_id, 'pyre_page_title', true) == 'yes'): ?>
  989. <div class="page-title-container">
  990. <div class="page-title">
  991. <div class="page-title-wrapper">
  992. <h1><?php wp_title(''); ?></h1>
  993. <?php if($data['breadcrumb']): ?>
  994. <?php if($data['page_title_bar_bs'] == 'Breadcrumbs'): ?>
  995. <?php themefusion_breadcrumb(); ?>
  996. <?php else: ?>
  997. <?php get_search_form(); ?>
  998. <?php endif; ?>
  999. <?php endif; ?>
  1000. </div>
  1001. </div>
  1002. </div>
  1003. <?php endif; ?>
  1004. <?php if(is_search()): ?>
  1005. <div class="page-title-container">
  1006. <div class="page-title">
  1007. <div class="page-title-wrapper">
  1008. <h1><?php echo __('Search results for:', 'Avada'); ?> <?php echo get_search_query(); ?></h1>
  1009. <?php get_search_form(); ?>
  1010. </div>
  1011. </div>
  1012. </div>
  1013. <?php endif; ?>
  1014. <?php if(is_404()): ?>
  1015. <div class="page-title-container">
  1016. <div class="page-title">
  1017. <div class="page-title-wrapper">
  1018. <h1><?php echo __('Error 404 Page', 'Avada'); ?></h1>
  1019. </div>
  1020. </div>
  1021. </div>
  1022. <?php endif; ?>
  1023. <?php if(is_archive()): ?>
  1024. <div class="page-title-container">
  1025. <div class="page-title">
  1026. <div class="page-title-wrapper">
  1027. <h1>
  1028. <?php if ( is_day() ) : ?>
  1029. <?php printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); ?>
  1030. <?php elseif ( is_month() ) : ?>
  1031. <?php printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
  1032. <?php elseif ( is_year() ) : ?>
  1033. <?php printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
  1034. <?php else : ?>
  1035. <?php single_cat_title(); ?>
  1036. <?php endif; ?>
  1037. </h1>
  1038. <?php if($data['breadcrumb']): ?>
  1039. <?php if($data['page_title_bar_bs'] == 'Breadcrumbs'): ?>
  1040. <?php themefusion_breadcrumb(); ?>
  1041. <?php else: ?>
  1042. <?php get_search_form(); ?>
  1043. <?php endif; ?>
  1044. <?php endif; ?>
  1045. </div>
  1046. </div>
  1047. </div>
  1048. <?php endif; ?>
  1049. <?php endif; ?>
  1050. <?php if(is_page_template('contact.php') && $data['gmap_address']): ?>
  1051. <style type="text/css">
  1052. #gmap{
  1053. width:<?php echo $data['gmap_width']; ?>;
  1054. margin:0 auto;
  1055. <?php if($data['gmap_width'] != '100%'): ?>
  1056. margin-top:55px;
  1057. <?php endif; ?>
  1058.  
  1059. <?php if($data['gmap_height']): ?>
  1060. height:<?php echo $data['gmap_height']; ?>;
  1061. <?php else: ?>
  1062. height:415px;
  1063. <?php endif; ?>
  1064. }
  1065. </style>
  1066. <script type="text/javascript">
  1067. jQuery(document).ready(function($) {
  1068. var geocoder = new google.maps.Geocoder();
  1069. var address = "new york";
  1070.  
  1071. geocoder.geocode({'address':'<?php echo $data['gmap_address']; ?>'}, function(results, status) {
  1072. if(status == google.maps.GeocoderStatus.OK) {
  1073. var latitude = results[0].geometry.location.lat();
  1074. var longitude = results[0].geometry.location.lng();
  1075.  
  1076. $('#gmap').gmap().bind('init', function(ev, map) {
  1077. $('#gmap').gmap('addMarker', {'position': latitude+','+longitude, 'bounds': true}).click(function() {
  1078. $('#gmap').gmap('openInfoWindow', {'content': '<?php echo ucwords($data['gmap_address']); ?>'}, this);
  1079. });
  1080. $('#gmap').gmap('option', 'zoom', <?php echo $data['map_zoom_level']; ?>);
  1081. });
  1082. }
  1083. });
  1084. });
  1085. </script>
  1086. <div class="gmap" id="gmap">
  1087. </div>
  1088. <?php endif; ?>
  1089. <?php if(is_page_template('contact-2.php') && $data['gmap_address']): ?>
  1090. <style type="text/css">
  1091. #gmap{
  1092. width:100%;
  1093. margin:0 auto;
  1094. }
  1095. </style>
  1096. <script type="text/javascript">
  1097. jQuery(document).ready(function($) {
  1098. var geocoder = new google.maps.Geocoder();
  1099. var address = "new york";
  1100.  
  1101. geocoder.geocode({'address':'<?php echo $data['gmap_address']; ?>'}, function(results, status) {
  1102. if(status == google.maps.GeocoderStatus.OK) {
  1103. var latitude = results[0].geometry.location.lat();
  1104. var longitude = results[0].geometry.location.lng();
  1105.  
  1106. $('#gmap').gmap().bind('init', function(ev, map) {
  1107. $('#gmap').gmap('addMarker', {'position': latitude+','+longitude, 'bounds': true}).click(function() {
  1108. $('#gmap').gmap('openInfoWindow', {'content': '<?php echo ucwords($data['gmap_address']); ?>'}, this);
  1109. });
  1110. $('#gmap').gmap('option', 'zoom', <?php echo $data['map_zoom_level']; ?>);
  1111. });
  1112. }
  1113. });
  1114. });
  1115. </script>
  1116.  
  1117. <div class="gmap" id="gmap">
  1118. </div>
  1119. <?php endif; ?>
  1120. <div id="main" style="overflow:hidden !important;">
  1121. <div class="avada-row">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement