SHARE
TWEET

Untitled

a guest Jan 22nd, 2020 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * The template for displaying theme header
  4.  *
  5.  * Parts: Top bar, Logo, Navigation
  6.  */
  7.  
  8. ?><!DOCTYPE html>
  9. <html <?php language_attributes(); ?>>
  10.  
  11. <head>
  12.  
  13.     <meta charset="<?php bloginfo('charset'); ?>" />
  14.     <meta http-equiv="x-ua-compatible" content="ie=edge" />
  15.     <meta name="viewport" content="width=device-width, initial-scale=1" />
  16.     <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  17.     <link rel="profile" href="http://gmpg.org/xfn/11" />
  18.    
  19.     <?php wp_head(); ?>
  20.  
  21. </head>
  22.  
  23. <body <?php body_class(); ?>>
  24.  
  25. <?php do_action('bunyad_begin_body'); ?>
  26. <?php function_exists('wp_body_open') ? wp_body_open() : do_action('wp_body_open'); ?>
  27.  
  28. <div class="main-wrap">
  29.  
  30.     <?php
  31.         /**
  32.          * Determine the current header layout
  33.          */
  34.         $is_default = (!Bunyad::options()->header_layout OR in_array(Bunyad::options()->header_layout, array('logo-ad', 'full-top', 'alt')));
  35.        
  36.         // Bugfix: Change header class for logo-ad as AdBlock Plus blocks it
  37.         $header_class = Bunyad::options()->header_layout == 'logo-ad' ? 'logo-left' : Bunyad::options()->header_layout;
  38.        
  39.         // Has full-width background image?
  40.         if (Bunyad::options()->css_header_bg_full) {
  41.             $header_class .= ' has-bg';
  42.         }
  43.        
  44.         if (Bunyad::options()->header_layout == 'alt') {
  45.             $header_class .= ' search-alt';
  46.         }
  47.        
  48.     ?>
  49.  
  50.     <?php if ($is_default): // Default header layout with certain variations ?>
  51.  
  52.     <header id="main-head" class="main-head <?php echo esc_attr($header_class); ?>">
  53.    
  54.         <?php get_template_part('partials/header/top-bar'); ?>
  55.    
  56.         <div class="inner">
  57.             <div class="wrap logo-wrap cf">
  58.            
  59.                 <?php get_template_part('partials/header/title-logo'); ?>
  60.                
  61.                 <?php if (Bunyad::options()->header_layout == 'logo-ad' && Bunyad::options()->header_ad): ?>
  62.                
  63.                 <div class="a-right"><?php echo do_shortcode(Bunyad::options()->header_ad); ?></div>
  64.                
  65.                 <?php endif; ?>
  66.            
  67.             </div>
  68.         </div>
  69.        
  70.     </header> <!-- .main-head -->
  71.    
  72.     <?php else: // Other header layouts with markup changes ?>
  73.    
  74.         <?php get_template_part('partials/header/layout-' . Bunyad::options()->header_layout); ?>
  75.    
  76.     <?php endif; ?>
  77.    
  78. <?php do_action('bunyad_pre_main_content'); ?>
  79.     <?php
  80. if ( function_exists('yoast_breadcrumb') && !is_home() ) {
  81. yoast_breadcrumb('<p id="breadcrumbs">','</p>
  82. ');
  83. }
  84. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top