<?php
$menu_width="";
if ( get_theme_mod('advance_education_pro_site_menu_width',true) != "" ) {
  $menu_width=get_theme_mod('advance_education_pro_site_menu_width','250');
}
?>
<div class="menubar m-0 mt-md-0">
  <div class="container right_menu">
    <div class="row">
      <div class="col-lg-11 col-md-8 col-sm-6 col-6">
        <div class="innermenubox sticky">
          <div class="toggle-nav mobile-menu">
            <span><i class="fas fa-bars"></i></span>
          </div>
          <div id="mySidenav" class="nav sidenav">
            <nav id="site-navigation" class="main-navigation">
              <a href="javascript:void(0)" class="closebtn mobile-menu"><i class="fas fa-times"></i></a>
              <?php 
                wp_nav_menu( array( 
                  'theme_location' => 'primary',
                  'container_class' => 'menu clearfix' ,
                  'menu_class' => 'clearfix',
                  'items_wrap' => '<ul id="%1$s" class="%2$s mobile_nav">%3$s</ul>',
                  'fallback_cb' => 'wp_page_menu',
                ) ); 
              ?>
            </nav><!-- #site-navigation -->
          </div>
          <div class="clearfix"></div>
        </div>
      </div>
      <div class="search-box col-lg-1 col-md-4 col-sm-6 col-6">
        <div class="search">
          <i class="fa fa-search" aria-hidden="true"></i>
        </div>
     </div>
      <div class="serach_outer">
        <div class="serach_inner">
          <form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">  
            <div class="row">
              <div class="col-lg-10 col-md-10 col-sm-11 col-10">
                <input type="search" class="search-field" placeholder="<?php if (get_theme_mod('advance_education_pro_header_search_placeholder_text')!==''){?><?php echo esc_html(get_theme_mod('advance_education_pro_header_search_placeholder_text','placeholder'));}?>" value="<?php echo get_search_query(); ?>" name="s" />
              </div>
              <div class="col-lg-2 col-md-2 col-sm-1 col-2">
                <button type="submit" class="search-submit"><span class="screen-reader-text"><?php esc_html_e( 'Search', 'advance-education-pro' ); ?></span>
                <span><i class="fas fa-search"></i></span></button>
                <input type="hidden" name="post_type" value="properties">
              </div>
            </div>
          </form>
        </div>
      </div>
  </div>
</div>
</div>
<span class="d-none" id="menu-width"><?php echo esc_html($menu_width); ?></span>