Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.19 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html <?php language_attributes(); ?>>
  3. <head>
  4. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6.  
  7. <title><?php bloginfo('name'); ?> <?php wp_title(' - ', true, 'left'); ?></title>
  8. <!--[if lte IE 8]>
  9. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/html5shiv.js"></script>
  10. <![endif]-->
  11. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  12.  
  13. <?php global $data, $woocommerce; ?>
  14. <?php if($data['favicon']): ?>
  15. <link rel="shortcut icon" href="<?php echo $data['favicon']; ?>" type="image/x-icon" />
  16. <?php endif; ?>
  17.  
  18. <?php
  19. if($data['responsive']){
  20. $responsive = 'true';
  21. ?>
  22. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  23.  
  24. <?php
  25. }
  26. else{
  27. $responsive = 'false';
  28. }
  29. ?>
  30. <?php wp_head(); ?>
  31.  
  32. <style type="text/css">
  33. <?php
  34. ob_start();
  35. include_once get_template_directory() . '/css/additional_styles.php';
  36. $dynamic_css = ob_get_contents();
  37. ob_get_clean();
  38. echo less_css($dynamic_css);
  39. ?>
  40.  
  41. </style>
  42.  
  43. <?php /* if(is_page_template('page-contact.php') && $data['gmap_address']) {
  44. }
  45. */
  46. ?>
  47.  
  48. <?php echo $data['head_code']; ?>
  49.  
  50. <?php echo $data['tracking_code']; ?>
  51. <style type="text/css" id="ss">
  52. </style>
  53. <link rel="stylesheet" type="text/css" id="skins">
  54. </head>
  55.  
  56. <body <?php body_class($bclass); ?> data-responsive="<?php echo $responsive; ?>" data-layout="<?php echo strtolower($data['site_layout']); ?>" data-layout-width="<?php echo $data['layout_width']; ?>">
  57. <?php if($data['video_bg_en'] && ( get_post_meta ( $post->ID, 'pyre_en_video_bg', true ) != 'yes' ) ) { ?>
  58.  
  59.  
  60. <div id="P2" class="player video-container" data-property="{videoURL:'<?php echo $data['ytb_id']; ?>',containment:'body',autoPlay:true, showControls:false, mute:true, startAt:0, opacity: <?php echo ($data['video_opacity']/100); ?>, quality:'<?php echo $data['video_quality']; ?>'}"></div>
  61. <!-- End Video -->
  62.  
  63. <?php
  64. if(($data['video_overlay'] !='') || ($data['video_overlay_bg'] != $none_img)) { ?>
  65.  
  66. <div class="video_overlay video_bg"></div>
  67.  
  68. <?php
  69. }
  70. ?>
  71.  
  72. <?php } ?>
  73.  
  74. <?php
  75. if(get_post_meta ( $post->ID, 'pyre_en_video_bg', true ) == 'yes' && get_post_meta ( $post->ID, 'pyre_youtube_id', true ) != '') {
  76. $video_id = get_post_meta ( $post->ID, 'pyre_youtube_id', true );
  77. $video_opacity = (get_post_meta ( $post->ID, 'pyre_video_opacity', true ) !='') ? get_post_meta ( $post->ID, 'pyre_video_opacity', true ) : 100 ;
  78. ?>
  79.  
  80. <div id="P2" class="player video-container" data-property="{videoURL:'<?php echo $video_id; ?>',containment:'body',autoPlay:true, showControls:false, mute:true, startAt:0, opacity: <?php echo ($video_opacity/100); ?>, quality:'default'}"></div>
  81.  
  82. <?php
  83. if(get_post_meta ( $post->ID, 'pyre_video_bg_overlay', true )!='0' || get_post_meta ( $post->ID, 'pyre_video_bg_overlay_color', true ) != '') {
  84. $video_overlay_bg = (get_post_meta ( $post->ID, 'pyre_video_bg_overlay', true )!='0' ) ? 'background-image: url('. get_template_directory_uri().'/images/overlay/'.get_post_meta ( $post->ID, 'pyre_video_bg_overlay', true).');' : '';
  85. $video_overlay_op = (get_post_meta ( $post->ID, 'pyre_video_overlay_opacity', true ) != '') ? get_post_meta ( $post->ID, 'pyre_video_overlay_opacity', true ) : 100;
  86. $video_overlay_color = (get_post_meta ( $post->ID, 'pyre_video_bg_overlay_color', true ) != '') ? 'background-color: '.get_post_meta ( $post->ID, 'pyre_video_bg_overlay_color', true ).';' : '';
  87. ?>
  88. <div class="video_overlay video_bg" style=" <?php echo $video_overlay_bg . $video_overlay_color; ?> opacity: <?php echo ( $video_overlay_op/100 ); ?>; filter: alpha(opacity=<?php echo ($video_overlay_op/100); ?>);"></div>
  89. <?php
  90. }
  91. }
  92. ?>
  93.  
  94. <div id="wrapper" class="clearfix">
  95.  
  96. <?php if(!is_page_template('page-blank.php')): ?>
  97. <!-- ============================================
  98. Top Bar
  99. ============================================= -->
  100. <?php if ( (( $data['header_left_content'] !='Leave Empty' ) || ( $data['header_right_content'] != 'Leave Empty' )) && ( get_post_meta($post->ID, 'pyre_top_bar', true) != 'no' ) ){ ?>
  101. <div id="top-bar">
  102.  
  103. <div class="container clearfix">
  104.  
  105. <?php
  106. if($data['header_left_content'] !='Leave Empty'){
  107. ?>
  108. <div class="leftalign">
  109. <?php
  110. if($data['header_left_content'] =='Contact Info') {
  111. get_template_part('functions/template/contact-info');
  112. }
  113. elseif ($data['header_left_content'] =='Social Links') {
  114. get_template_part('functions/template/social-links');
  115. }
  116. elseif ($data['header_left_content'] =='Top Menu') {
  117. get_template_part('functions/template/top-menu');
  118. }
  119. ?>
  120. </div>
  121. <?php
  122. }
  123. ?>
  124.  
  125. <?php if ( $data['header_right_content'] != 'Leave Empty' ) { ?>
  126. <div class="rightalign">
  127. <?php
  128. if($data['header_right_content'] =='Contact Info') {
  129. get_template_part('functions/template/contact-info');
  130. }
  131. elseif ($data['header_right_content'] =='Social Links') {
  132. get_template_part('functions/template/social-links');
  133. }
  134. elseif ($data['header_right_content'] =='Top Menu') {
  135. get_template_part('functions/template/top-menu');
  136. }
  137. ?>
  138. </div>
  139. <?php } ?>
  140.  
  141. </div>
  142.  
  143. </div>
  144.  
  145. <?php
  146.  
  147. }
  148.  
  149. ?>
  150.  
  151. <!-- ============================================
  152. Header
  153. ============================================= -->
  154.  
  155.  
  156. <div id="header" <?php if($data['shadow_header']) echo 'class="shadow";'; ?>>
  157.  
  158. <?php
  159. $header_layout = (get_post_meta($post->ID, 'pyre_header_version', true) != NULL) ? get_post_meta($post->ID, 'pyre_header_version', true) : $data['header_layout'] ;
  160. if( $header_layout == 'default' ) $header_layout = $data['header_layout'];
  161.  
  162.  
  163. if($header_layout=='v1') {
  164. get_template_part('functions/template/header-v1');
  165. }
  166. elseif($header_layout=='v2') {
  167. get_template_part('functions/template/header-v2');
  168. }
  169. else{
  170. get_template_part('functions/template/header-v3');
  171. }
  172.  
  173.  
  174. ?>
  175.  
  176. </div>
  177.  
  178. <?php
  179. if($data['floating_header']):
  180. ?>
  181. <header id="header" class="sticky-header <?php echo $data['header_layout']; if($data['floating_header']) echo ' shadow'; ?>" style="display:none;" header-version="<?php echo $data['header_layout']; ?>">
  182. <?php
  183. if($header_layout=='v1') {
  184. get_template_part('functions/template/header-v1');
  185. }
  186. elseif($header_layout=='v2') {
  187. get_template_part('functions/template/header-v2');
  188. }
  189. else{
  190. get_template_part('functions/template/header-v3');
  191. }
  192. ?>
  193. </header>
  194. <?php
  195. endif;
  196. ?>
  197. <?php $mob_menu_extra_class = (is_page_template ( 'page-one-full.php') ) ? 'class="one-page-template"' : ''; ?>
  198. <div id="mobile-menu" <?php echo $mob_menu_extra_class; ?>>
  199.  
  200. <div class="container">
  201. <ul>
  202. <?php
  203.  
  204. if ( is_page_template ( 'page-one-full.php' ) ) {
  205. wp_nav_menu(array('walker' => new MenuWalker, 'theme_location' => 'one-page-nav', 'container' => false, 'items_wrap' => '%3$s', 'menu_class' => 'sf-menu', 'fallback_cb' =>'MenuWalker::fallback', 'walker' => new MenuWalker() ) );
  206. }
  207. else{
  208. if(has_nav_menu('primary-menu')) {
  209.  
  210. wp_nav_menu( array('theme_location' => 'primary-menu', 'menu' => 'Top Navigation Menu', 'container' => '', 'items_wrap' => '%3$s' ) );
  211.  
  212. }
  213. else {
  214. echo '<li><a href="">No menu assigned!</a></li>';
  215. }
  216. if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
  217. if($data['woocommerce_item']) {
  218. ?>
  219. <li>
  220. <?php if(!$woocommerce->cart->cart_contents_count): ?>
  221. <a class="shopping-cart" href="<?php echo $woocommerce->cart->get_cart_url(); ?>"><i class="fa fa-shopping-cart"></i></a>
  222. <?php else: ?>
  223. <a class="shopping-cart actives" href="<?php echo $woocommerce->cart->get_cart_url(); ?>"><i class="fa fa-shopping-cart"></i></a>
  224. <ul>
  225. <li></li>
  226. </ul>
  227. <?php endif; ?>
  228. </li>
  229. <?php
  230. }
  231.  
  232. }
  233. }
  234. ?>
  235. </ul>
  236. </div>
  237.  
  238. </div>
  239.  
  240. <div id="content">
  241.  
  242.  
  243. <?php
  244. if($data['en_title_breadcrumb']){
  245.  
  246. if( is_page() && !is_front_page() && !is_singular('creativo_portfolio') && get_post_meta($post->ID, 'pyre_page_title', true)!='hide'): ?>
  247.  
  248. <div id="page-title">
  249.  
  250. <div class="page_title_inner">
  251.  
  252. <div class="container clearfix">
  253.  
  254. <h1><?php the_title(); ?></h1>
  255.  
  256. <?php
  257. if($data['en_breadcrumb']){
  258. nimva_breadcrumb();
  259. }
  260. ?>
  261.  
  262. <?php if ($data['title_breadcrumb_right_side'] != 'Leave Empty'): ?>
  263. <div class="searchtop-meta">
  264. <?php
  265. if($data['title_breadcrumb_right_side'] == 'Social Links') get_template_part('functions/template/social-links');
  266. elseif($data['title_breadcrumb_right_side'] == 'Search Box') get_search_form();
  267. else get_template_part('functions/template/contact-info');
  268. ?>
  269. </div>
  270. <?php endif; ?>
  271.  
  272. </div>
  273.  
  274. </div>
  275.  
  276. </div>
  277.  
  278. <?php endif;
  279.  
  280. $spb = false;
  281. if(class_exists('Woocommerce') && is_product() ) $spb = true;
  282.  
  283. if ( (is_single() || is_singular('creativo_portfolio') ) && get_post_meta($post->ID, 'pyre_page_title', true)!='hide' && !$spb ) :
  284. ?>
  285. <div id="page-title">
  286. <div class="page_title_inner">
  287. <div class="container clearfix">
  288. <h1><?php the_title(); ?></h1>
  289. <?php
  290. if($data['en_breadcrumb']){
  291. nimva_breadcrumb();
  292. }
  293. ?>
  294. <?php if($data['blog_pn_nav']) { ?>
  295. <div id="portfolio-navigation" class="clearfix">
  296. <div class="port-nav-next">
  297. <?php next_post_link('%link', '<i class="fa fa-angle-left"></i>'); ?>
  298. </div>
  299. <div class="port-nav-prev">
  300. <?php previous_post_link('%link', '<i class="fa fa-angle-right"></i>'); ?>
  301. </div>
  302. </div>
  303. <?php } ?>
  304. </div>
  305. </div>
  306. </div>
  307. <?php
  308. endif;
  309.  
  310. if( ( class_exists( 'Woocommerce' ) && is_woocommerce() ) || ( is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) ) {
  311. ?>
  312. <div id="page-title">
  313.  
  314. <div class="page_title_inner">
  315.  
  316. <div class="container clearfix">
  317.  
  318. <h1>
  319. <?php
  320. if(!is_product()) woocommerce_page_title(true);
  321. else the_title();
  322. ?>
  323. </h1>
  324. <?php
  325. woocommerce_breadcrumb(array(
  326. 'wrap_before' => '<ul class="breadcrumbs">',
  327. 'wrap_after' => '</ul>',
  328. 'before' => '<li>',
  329. 'after' => '</li>',
  330. 'delimiter' => '',
  331. 'home' => _x( '<i class="fa fa-home"></i>', 'breadcrumb', 'woocommerce' ),
  332. ));
  333. ?>
  334.  
  335. <?php if ($data['title_breadcrumb_right_side'] != 'Leave Empty'): ?>
  336. <?php if( !is_product() ): ?>
  337. <div class="searchtop-meta">
  338. <?php
  339. if($data['title_breadcrumb_right_side'] == 'Social Links') get_template_part('functions/template/social-links');
  340. elseif($data['title_breadcrumb_right_side'] == 'Search Box') get_product_search_form();
  341. else get_template_part('functions/template/contact-info');
  342. ?>
  343. </div>
  344. <?php else: ?>
  345. <div id="portfolio-navigation" class="clearfix">
  346. <div class="port-nav-next">
  347. <?php next_post_link('%link', '<i class="fa fa-angle-left"></i>'); ?>
  348. </div>
  349. <div class="port-nav-prev">
  350. <?php previous_post_link('%link', '<i class="fa fa-angle-right"></i>'); ?>
  351. </div>
  352. </div>
  353. <?php endif; ?>
  354. <?php endif; ?>
  355.  
  356. </div>
  357. </div>
  358. </div>
  359. <?php
  360. }
  361.  
  362. if(is_archive() && ( class_exists( 'Woocommerce' ) && !is_woocommerce() ) && !get_query_var('portfolio_category') && !get_query_var('faq_category')) {
  363.  
  364. ?>
  365. <div id="page-title">
  366. <div class="page_title_inner">
  367. <div class="container clearfix">
  368. <h1>
  369. <?php if ( is_day() ) : ?>
  370. <?php printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); ?>
  371. <?php elseif ( is_month() ) : ?>
  372. <?php printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
  373. <?php elseif ( is_year() ) : ?>
  374. <?php printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
  375. <?php elseif ( is_author() ) : ?>
  376. <?php
  377. if(have_posts() ) {
  378. the_post();
  379. ?>
  380. <?php _e('Posts by: ','Nimva'); echo get_the_author(); ?>
  381. <?php
  382. rewind_posts();
  383. }
  384. ?>
  385. <?php elseif ( is_tag() ) : ?>
  386. <?php _e('Tags: ', 'Nimva'); single_cat_title(); ?>
  387. <?php else : ?>
  388. <?php _e('Category: ', 'Nimva'); single_cat_title(); ?>
  389. <?php endif; ?>
  390. </h1>
  391. <?php
  392. if($data['en_breadcrumb']){
  393. nimva_breadcrumb();
  394. }
  395. ?>
  396.  
  397. <?php if ($data['title_breadcrumb_right_side'] != 'Leave Empty'): ?>
  398. <div class="searchtop-meta">
  399. <?php
  400. if($data['title_breadcrumb_right_side'] == 'Social Links') get_template_part('functions/template/social-links');
  401. elseif($data['title_breadcrumb_right_side'] == 'Search Box') get_search_form();
  402. else get_template_part('functions/template/contact-info');
  403. ?>
  404. </div>
  405. <?php endif; ?>
  406.  
  407. </div>
  408. </div>
  409. </div>
  410. <?php
  411. }
  412.  
  413. if ( is_search() && ( class_exists( 'Woocommerce' ) && !is_woocommerce() ) ) {
  414. ?>
  415. <div id="page-title">
  416. <div class="page_title_inner">
  417. <div class="container clearfix">
  418. <h1><?php echo _e('Search results for:', 'Nimva'); ?> <?php echo get_search_query(); ?></h1>
  419. <?php
  420. if($data['en_breadcrumb']){
  421. nimva_breadcrumb();
  422. }
  423. ?>
  424.  
  425. <?php if ($data['title_breadcrumb_right_side'] != 'Leave Empty'): ?>
  426. <div class="searchtop-meta">
  427. <?php
  428. if($data['title_breadcrumb_right_side'] == 'Social Links') get_template_part('functions/template/social-links');
  429. elseif($data['title_breadcrumb_right_side'] == 'Search Box') get_search_form();
  430. else get_template_part('functions/template/contact-info');
  431. ?>
  432. </div>
  433. <?php endif; ?>
  434.  
  435. </div>
  436. </div>
  437. </div>
  438.  
  439. <?php
  440. }
  441.  
  442. if(get_query_var('portfolio_category') || get_query_var('faq_category')){
  443. ?>
  444. <div id="page-title">
  445. <div class="page_title_inner">
  446. <div class="container clearfix">
  447. <h1><?php single_cat_title(); ?></h1>
  448. <?php
  449. if($data['en_breadcrumb']){
  450. nimva_breadcrumb();
  451. }
  452. ?>
  453. <?php if ($data['title_breadcrumb_right_side'] != 'Leave Empty'): ?>
  454. <div class="searchtop-meta">
  455. <?php
  456. if($data['title_breadcrumb_right_side'] == 'Social Links') get_template_part('functions/template/social-links');
  457. elseif($data['title_breadcrumb_right_side'] == 'Search Box') get_search_form();
  458. else get_template_part('functions/template/contact-info');
  459. ?>
  460. </div>
  461. <?php endif; ?>
  462. </div>
  463. </div>
  464. </div>
  465. <?php
  466. }
  467.  
  468. }
  469. endif;
  470. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement