<?php
/**
 * Section of the template that displays the site's identity.
 *
 * @since Grocery Supermarket Chain 1.0.0
 */

?>

<div class="site-branding text-center text-md-left">
	<?php
		if (get_theme_mod('grocery_supermarket_chain_site_logo', false)) { ?>
			<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
				<img src="<?php echo esc_url( grocery_supermarket_chain_get_custom_logo_url() ); ?>" id="headerLogo">
			</a>
			<?php
		}
	?>
	<?php
		if (get_theme_mod('grocery_supermarket_chain_site_title_text', true)) { ?>
			<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
			<?php
		}
		$grocery_supermarket_chain_description = get_bloginfo( 'description', 'display' );
		if (get_theme_mod('grocery_supermarket_chain_site_tagline_text', false)) {
			if ( $grocery_supermarket_chain_description || is_customize_preview() ) :
				?>
				<p class="site-description"><?php echo esc_html($grocery_supermarket_chain_description); /* WPCS: xss ok. */ ?></p>
			<?php endif;
		}
	?>
</div>