<?php
/**
 * The header for our theme.
 *
 * This is the template that displays all of the <head> section and everything up until <div id="content">
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package Education_Zone
 */

?><!DOCTYPE html>
<!--
*	site by:
*  ___   _   ___ ___ ___                   
* |   \ /_\ | _ \_ _/ _ \                  
* | |) / _ \|   /| | (_) |                 
* |___/_/ \_\_|_\___\___/__ ___ ___    _   
* |  \/  | /_\ / __|_ _| __|_ _| _ \  /_\  
* | |\/| |/ _ \ (__ | || _| | ||   / / _ \ 
* |_|  |_/_/_\_\___|___|___|___|_|_\/_/ \_\
* |  \/  |_ _|_   _/ __| || | __| |  | |   
* | |\/| || |  | || (__| __ | _|| |__| |__ 
* |_|  |_|___| |_| \___|_||_|___|____|____|
*                                          
*	RSK World Education - Free Programming Resources
*	Founded by Molla Samser, Designed & Tested by Rima Khatun
*	Website: https://rskworld.in
*	Contact: help@rskworld.in | +91 93305 39277
*	Location: Nutanhat, Mongolkote, Purba Burdwan, West Bengal, India, 713147
*
*	theme details @
*	github.com/mcoirad/Education-Zone---Extended-Wordpress-Theme
*
-->
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">


<?php wp_head(); ?>
  <script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-50813037-1', 'auto');
  ga('send', 'pageview');



</script>
  

</head>

<body <?php body_class(); ?>>
<div id="page" class="site">
	
	<header id="masthead" class="site-header" role="banner">
	    
        <?php 
            // RSK World Education Contact Information
            $phone = get_theme_mod( 'education_zone_phone', '+91 93305 39277' );
            $email = get_theme_mod( 'education_zone_email', 'help@rskworld.in' );
            $menu_label = get_theme_mod('education_zone_top_menu_label', __('RSK Quick Links','education-zone'));
        ?>
        
        
        <?php if( $phone || $email || has_nav_menu( 'secondary' ) ) { ?>
	    <div class="header-top">
    		<div class="container">
                
                <?php if( $email || $phone ){ ?>
                <div class="top-links">
    				<?php if( $email ){ ?>
                    <span><i class="fa fa-envelope-o"></i><a href="mailto:<?php echo esc_attr( $email ); ?>"><?php echo esc_html( $email ); ?></a></span>
    				<?php } if( $phone ){ ?>
                    <span><i class="fa fa-phone"></i><a href="tel:<?php echo preg_replace('/\D/', '', $phone); ?>"><?php echo esc_html( $phone ); ?></a></span>
                    <?php } ?>
    			</div>
                <?php } ?>
    			

    			<div id="mobile-header-2">
			    	<a id="responsive-btn" href="#sidr-secondary"><i class="fa fa-bars"></i></a>
				</div>
                <?php 
                if( has_nav_menu( 'secondary' ) ){ ?>
                <nav id="secondary-navigation" class="secondary-nav" role="navigation">		
                    <a href="javascript:void(0);"><?php echo esc_html( $menu_label ); ?></a>				
					<?php wp_nav_menu( array( 'theme_location' => 'secondary', 'menu_id' => 'secondary-menu', 'fallback_cb' => false ) ); ?>
				</nav><!-- #site-navigation -->
                <?php } ?>
                
    		</div>
    	</div>
        <?php } ?>
        
        <div class="header-m">
			<div class="container">
				<div class="site-branding">
					<?php 
				        if( function_exists( 'has_custom_logo' ) && has_custom_logo() ){
                            the_custom_logo();
                        } 
                    ?>
				    <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html__( 'RSK World Education', 'education-zone' ); ?></a></h1>
					<?php 
					   $description = get_bloginfo( 'description', 'display' );
					   if ( $description || is_customize_preview() ) : ?>
					       <p class="site-description"><?php echo esc_html__( 'Free Programming Resources & Source Code', 'education-zone' ); /* RSK World Education Tagline */ ?></p>
					<?php
					   endif; 
                    ?>                    
			   </div><!-- .site-branding -->
               
				<div class="form-section">
					<div class="example">						
                        <?php get_search_form(); ?>
					</div>
				</div>
			</div>
		</div>
            
        <div class="header-bottom">
			<div class="container">
                
			   
               <div id="mobile-header">
			    	<a id="responsive-menu-button" href="#sidr-main"><i class="fa fa-bars"></i></a>
				</div>
				
                <nav id="site-navigation" class="main-navigation" role="navigation">						
					<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) ); ?>
				</nav><!-- #site-navigation -->
            </div>
	    </div>
		
	</header><!-- #masthead -->
	
    <?php do_action( 'education_zone_page_header' );?>
    
    <?php 
    if(!is_page_template('template-home.php')){ 
        $class = is_404() ? 'not-found' : 'row' ;    
        ?>
		<div id="content" class="site-content">
            <div class="container">
                <div class="<?php echo esc_attr( $class ); ?>">
	<?php } 