<?php
/**
 * The header for our theme
 *
 * @subpackage NGO Charity Donation
 * @since 1.0
 */

?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg">
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>

<?php
	if ( function_exists( 'wp_body_open' ) ) {
	    wp_body_open();
	} else {
	    do_action( 'wp_body_open' );
	}
?>
	<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'ngo-charity-donation' ); ?></a>
	<?php if( get_theme_mod('ngo_charity_donation_theme_loader','') != ''){ ?>
		<div class="preloader">
			<div class="load">
			  <hr/><hr/><hr/><hr/>
			</div>
		</div>
	<?php }?>
	<div id="page" class="site">
		<div id="header">
			<div class="wrap_figure">
				<div class="top_bar py-2 text-center text-lg-left text-md-left">
					<div class="container">
						<div class="row">
							<div class="col-lg-8 col-md-8 col-sm-8 align-self-center">
								<?php if( get_theme_mod('ngo_charity_donation_call_text') != '' || get_theme_mod('ngo_charity_donation_call_number') != '' ){ ?>
									<span><i class="fas fa-phone-volume mr-3"></i><bdi><?php echo esc_html(get_theme_mod('ngo_charity_donation_call_text','')); ?></bdi> : <?php echo esc_html(get_theme_mod('ngo_charity_donation_call_number','')); ?></span>
								<?php }?>

								<?php if( get_theme_mod('ngo_charity_donation_email_text') != '' || get_theme_mod('ngo_charity_donation_email_address') != '' ){ ?>
									<span class="mx-md-3"><i class="fas fa-envelope-open mr-3"></i><bdi><?php echo esc_html(get_theme_mod('ngo_charity_donation_email_text','')); ?></bdi> : <?php echo esc_html(get_theme_mod('ngo_charity_donation_email_address','')); ?></span>
								<?php }?>
							</div>
							<div class="col-lg-4 col-md-4 col-sm-4 align-self-center">
								<div class="links text-center text-lg-right text-md-right">
									<?php if( get_theme_mod('ngo_charity_donation_facebook') != ''){ ?>
										<a href="<?php echo esc_url(get_theme_mod('ngo_charity_donation_facebook','')); ?>"><i class="fab fa-facebook-f mr-3"></i></a>
									<?php }?>
									<?php if( get_theme_mod('ngo_charity_donation_twitter') != ''){ ?>
										<a href="<?php echo esc_url(get_theme_mod('ngo_charity_donation_twitter','')); ?>"><i class="fab fa-twitter mr-3"></i></a>
									<?php }?>
									<?php if( get_theme_mod('ngo_charity_donation_youtube') != ''){ ?>
										<a href="<?php echo esc_url(get_theme_mod('ngo_charity_donation_youtube','')); ?>"><i class="fab fa-youtube mr-3"></i></a>
									<?php }?>
									<?php if( get_theme_mod('ngo_charity_donation_instagram') != ''){ ?>
										<a href="<?php echo esc_url(get_theme_mod('ngo_charity_donation_instagram','')); ?>"><i class="fab fa-instagram mr-3"></i></a>
									<?php }?>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="menu_header py-3">
					<div class="container">
						<div class="row">
							<div class="col-lg-3 col-md-4 col-sm-6 col-8 align-self-center">
								<div class="logo text-center text-md-left text-sm-left py-3 py-md-0">
							        <?php if ( has_custom_logo() ) : ?>
					            		<?php the_custom_logo(); ?>
						            <?php endif; ?>
					              	<?php $blog_info = get_bloginfo( 'name' ); ?>
					              	<?php if( get_theme_mod('ngo_charity_donation_logo_title',true) != '' ){ ?>
						                <?php if ( ! empty( $blog_info ) ) : ?>
						                  	<?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; ?>
						                <?php endif; ?>
						            	<?php }?>
						                <?php
					                  		$description = get_bloginfo( 'description', 'display' );
						                  	if ( $description || is_customize_preview() ) :
						                ?>
						                <?php if( get_theme_mod('ngo_charity_donation_logo_text',true) != '' ){ ?>
					                  	<p class="site-description">
					                    	<?php echo esc_html($description); ?>
					                  	</p>
					                  <?php }?>
					              	<?php endif; ?>
							    </div>
							</div>
							<div class="col-lg-7 col-md-4 col-sm-6 col-4 align-self-center">
								<?php if(has_nav_menu('primary')){?>
									<div class="toggle-menu gb_menu text-md-right">
										<button onclick="ngo_charity_donation_gb_Menu_open()" class="gb_toggle p-2"><i class="fas fa-ellipsis-h"></i><p class="mb-0"><?php esc_html_e('Menu','ngo-charity-donation'); ?></p></button>
									</div>
								<?php }?>
				   				<?php get_template_part('template-parts/navigation/navigation'); ?>
							</div>
							<div class="col-lg-2 col-md-4 col-sm-6 col-12 align-self-center">
								<?php if( get_theme_mod('ngo_charity_donation_donate_btn_link') != '' || get_theme_mod('ngo_charity_donation_donate_btn_text') != ''){ ?>
									<p class="donate_btn mb-0 text-center text-md-right"><a href="<?php echo esc_url(get_theme_mod('ngo_charity_donation_donate_btn_link','')); ?>"><i class="fas fa-heart mr-2"></i><?php echo esc_html(get_theme_mod('ngo_charity_donation_donate_btn_text','')); ?></i></a></p>
								<?php }?>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>