<?php
switch_to_blog(1);
$logoID = get_theme_mod('custom_logo');
$logoSRC = wp_get_attachment_image_src($logoID, 'full');
?>

<nav class="menu-mobile-brand" closed>
	<div class="website_logo">
		<?php if (has_custom_logo()) { ?>
			<a id="website-logo-link" href="<?php echo home_url() ?>" tabindex="0">
				<img src="<?php echo $logoSRC[0] ?>" alt="<?php echo __("Accueil Homegrade.brussels", "homegrade-theme__texte-fonctionnel") ?>">
			</a>
			<!-- <?php the_custom_logo(); ?> -->
		<?php } else { ?>
			<a href=" <?php echo get_bloginfo('url'); ?>" class="font-extrabold text-lg uppercase">
				<?php echo get_bloginfo('name'); ?>
			</a>
		<?php } ?>
	</div>
	<div class="menu-mobile-brand__interaction_toggles">
		<button id="search-module-toggle" class="menu-mobile-brand__search-module-toggle cta cta--circular cta--outline cta--outline-secondary !border border-secondary" aria-expanded="false">
			<img src="<?php echo get_template_directory_uri() . '/resources/img/graphic-assets/search-icon.svg' ?>" alt="<?php echo __("Recherche", "homegrade-theme__texte-fonctionnel") ?>">
		</button>
		<button id="mobile-menu-toggle" class="menu-mobile-brand__mobile-menu-toggle cta cta--outline cta--button" data-text-open="<?php echo __("Menu", 'homegrade-theme__texte-fonctionnel') ?>" data-text-close="<?php echo __("Fermer", 'homegrade-theme__texte-fonctionnel') ?>" aria-expanded="false">
			<span class="text-content">
				<?php echo __("Menu", 'homegrade-theme__texte-fonctionnel') ?>
			</span>
			<div class="toggle-icon">
				<div class="toggle-icon__bar toggle-icon__bar--top"></div>
				<div class="toggle-icon__bar toggle-icon__bar--middle"></div>
				<div class="toggle-icon__bar toggle-icon__bar--bottom"></div>
			</div>

		</button>
	</div>

	<?php
	// get_template_part('template-components/header/search-module');
	?>
</nav>


<?php
restore_current_blog();
?>