<?php
$gettopbar  = get_theme_mod( 'topbar_section_on_off', false );
if ( true == $gettopbar ) :
	?>
<div class="site-topbar-area">
	<div class="container">
		<div class="row">
			<div class="col-sm-4 align-self-center">
				<div class="topbar-search-form">
					<?php get_search_form(); ?>
				</div>
			</div>
			<div class="col-sm-8 text-right align-self-center">
				<div class="social-link-top">
					<?php
					minimalblog_social_links(); ?>
				</div>
			</div>
		</div>
	</div>
</div>
<?php endif; ?>
<div id="mainmenu" class="header-four-menu-area menu-area sticky-top">
	<div class="container">
		<div class="row">
			<div class="col-md-3">
				<div class="site-branding-area">
				<?php
				if ( has_custom_logo() ) :
					the_custom_logo();
					endif;
				?>
					<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html( get_bloginfo( 'name' ) ); ?></a></h1>
						<?php
						$minimalblog_description = get_bloginfo( 'description', 'display' );
						if ( $minimalblog_description || is_customize_preview() ) :
							?>
						<p class="site-description"><?php echo esc_html( $minimalblog_description ); /* WPCS: xss ok. */ ?></p>
							<?php
					endif;
						?>
				</div>
			</div>
			<div class="col-md-9 text-right align-self-center">
				<div class="cssmenu" id="cssmenu">
					<?php
						wp_nav_menu(
							array(
								'theme_location'    => 'main-menu',
								'container'         => 'ul',
							)
						);
						?>
				 </div>
			</div>
		</div>
	</div>
</div>
<div class="searchform-area">
	  <div class="search-close">
		  <i class="fa fa-times"></i>
	  </div>
	  <div class="search-form-inner">
	  <div class="container">
		<div class="row">
			<div class="col-md-12">
				<?php get_search_form(); ?>
			</div>
		</div>
	</div>
	</div>
  </div>
