Guest User

Untitled

a guest
Mar 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.58 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!--[if IE 6]>
  3. <html id="ie6" <?php language_attributes(); ?>>
  4. <![endif]-->
  5. <!--[if IE 7]>
  6. <html id="ie7" <?php language_attributes(); ?>>
  7. <![endif]-->
  8. <!--[if IE 8]>
  9. <html id="ie8" <?php language_attributes(); ?>>
  10. <![endif]-->
  11. <!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
  12. <html <?php language_attributes(); ?>>
  13. <!--<![endif]-->
  14. <head>
  15. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  16. <?php elegant_description(); ?>
  17. <?php elegant_keywords(); ?>
  18. <?php elegant_canonical(); ?>
  19.  
  20. <?php do_action( 'et_head_meta' ); ?>
  21.  
  22. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  23.  
  24. <?php $template_directory_uri = get_template_directory_uri(); ?>
  25. <!--[if lt IE 9]>
  26. <script src="<?php echo esc_url( $template_directory_uri . '/js/html5.js"' ); ?>" type="text/javascript"></script>
  27. <![endif]-->
  28.  
  29. <script type="text/javascript">
  30. document.documentElement.className = 'js';
  31. </script>
  32.  
  33. <?php wp_head(); ?>
  34. </head>
  35. <body <?php body_class(); ?>>
  36. <?php
  37. $product_tour_enabled = et_builder_is_product_tour_enabled();
  38. $page_container_style = $product_tour_enabled ? ' style="padding-top: 0px;"' : ''; ?>
  39. <div id="page-container"<?php echo $page_container_style; ?>>
  40. <?php
  41. if ( $product_tour_enabled || is_page_template( 'page-template-blank.php' ) ) {
  42. return;
  43. }
  44.  
  45. $et_secondary_nav_items = et_divi_get_top_nav_items();
  46.  
  47. $et_phone_number = $et_secondary_nav_items->phone_number;
  48.  
  49. $et_email = $et_secondary_nav_items->email;
  50.  
  51. $et_contact_info_defined = $et_secondary_nav_items->contact_info_defined;
  52.  
  53. $show_header_social_icons = $et_secondary_nav_items->show_header_social_icons;
  54.  
  55. $et_secondary_nav = $et_secondary_nav_items->secondary_nav;
  56.  
  57. $et_top_info_defined = $et_secondary_nav_items->top_info_defined;
  58.  
  59. $et_slide_header = 'slide' === et_get_option( 'header_style', 'left' ) || 'fullscreen' === et_get_option( 'header_style', 'left' ) ? true : false;
  60. ?>
  61.  
  62. <?php if ( $et_top_info_defined && ! $et_slide_header || is_customize_preview() ) : ?>
  63. <div id="top-header"<?php echo $et_top_info_defined ? '' : 'style="display: none;"'; ?>>
  64. <div class="container clearfix">
  65.  
  66. <?php if ( $et_contact_info_defined ) : ?>
  67.  
  68. <div id="et-info">
  69. <?php if ( '' !== ( $et_phone_number = et_get_option( 'phone_number' ) ) ) : ?>
  70. <span id="et-info-phone"><?php echo et_sanitize_html_input_text( $et_phone_number ); ?></span>
  71. <?php endif; ?>
  72.  
  73. <?php if ( '' !== ( $et_email = et_get_option( 'header_email' ) ) ) : ?>
  74. <a href="<?php echo esc_attr( 'mailto:' . $et_email ); ?>"><span id="et-info-email"><?php echo esc_html( $et_email ); ?></span></a>
  75. <?php endif; ?>
  76.  
  77. <?php
  78. if ( true === $show_header_social_icons ) {
  79. get_template_part( 'includes/social_icons', 'header' );
  80. } ?>
  81. </div> <!-- #et-info -->
  82.  
  83. <?php endif; // true === $et_contact_info_defined ?>
  84.  
  85. <div id="et-secondary-menu">
  86. <?php
  87. if ( ! $et_contact_info_defined && true === $show_header_social_icons ) {
  88. get_template_part( 'includes/social_icons', 'header' );
  89. } else if ( $et_contact_info_defined && true === $show_header_social_icons ) {
  90. ob_start();
  91.  
  92. get_template_part( 'includes/social_icons', 'header' );
  93.  
  94. $duplicate_social_icons = ob_get_contents();
  95.  
  96. ob_end_clean();
  97.  
  98. printf(
  99. '<div class="et_duplicate_social_icons">
  100. %1$s
  101. </div>',
  102. $duplicate_social_icons
  103. );
  104. }
  105.  
  106. if ( '' !== $et_secondary_nav ) {
  107. echo $et_secondary_nav;
  108. }
  109.  
  110. et_show_cart_total();
  111. ?>
  112. </div> <!-- #et-secondary-menu -->
  113.  
  114. </div> <!-- .container -->
  115. </div> <!-- #top-header -->
  116. <?php endif; // true ==== $et_top_info_defined ?>
  117.  
  118. <?php if ( $et_slide_header || is_customize_preview() ) : ?>
  119. <div class="et_slide_in_menu_container">
  120. <?php if ( 'fullscreen' === et_get_option( 'header_style', 'left' ) || is_customize_preview() ) { ?>
  121. <span class="mobile_menu_bar et_toggle_fullscreen_menu"></span>
  122. <?php } ?>
  123.  
  124. <?php
  125. if ( $et_contact_info_defined || true === $show_header_social_icons || false !== et_get_option( 'show_search_icon', true ) || class_exists( 'woocommerce' ) || is_customize_preview() ) { ?>
  126. <div class="et_slide_menu_top">
  127.  
  128. <?php if ( 'fullscreen' === et_get_option( 'header_style', 'left' ) ) { ?>
  129. <div class="et_pb_top_menu_inner">
  130. <?php } ?>
  131. <?php }
  132.  
  133. if ( true === $show_header_social_icons ) {
  134. get_template_part( 'includes/social_icons', 'header' );
  135. }
  136.  
  137. et_show_cart_total();
  138. ?>
  139. <?php if ( false !== et_get_option( 'show_search_icon', true ) || is_customize_preview() ) : ?>
  140. <?php if ( 'fullscreen' !== et_get_option( 'header_style', 'left' ) ) { ?>
  141. <div class="clear"></div>
  142. <?php } ?>
  143. <form role="search" method="get" class="et-search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
  144. <?php
  145. printf( '<input type="search" class="et-search-field" placeholder="%1$s" value="%2$s" name="s" title="%3$s" />',
  146. esc_attr__( 'Search &hellip;', 'Divi' ),
  147. get_search_query(),
  148. esc_attr__( 'Search for:', 'Divi' )
  149. );
  150. ?>
  151. <button type="submit" id="searchsubmit_header"></button>
  152. </form>
  153. <?php endif; // true === et_get_option( 'show_search_icon', false ) ?>
  154.  
  155. <?php if ( $et_contact_info_defined ) : ?>
  156.  
  157. <div id="et-info">
  158. <?php if ( '' !== ( $et_phone_number = et_get_option( 'phone_number' ) ) ) : ?>
  159. <span id="et-info-phone"><?php echo et_sanitize_html_input_text( $et_phone_number ); ?></span>
  160. <?php endif; ?>
  161.  
  162. <?php if ( '' !== ( $et_email = et_get_option( 'header_email' ) ) ) : ?>
  163. <a href="<?php echo esc_attr( 'mailto:' . $et_email ); ?>"><span id="et-info-email"><?php echo esc_html( $et_email ); ?></span></a>
  164. <?php endif; ?>
  165. </div> <!-- #et-info -->
  166.  
  167. <?php endif; // true === $et_contact_info_defined ?>
  168. <?php if ( $et_contact_info_defined || true === $show_header_social_icons || false !== et_get_option( 'show_search_icon', true ) || class_exists( 'woocommerce' ) || is_customize_preview() ) { ?>
  169. <?php if ( 'fullscreen' === et_get_option( 'header_style', 'left' ) ) { ?>
  170. </div> <!-- .et_pb_top_menu_inner -->
  171. <?php } ?>
  172.  
  173. </div> <!-- .et_slide_menu_top -->
  174. <?php } ?>
  175.  
  176. <div class="et_pb_fullscreen_nav_container">
  177. <?php
  178. $slide_nav = '';
  179. $slide_menu_class = 'et_mobile_menu';
  180.  
  181. $slide_nav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'echo' => false, 'items_wrap' => '%3$s' ) );
  182. $slide_nav .= wp_nav_menu( array( 'theme_location' => 'secondary-menu', 'container' => '', 'fallback_cb' => '', 'echo' => false, 'items_wrap' => '%3$s' ) );
  183. ?>
  184.  
  185. <ul id="mobile_menu_slide" class="<?php echo esc_attr( $slide_menu_class ); ?>">
  186.  
  187. <?php
  188. if ( '' == $slide_nav ) :
  189. ?>
  190. <?php if ( 'on' == et_get_option( 'divi_home_link' ) ) { ?>
  191. <li <?php if ( is_home() ) echo( 'class="current_page_item"' ); ?>><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html_e( 'Home', 'Divi' ); ?></a></li>
  192. <?php }; ?>
  193.  
  194. <?php show_page_menu( $slide_menu_class, false, false ); ?>
  195. <?php show_categories_menu( $slide_menu_class, false ); ?>
  196. <?php
  197. else :
  198. echo( $slide_nav );
  199. endif;
  200. ?>
  201.  
  202. </ul>
  203. </div>
  204. </div>
  205. <?php endif; // true ==== $et_slide_header ?>
  206.  
  207. <header id="main-header" data-height-onload="<?php echo esc_attr( et_get_option( 'menu_height', '66' ) ); ?>">
  208. <div class="container clearfix et_menu_container">
  209. <?php
  210. $logo = ( $user_logo = et_get_option( 'divi_logo' ) ) && '' != $user_logo
  211. ? $user_logo
  212. : $template_directory_uri . '/images/logo.png';
  213. ?>
  214. <div class="logo_container">
  215. <span class="logo_helper"></span>
  216. <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
  217. <img src="<?php echo esc_attr( $logo ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" id="logo" data-height-percentage="<?php echo esc_attr( et_get_option( 'logo_height', '54' ) ); ?>" />
  218. </a>
  219. </div>
  220. <div id="et-top-navigation" data-height="<?php echo esc_attr( et_get_option( 'menu_height', '66' ) ); ?>" data-fixed-height="<?php echo esc_attr( et_get_option( 'minimized_menu_height', '40' ) ); ?>">
  221. <?php if ( ! $et_slide_header || is_customize_preview() ) : ?>
  222. <nav id="top-menu-nav">
  223. <?php
  224. $menuClass = 'nav';
  225. if ( 'on' == et_get_option( 'divi_disable_toptier' ) ) $menuClass .= ' et_disable_top_tier';
  226. $primaryNav = '';
  227.  
  228. $primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'menu_id' => 'top-menu', 'echo' => false ) );
  229.  
  230. if ( '' == $primaryNav ) :
  231. ?>
  232. <ul id="top-menu" class="<?php echo esc_attr( $menuClass ); ?>">
  233. <?php if ( 'on' == et_get_option( 'divi_home_link' ) ) { ?>
  234. <li <?php if ( is_home() ) echo( 'class="current_page_item"' ); ?>><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html_e( 'Home', 'Divi' ); ?></a></li>
  235. <?php }; ?>
  236.  
  237. <?php show_page_menu( $menuClass, false, false ); ?>
  238. <?php show_categories_menu( $menuClass, false ); ?>
  239. </ul>
  240.  
  241. <?php
  242. else :
  243. echo( $primaryNav );
  244. endif;
  245. ?>
  246. <span class="menu-text">international customers welcome!</span>
  247. </nav>
  248. <?php endif; ?>
  249.  
  250. <?php
  251. if ( ! $et_top_info_defined && ( ! $et_slide_header || is_customize_preview() ) ) {
  252. et_show_cart_total( array(
  253. 'no_text' => true,
  254. ) );
  255. }
  256. ?>
  257.  
  258. <?php if ( $et_slide_header || is_customize_preview() ) : ?>
  259. <span class="mobile_menu_bar et_pb_header_toggle et_toggle_<?php echo esc_attr( et_get_option( 'header_style', 'left' ) ); ?>_menu"></span>
  260. <?php endif; ?>
  261.  
  262. <?php if ( ( false !== et_get_option( 'show_search_icon', true ) && ! $et_slide_header ) || is_customize_preview() ) : ?>
  263. <div id="et_top_search">
  264. <span id="et_search_icon"></span>
  265. </div>
  266. <?php endif; // true === et_get_option( 'show_search_icon', false ) ?>
  267.  
  268. <?php do_action( 'et_header_top' ); ?>
  269. </div> <!-- #et-top-navigation -->
  270. </div> <!-- .container -->
  271. <div class="et_search_outer">
  272. <div class="container et_search_form_container">
  273. <form role="search" method="get" class="et-search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
  274. <?php
  275. printf( '<input type="search" class="et-search-field" placeholder="%1$s" value="%2$s" name="s" title="%3$s" />',
  276. esc_attr__( 'Search &hellip;', 'Divi' ),
  277. get_search_query(),
  278. esc_attr__( 'Search for:', 'Divi' )
  279. );
  280. ?>
  281. </form>
  282. <span class="et_close_search_field"></span>
  283. </div>
  284. </div>
  285. </header> <!-- #main-header -->
  286.  
  287. <div id="et-main-area">
Add Comment
Please, Sign In to add comment