<!DOCTYPE html>
<html<?php language_attributes(); ?> >
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_head();?>  
</head>
<body <?php body_class(); ?> >
<div id="loader-wrapper">
<div id="loader"></div>
    <div class="loader-section section-left"></div>
    <div class="loader-section section-right"></div>
</div>
<?php if (get_theme_mod('header_fxd','on')=='on') { ?> 
<?php if (get_theme_mod('header_hide')==''){?>
<div id="header" class="header sticky" >
<?php } else { ?>
<div id="header" class="header sticky hide" >
<?php } ?>
<?php } else { ?>
<?php if (get_theme_mod('header_hide')==''){?>
<div class="header static" id="header">
<?php } else { ?>
<div class="header static hide" id="header">
<?php } ?>
<?php } ?>
<div class="container">
<header>
<?php if (get_theme_mod('menu_style','on')=='on') { ?>  
<div class="logo">
<?php } else { ?>
<div class="logo col-center">
<?php } ?>     
<?php portfoliolite_the_custom_logo(); ?>
      <?php
      if(get_theme_mod('title_disable','enable')){
      if ( is_front_page() && is_home() ) : ?>
      <h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
      <?php else : ?>
      <h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
      <?php endif;
      $description = get_bloginfo( 'description', 'display' );
      if ( $description || is_customize_preview() ) : ?>
      <p><?php echo $description; ?></p>
      <?php endif;  } ?>
</div>
<?php if (get_theme_mod('menu_style','on')=='on') { ?>  
<div id="main-menu-wrapper">
              <a href="#" id="pull" class="toggle-mobile-menu"></a>
              <nav class="navigation clearfix mobile-menu-wrapper">
                <?php if ( is_page_template( 'home-template.php' ) ) : 
                     portfoliolite_nav_menu();
                else: 
                    portfoliolite_front_nav_menu(); 
                endif;    
          ?>
              </nav>
<div class="clearfix"></div>
</div>
<?php } else { ?> 
<div id="main-menu-wrapper" class="col-center">
              <a href="#" id="pull" class="toggle-mobile-menu"></a>
              <nav class="navigation clearfix mobile-menu-wrapper">
                <?php if ( is_page_template( 'home-template.php' ) ) : 
                     portfoliolite_nav_menu();
                else: 
                    portfoliolite_front_nav_menu(); 
                endif;    
          ?>
              </nav>
<div class="clearfix"></div>
</div>
<?php } ?> 
<?php  get_template_part( 'search','form'); ?> 
</header>
</div>
</div>
<div class="clearfix"></div>