<?php 
$school_education_lite_phone = get_theme_mod('school_education_lite_phone');
$school_education_lite_email = get_theme_mod('school_education_lite_email'); 
$school_education_lite_fb      = get_theme_mod('school_education_lite_fb');
$school_education_lite_twitter = get_theme_mod('school_education_lite_twitter');
$school_education_lite_youtube = get_theme_mod('school_education_lite_youtube');
$school_education_lite_in      = get_theme_mod('school_education_lite_in');
$school_education_lite_pin     = get_theme_mod('school_education_lite_pin');
$school_education_lite_address = get_theme_mod('school_education_lite_address');
if (
    !empty($school_education_lite_phone) || 
    !empty($school_education_lite_email) ||
    !empty($school_education_lite_fb) ||
    !empty($school_education_lite_twitter) ||
    !empty($school_education_lite_youtube) ||
    !empty($school_education_lite_in) ||
    !empty($school_education_lite_pin) ||
    !empty($school_education_lite_address)
    ) {
?>
<section id="header" class="header_top row">  
    <div class="container">
        <div class="header_top_row_top">
            <!--header section start -->
            <div class="header_left headercommon"> 
                    <div class="phone-email header_contact">
                        <ul>
                            <li>
                                <?php if (!empty($school_education_lite_phone)) { ?>
                                    <i class="fa fa-phone"></i>&nbsp;&nbsp;<a href="tel:<?php echo esc_html($school_education_lite_phone); ?>" title="<?php echo esc_attr($school_education_lite_phone); ?>"><?php echo esc_html($school_education_lite_phone); ?></a>
                                <?php } ?>           
                            </li>
                        </ul>
                    <div clear="both"></div>
                </div><!--phone-email-->
                <div class="clear"></div>
            </div><!--header_left-->
            <div class="header_center headercommon"> 
                    <div class="phone-email-address header_contact">
                        <ul>
                            <li>
                                <?php if (!empty($school_education_lite_address)) { ?>
                                    <i class="fa fa-map-marker"></i>&nbsp;&nbsp;<?php echo esc_html($school_education_lite_address); ?>
                                <?php } ?>           
                            </li>
                        </ul>
                    <div clear="both"></div>
                </div><!--phone-email-->
                <div class="clear"></div>
            </div><!--header_left-->
            <div class="header_right headercommon">
                <div class="phone-email header_contact">
                    <ul>
                        <li>
                            
                            <?php if (!empty($school_education_lite_email)) { ?>
                                <i class="fa fa-envelope"></i>&nbsp;&nbsp;<a title="<?php echo esc_attr($school_education_lite_email); ?>" href="mailto:<?php echo esc_attr($school_education_lite_email); ?>"><?php echo esc_html($school_education_lite_email); ?></a>
                            <?php } ?>
                        </li>
                    
                    </ul>
                    <div clear="both"></div>
                </div><!--phone-email-->
            </div><!--header_right headercommon-->
            <!-- header section end -->     
            <div class="clear"></div>
        </div><!--header_top_row_top-->
    </div><!--container-->
</section><!--header_top-->
<div class="clear"></div>
<?php } ?> 

<section id="header_bottom">
    <div class="container">
        <div class="header_bottom_bottom">
            <div class="header_bottom_left header_bottom_common">
                <div class="header_social">
                    <ul>
                        <?php if (!empty($school_education_lite_fb)) { ?>
                            <li><a title="<?php esc_attr_e('Facebook', 'school-education-lite'); ?>" class="fa fa-facebook" target="_blank" href="<?php echo esc_url($school_education_lite_fb); ?>"></a> </li>
                        <?php } ?>
                        <?php if (!empty($school_education_lite_twitter)) { ?>
                            <li><a title="<?php esc_attr_e('twitter', 'school-education-lite'); ?>" class="fa fa-twitter" target="_blank" href="<?php echo esc_url($school_education_lite_twitter); ?>"></a></li>
                        <?php } ?>
                        <?php if (!empty($school_education_lite_youtube)) { ?>
                            <li><a title="<?php esc_attr_e('youtube', 'school-education-lite'); ?>" class="fa fa-youtube" target="_blank" href="<?php echo esc_url($school_education_lite_youtube); ?>"></a></li>
                        <?php } ?>
                        <?php if (!empty($school_education_lite_in)) { ?>
                            <li><a title="<?php esc_attr_e('linkedin', 'school-education-lite'); ?>" class="fa fa-linkedin" target="_blank" href="<?php echo esc_url($school_education_lite_in); ?>"></a></li>
                        <?php } ?>

                        <?php if (!empty($school_education_lite_pin)) { ?>
                            <li><a title="<?php esc_attr_e('linkedin', 'school-education-lite'); ?>" class="fa fa-pinterest" target="_blank" href="<?php echo esc_url($school_education_lite_pin); ?>"></a></li>
                        <?php } ?>

                    </ul>
                </div><!--header_social-->
            </div><!--header_bottom_left-->
            <div class="header_bottom_center headerlogo header_bottom_common">
                <div class="logo">
                    <?php if (has_custom_logo()) { ?>
                        <a href="<?php echo esc_url(home_url('/')); ?>"><?php school_education_lite_the_custom_logo(); ?></a>
                    <?php }if (display_header_text() == true) { ?>
                        <h1><a href="<?php echo esc_url(home_url('/')); ?>"><?php bloginfo('name'); ?></a></h1>
                        <p><?php bloginfo('description'); ?></p>
                    <?php } ?>
                </div><!-- logo -->
            </div><!--header_bottom_left-->
            <div class="header_bottom_right header_bottom_common">
                <div class="headsearchbox">
                    <?php get_search_form(); ?>
                </div><!--headsearchbox-->
            </div><!--header_bottom_right-->
        </div><!--header_bottom_bottom-->
        <div class="clear"></div>
    </div><!--container-->
</section>

<section id="header_bottom_menu">
    <div class="container">
        <div id="main_navigation">
            <div class="main-navigation-inner mainwidth">
                <div class="toggle">
                    <a class="togglemenu" href="#"><?php esc_html_e('Menu', 'school-education-lite'); ?></a>
                    <div class="clear"></div>
                </div><!-- toggle --> 
                <div class="sitenav">
                    <div class="nav">
                        <?php
                        wp_nav_menu(array(
                            'theme_location' => 'primary'
                        ));
                        ?>
                    </div>
                    <div class="clear"></div>
                </div><!-- site-nav -->
                <div class="clear"></div>
            </div><!--main-navigation-->
            <div class="clear"></div>
        </div><!--main_navigation-->
    </div><!--container-->
</section>