<?php 
/**
 * Header layout 3 for Picart
 *
 * Displays The Header layout 3. This file is imported in header.php
 *
 * @package Picart
 * 
 * @since pickart 1.0
 */
global $picart;?>

<!--HEADER STARTS-->
    <div class="header type3">
        <div class="center">
            <div class="head_inner">
            <!--LOGO START-->
                <div class="logo">
                    <?php if(!empty($picart['logo_image_id']['url'])){   ?>
                        <a class="logoimga" title="<?php bloginfo('name') ;?>" href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php $logo = $picart['logo_image_id']; echo $logo['url']; ?>" /></a>
                        <span class="desc"><?php echo bloginfo('description'); ?></span>
                    <?php }else{ ?>
                            <?php if ( is_home() ) { ?>   
                            <h1><a href="<?php echo esc_url( home_url( '/' ) );?>"><?php bloginfo('name'); ?></a></h1>
                            <span class="desc"><?php echo bloginfo('description'); ?></span>
                            <?php }else{ ?>
                            <h2><a href="<?php echo esc_url( home_url( '/' ) );?>"><?php bloginfo('name'); ?></a></h2>
                            <span class="desc"><?php echo bloginfo('description'); ?></span>
                            <?php } ?>
                    
                    <?php } ?>
                </div>
            <!--LOGO END-->
		
            
            </div>
    </div>
    <div class="head_inner menubarbg">
        <div class="center centerlogoarea">
        <!--MENU START--> 
            <!--MOBILE MENU START-->
            <a id="simple-menu" href="#sidr"><i class="fa-bars"></i></a>
            <!--MOBILE MENU END--> 
            <div id="topmenu">
            <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
            </div>
        <!--MENU END-->
        </div>
   		</div>
    </div>
<!--HEADER ENDS-->