<?php
/*
* Display Theme menus & Header details
 */
?>
<div class="innermenuboxupper">
	<div class="innermenubox">
		<div class="row mx-0">
			<div class="logo-content col-lg-3 col-md-4 col-12 ps-lg-0 ps-md-0 align-self-center">
				<div class="logo-shadow">
					<div class="logo text-center">
            <?php if( has_custom_logo() ) weight_loss_center_the_custom_logo(); ?>
            <?php if(get_theme_mod('weight_loss_center_site_title',true) == 1){ ?>
              	<?php if (is_front_page() && is_home()) : ?>
	                <h1 class="text-capitalize">
	                    <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a>
	                </h1> 
	            <?php else : ?>
	                <p class="text-capitalize site-title">
	                    <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a>
	                </p>
	            <?php endif; ?>
            <?php }?>
            <?php $weight_loss_center_description = get_bloginfo( 'description', 'display' );
            if ( $weight_loss_center_description || is_customize_preview() ) : ?>
              <?php if(get_theme_mod('weight_loss_center_site_tagline',false)){ ?>
                <p class="site-description mb-0"><?php echo esc_html($weight_loss_center_description); ?></p>
              <?php }?>
            <?php endif; ?>
        	</div>
				</div>
      </div>
			<div class="col-lg-7 col-md-4 col-6 align-self-center">
				<div class="toggle-nav mobile-menu text-center">
					<button onclick="weight_loss_center_menu_open_nav()" class="responsivetoggle"><i class="fas fa-bars"></i><span class="screen-reader-text"><?php esc_html_e('Open Button','weight-loss-center'); ?></span></button>
				</div>
				<div id="mySidenav" class="nav sidenav">
					<nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Top Menu', 'weight-loss-center' ); ?>">
		      	<?php 
	          	wp_nav_menu( array(
                'theme_location' => 'primary-menu',
                'container_class' => 'main-menu clearfix' ,
                'menu_class' => 'clearfix',
                'items_wrap' => '<ul id="%1$s" class="%2$s mobile_nav">%3$s</ul>',
                'fallback_cb' => 'wp_page_menu',
	          	) );
		      	?>
						<a href="javascript:void(0)" class="closebtn mobile-menu" onclick="weight_loss_center_menu_close_nav()"><i class="fas fa-times"></i><span class="screen-reader-text"><?php esc_html_e('Close Button','weight-loss-center'); ?></span></a>
					</nav>
				</div>
			</div>
			<div class=" more-btn col-lg-2 col-md-4 col-6 align-self-center text-lg-start text-center">
				<?php if( get_theme_mod( 'weight_loss_center_header_btn_link' ) != '' || get_theme_mod( 'weight_loss_center_header_btn' ) != '') { ?>
				  <a href="<?php echo esc_url( get_theme_mod( 'weight_loss_center_header_btn_link','' ) ); ?>" class="register-btn"><?php echo esc_html( get_theme_mod( 'weight_loss_center_header_btn','' ) ); ?></a>
				<?php } ?>
			</div>
  	</div>
	</div>
</div>
