<commit_before><?php
/**
 * Default header template.
 *
 * @package BLR\Base_Theme\Templates
 */

use BLR\Base_Theme\Customizer;

$logo_header_link_url  = apply_filters( 'blr/logo-header/link-url', home_url( '/' ) );
$logo_header_alt_text  = apply_filters( 'blr/logo-header/alt-text', get_bloginfo( 'name' ) );
$logo_header_enabled   = get_theme_mod( 'blr_base_theme_logo_primary_enabled', '1' );
$logo_header_image_url = get_theme_mod(
	'blr_base_theme_logo_primary',
	Customizer\get_default( 'blr_base_theme_logo_primary' )
);

$logo_search_link_url  = apply_filters( 'blr/logo-search/link-url', '' );
$logo_search_alt_text  = apply_filters( 'blr/logo-search/alt-text', 'Powered by BLR' );
$logo_search_enabled   = get_theme_mod( 'blr_base_theme_logo_search_enabled', '1' );
$logo_search_image_url = get_theme_mod(
	'blr_base_theme_logo_search',
	Customizer\get_default( 'blr_base_theme_logo_search' )
);

$phone_number = get_theme_mod(
	'blr_base_theme_phone_number',
	Customizer\get_default( 'blr_base_theme_phone_number' )
);
?>

<div class="branding branding--header">

	<?php if ( ! empty( $logo_header_enabled ) ) : ?>
		<?php if ( ! empty( $logo_header_link_url ) ) : ?>
			<a class="logo logo--header" href="<?php echo esc_url( $logo_header_link_url ); ?>">
		<?php else : ?>
			<div class="logo logo--header">
		<?php endif; ?>

		<?php if ( ! empty( $logo_header_image_url ) ) : ?>
			<img
				class="logo__image"
				src="<?php echo esc_url( $logo_header_image_url ) ?>"
				alt="<?php echo esc_attr( $logo_header_alt_text ); ?>"
			>
		<?php else : ?>
			<p class="logo__text">
				<?php echo esc_html( $logo_header_alt_text ); ?>
			</p>
		<?php endif; ?>

		<?php if ( ! empty( $logo_header_link_url ) ) : ?>
			</a><!-- /.logo -->
		<?php else : ?>
			</div><!-- /.logo -->
		<?php endif; ?>
	<?php endif; ?>

</div><!-- /.branding -->
<div class="header--right-side" role="contentinfo">
	<div class="header--row header--top-row">
		<!--Phone Number-->
		<?php if ( ! empty( $phone_number ) ) : ?>
			<p class="site-info__phone-number">
				<?php echo wp_kses_post( $phone_number ); ?>
			</p>
		<?php endif; ?>
		<!--Social Icons-->
		<?php if ( class_exists( 'ET_Monarch' ) ) : ?>
			<span class="site-info__social-icons">
				<?php echo do_shortcode( '[et_social_follow icon_style="simple" icon_shape="rectangle" col_number="auto" spacing="true"]' ); ?>
			</span>
		<?php endif; ?>
	</div>
	<div class="header--row">
		<!--Search-->
		<div class="header--search">
			<?php if ( has_nav_menu( 'nav-search' ) ) : ?>
				<nav class="nav nav--search">
					<?php wp_nav_menu( [ 'theme_location' => 'nav-search' ] ); ?>
				</nav><!-- /.nav -->
			<?php endif; ?>
			<?php echo get_search_form(); ?>
		</div>

		<?php if ( ! empty( $logo_search_enabled ) ) : ?>
			<!--Right logo-->
			<div class="header--right-logo">
				<?php if ( ! empty( $logo_search_image_url ) ) : ?>

					<?php if ( ! empty( $logo_search_link_url ) ) : ?>
						<a class="logo logo--search" href="<?php echo esc_url( $logo_search_link_url ); ?>">
					<?php else : ?>
						<div class="logo logo--search">
					<?php endif; ?>

					<img<commit_msg>Don't render `.header-top-row` if not needed<commit_after><?php
/**
 * Default header template.
 *
 * @package BLR\Base_Theme\Templates
 */

use BLR\Base_Theme\Customizer;

