<?php 
/**
 * Header layout 1 for SKT Education Lite
 *
 * Displays The Header layout 1. This file is imported in header.php
 *
 * @package SKT Education Lite
 * 
 * @since SKT Education Lite 1.0
 */
global $complete;?>

<!--HEADER STARTS-->
    	<!--HEAD INFO AREA-->
		<div class="header-top pd">
				<div class="right">
					<?php if (!empty ($complete['sintp_text'])) { ?><span class="sintp"><?php $sintp = html_entity_decode($complete['sintp_text']); $sintp = stripslashes($sintp); echo do_shortcode($sintp); ?></span> <?php } ?>
					<div class="search-bx" id="search-bx" style="display:none;">
						<div class="srch-image"><img src="<?php echo  bloginfo('template_url');?>/images/search-icon.png" alt="Search"></div>
						<div id="search_form_head" class="search-form">
							<?php get_search_form(); ?>
							<div class="close-image" id="search-close"><img src="<?php echo  bloginfo('template_url');?>/images/cross-icon.png" alt="Close"></div>
						</div>
					</div>
                </div>               
        </div>
    <div class="header main-header pd">
        
            <div class="head_inner">
            <!--LOGO START-->
                <div class="logo">
                    <?php if(!empty($complete['logo_image_id']['url'])){   ?>
                        <a class="logoimga" title="<?php bloginfo('name') ;?>" href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php $logo = $complete['logo_image_id']; echo $logo['url']; ?>" /></a>


                        <div class="desc">
                               <a href="<?php echo esc_url( home_url( '/' ) ); ?>"> <span class="site-title"><?php echo bloginfo('name'); ?></span></a>
                                <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><span class="tag-line"><?php echo bloginfo('description'); ?></span></a>
                        </div>


                    <?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-->
            <!--MENU START--> 
                <!--MOBILE MENU START-->
                <a id="simple-menu" href="#sidr"><i class="fa-bars"></i></a>
                <!--MOBILE MENU END--> 
                <div class="header-right">
                    <div id="topmenu">
                    <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
                    </div>
                </div>
            <!--MENU END-->
            
            </div>
   
    </div>
 
<!--HEADER ENDS-->
