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

<!--HEADER STARTS-->
    	<!--HEAD INFO AREA-->
		<div class="head-info-area">
        	<div class="center">
            	<?php if(!dynamic_sidebar('headerleft')) : ?>
                <div class="left"><span class="phntp"><?php if (!empty ($picart['phntp_text_id'])) { ?><?php $phntp = html_entity_decode($picart['phntp_text_id']); $phntp = stripslashes($phntp); echo do_shortcode($phntp); ?><?php } ?></span></div><?php endif; ?>
                <?php if(!dynamic_sidebar('headerright')) : ?>
				<div class="right socl"><span class="suptp"><?php if (!empty ($picart['suptp_text'])) { ?><?php $suptp = html_entity_decode($picart['suptp_text']); $suptp = stripslashes($suptp); echo do_shortcode($suptp); ?><?php } ?></span> </div><?php endif; ?>
                <div class="clear"></div>                
            </div>
        </div>
    <div class="header type1">
        <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-->