Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.66 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html class="no-js" <?php language_attributes(); ?> <?php boldthemes_theme_data(); ?>>
  3. <head>
  4.  
  5. <?php
  6.  
  7.     boldthemes_set_override();
  8.     boldthemes_header_init();
  9.     boldthemes_header_meta();
  10.  
  11.     $body_style = '';
  12.  
  13.     $page_background = boldthemes_get_option( 'page_backgrouand' );
  14.     if ( $page_background ) {
  15.         if ( is_numeric( $page_background ) ) {
  16.             $page_background = wp_get_attachment_image_src( $page_background, 'full' );
  17.             $page_background = $page_background[0];
  18.         }
  19.         $body_style = ' style="background-image:url(' . $page_background . ')"';
  20.     }
  21.  
  22.     $header_extra_class = '';
  23.  
  24.     if ( boldthemes_get_option( 'boxed_menu' ) ) {
  25.         $header_extra_class .= 'gutter ';
  26.     }
  27.  
  28.     wp_head(); ?>
  29.    
  30. </head>
  31.  
  32. <body <?php echo wp_kses_post( $body_style ); ?> <?php body_class(); ?>>
  33. <?php
  34.  
  35. echo boldthemes_preloader_html(); ?>
  36.  
  37. <div class="btPageWrap" id="top">
  38.    
  39.     <div class="btVerticalHeaderTop">
  40.         <?php if ( has_nav_menu( 'primary' ) ) { ?>
  41.         <div class="btVerticalMenuTrigger">&nbsp;<?php echo boldthemes_get_icon_html( array( "icon" => "fa_f0c9", "url" => "#" ) ); ?></div>
  42.         <?php } ?> 
  43.         <div class="btLogoArea">
  44.             <div class="logo">
  45.                 <span>
  46.                     <?php boldthemes_logo( 'header' ); ?>
  47.                 </span>
  48.             </div><!-- /logo -->
  49.         </div><!-- /btLogoArea -->
  50.     </div>
  51.     <header class="mainHeader btClear <?php echo esc_attr( $header_extra_class ); ?>">
  52.         <div class="mainHeaderInner">
  53.             <?php echo boldthemes_top_bar_html( 'top' ); ?>
  54.             <div class="btLogoArea menuHolder btClear">
  55.                 <div class="port">
  56.                     <?php if ( has_nav_menu( 'primary' ) ) { ?>
  57.                         <div class="btHorizontalMenuTrigger">&nbsp;<?php echo boldthemes_get_icon_html( array( "icon" => "fa_f0c9", "url" => "#" ) ); ?></div>
  58.                     <?php } ?>
  59.                     <div class="logo">
  60.                         <span>
  61.                             <?php boldthemes_logo( 'header' ); ?>
  62.                         </span>
  63.                     </div><!-- /logo -->
  64.                     <?php
  65.                         $menu_type = boldthemes_get_option( 'menu_type' );
  66.                         if ( $menu_type == 'horizontal-below-right' || $menu_type == 'horizontal-below-center' || $menu_type == 'horizontal-below-left' || $menu_type == 'vertical-left' || $menu_type == 'vertical-right' ) {
  67.                             echo boldthemes_top_bar_html( 'logo' );
  68.                             echo '</div><!-- /port --></div><!-- /menuHolder -->';
  69.                             echo '<div class="btBelowLogoArea btClear"><div class="port">';
  70.                         }
  71.                     ?>
  72.                     <div class="menuPort">
  73.                         <?php echo boldthemes_top_bar_html( 'menu' ); ?>
  74.                         <nav>
  75.                             <?php boldthemes_nav_menu(); ?>
  76.                         </nav>
  77.                     </div><!-- .menuPort -->
  78.                 </div><!-- /port -->
  79.             </div><!-- /menuHolder / btBelowLogoArea -->
  80.         </div><!-- / inner header for scrolling -->
  81.     </header><!-- /.mainHeader -->
  82.     <div class="btContentWrap btClear">
  83.         <?php
  84.             global $bt_global_exclude_ids;
  85.             $bt_global_exclude_ids = array();
  86.         ?>
  87.         <?php
  88.         $hide_headline = boldthemes_get_option( 'hide_headline' );
  89.         if ( ( ( !$hide_headline && !is_404() ) || is_search() ) ) {
  90.             boldthemes_header_headline( array( 'breadcrumbs' => true ) );
  91.         }
  92.         ?>
  93.         <?php if ( BoldThemesFramework::$page_for_header_id != '' && ! is_search() ) { ?>
  94.             <?php
  95.                 $content = get_post( BoldThemesFramework::$page_for_header_id );
  96.                 $top_content = $content->post_content;
  97.                 if ( $top_content != '' ) {
  98.                     $top_content = apply_filters( 'the_content', $top_content );
  99.                     $top_content = preg_replace( '/data-edit_url="(.*?)"/s', 'data-edit_url="' . get_edit_post_link( BoldThemesFramework::$page_for_header_id, '' ) . '"', $top_content );
  100.                     echo '<div class = "btBlogHeaderContent">' . str_replace( ']]>', ']]&gt;', $top_content ) . '</div>';
  101.                 }
  102.                
  103.             ?>
  104.         <?php } ?>
  105.         <div class="btContentHolder">
  106.            
  107.             <div class="btContent">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement