<?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 Covfefe
 */

?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="profile" href="https://gmpg.org/xfn/11">

	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
<?php get_template_part('template-parts/header', 'popup-search'); ?>
<div id="page" class="site">

	
		
	<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'covfefe' ); ?></a>

	<header id="masthead">
		<div class="covf-header-top">
		</div>
		<div  class="site-header">
		<div class="container">
			
			<div class="row">
				<div class="col-md-12">
					<div class="site-branding text-center">
				
						<?php
							if ( has_custom_logo() ) {
								the_custom_logo();
							} else {
						?>
					
							<?php
							if ( is_front_page() && is_home() ) :
								?>
								<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
								<?php
							else :
								?>
								<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
								<?php
							endif;
							$covfefe_description = get_bloginfo( 'description', 'display' );
							if ( $covfefe_description || is_customize_preview() ) :
								?>
								<p class="site-description"><?php echo wp_kses_post( $covfefe_description ); /* WPCS: xss ok. */ ?></p>
							<?php endif; ?>
						<?php } ?>
					</div><!-- .site-branding -->
				</div>
				
			</div>
		</div>
		</div>
		
		<div class="container">
			<div class="row">
				<div class="col-md-12">
					<nav id="site-navigation" class="main-navigation">
						<div class="text-center">
						<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', 'covfefe' ); ?></button>
						</div>
						<?php
						wp_nav_menu( array(
							'theme_location' => 'menu-1',
							'menu_id'        => 'primary-menu',
							'items_wrap' => '
							
							<ul id="primary-menu" class="menu nav-menu">%3$s</ul>
							<div class="pull-right covf-menu-search"><i class="fa fa-search"></i></div><div class="clearfix"></div>'
					) ); 
						?>
						<div class="main-navigation-bg"></div>
						<div class="clearfix"></div>
					</nav><!-- #site-navigation -->
				</div>
			</div>
			
		</div>

	</header><!-- #masthead -->
	
	<?php 
		if ( is_front_page() ) {
			$personal_show = get_theme_mod( 'personal_show' ); 
			if ( $personal_show == 'yes' ) {
				$pagedku = (get_query_var('paged')) ? get_query_var('paged') : 1;
				if ($pagedku == 1) {
					get_template_part( 'template-parts/personal-info' ); 
				}
			}
		}
	?>
	
	<?php 
		$ticker_show = get_theme_mod( 'ticker_show' ); 
		if ( $ticker_show == 'yes' ) {
			get_template_part( 'template-parts/news-ticker' ); 
		}
	?>
	
	<div id="content" class="site-content">
	<?php get_template_part( 'wrapper-start' ); ?>
