• File: header.php
  • Full Path: /home/chassiw/www/wp-content/themes/buildbench/header.php
  • File size: 1.62 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
/**
 * The header template for the theme
 */
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>

    <head>
        <meta charset="<?php bloginfo( 'charset' ); ?>">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<?php wp_head(); ?>
    </head>

    <body <?php body_class(); ?> >
       <!-- nav search -->
       <div class="zoom-anim-dialog mfp-hide modal-searchPanel" id="modal-popup-2">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="xs-search-panel">
                    <?php get_search_form(); ?>
                </div>
            </div>
        </div>
    </div><!-- End xs modal -->
    <!-- end language switcher strart -->
    <?php 
        $box_class =  buildbench_option('general_body_box_layout');
        if(isset($box_class['style'])){
            if($box_class['style']=='yes'){
                $box_class = 'yes';
            }else{
                $box_class = '';
            }
        }
     ?>
    <div class="body-innner-content <?php echo esc_html($box_class =='yes'? "box-layout": ''); ?>">

	<?php 
         
      $header_style             = buildbench_option('header_layout_style', 'solid');
      $page_override_header     = buildbench_meta_option(get_the_ID(),'page_header_override');
      $page_header_layout_style = buildbench_meta_option(get_the_ID(),'page_header_layout_style','solid');
       
    //   if($page_override_header=='yes'):
    //      $header_style = $page_header_layout_style;
    //   endif;  
     
      get_template_part( 'template-parts/headers/header', $header_style );
	?>