$logo_header_link_url  = apply_filters( 'blr/logo-header/link-url', home_url( '/' ) );
$logo_header_alt_text  = apply_filters( 'blr/logo-header/alt-text', get_bloginfo( 'name' ) );
$logo_header_enabled   = get_theme_mod( 'blr_base_theme_logo_primary_enabled', '1' );
$logo_header_image_url = get_theme_mod(
	'blr_base_theme_logo_primary',
	Customizer\get_default( 'blr_base_theme_logo_primary' )
);

$logo_search_link_url  = apply_filters( 'blr/logo-search/link-url', '' );
$logo_search_alt_text  = apply_filters( 'blr/logo-search/alt-text', 'Powered by BLR' );
$logo_search_enabled   = get_theme_mod( 'blr_base_theme_logo_search_enabled', '1' );
$logo_search_image_url = get_theme_mod(
	'blr_base_theme_logo_search',
	Customizer\get_default( 'blr_base_theme_logo_search' )
);

$phone_number = get_theme_mod(
	'blr_base_theme_phone_number',
	Customizer\get_default( 'blr_base_theme_phone_number' )
);
?>

<div class="branding branding--header">

	<?php if ( ! empty( $logo_header_enabled ) ) : ?>
		<?php if ( ! empty( $logo_header_link_url ) ) : ?>
			<a class="logo logo--header" href="<?php echo esc_url( $logo_header_link_url ); ?>">
		<?php else : ?>
			<div class="logo logo--header">
		<?php endif; ?>

		<?php if ( ! empty( $logo_header_image_url ) ) : ?>
			<img
				class="logo__image"
				src="<?php echo esc_url( $logo_header_image_url ) ?>"
				alt="<?php echo esc_attr( $logo_header_alt_text ); ?>"
			>
		<?php else : ?>
			<p class="logo__text">
				<?php echo esc_html( $logo_header_alt_text ); ?>
			</p>
		<?php endif; ?>

		<?php if ( ! empty( $logo_header_link_url ) ) : ?>
			</a><!-- /.logo -->
		<?php else : ?>
			</div><!-- /.logo -->
		<?php endif; ?>
	<?php endif; ?>

</div><!-- /.branding -->
<div class="header--right-side" role="contentinfo">
	<?php if ( ! empty( $phone_number ) || class_exists( 'ET_Monarch' ) ) : ?>
		<div class="header--row header--top-row">
			<!--Phone Number-->
			<?php if ( ! empty( $phone_number ) ) : ?>
				<p class="site-info__phone-number">
					<?php echo wp_kses_post( $phone_number ); ?>
				</p>
			<?php endif; ?>
			<!--Social Icons-->
			<?php if ( class_exists( 'ET_Monarch' ) ) : ?>
				<span class="site-info__social-icons">
					<?php echo do_shortcode( '[et_social_follow icon_style="simple" icon_shape="rectangle" col_number="auto" spacing="true"]' ); ?>
				</span>
			<?php endif; ?>
		</div>
	<?php endif; ?>

	<div class="header--row">
		<!--Search-->
		<div class="header--search">
			<?php if ( has_nav_menu( 'nav-search' ) ) : ?>
				<nav class="nav nav--search">
					<?php wp_nav_menu( [ 'theme_location' => 'nav-search' ] ); ?>
				</nav><!-- /.nav -->
			<?php endif; ?>
			<?php echo get_search_form(); ?>
		</div>

		<?php if ( ! empty( $logo_search_enabled ) ) : ?>
			<!--Right logo-->
			<div class="header--right-logo">
				<?php if ( ! empty( $logo_search_image_url ) ) : ?>

					<?php if ( ! empty( $logo_search_link_url ) ) : ?>
						<a class="logo logo--search" href="<?php echo esc_url( $logo_search_link_url ); ?>">
					<?php else : ?>
						<div class="logo logo--search">
					<?php endif; ?>

					<img
{'fraction_non_alphanumeric': 0.19716555053729948, 'fraction_numerical': 0.0006229559258682448, 'mean_word_length': 3.810486891385768, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 135, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '313011', 'n_tokens_mistral': 2661, 'n_tokens_neox': 2375, 'n_words': 434}