<?php

?>

<section class="sitemap content-section">
	<div class="sitemap__inner">
		<h2 class="sitemap__title"><?php echo __('Plan du site', "carhop"); ?></h2>
		<ul class="sitemap__list">
			<li class="sitemap__item">
				<a href="<?php echo home_url(); ?>" class="sitemap__link"><?php echo __('Accueil', "carhop"); ?></a>
			</li>
		</ul>

		<?php switch_to_blog(1); ?>
		<h3 class="sitemap__title"><?php echo __('Menu Principal', "carhop"); ?></h2>
			<?php
			wp_nav_menu(
				array(
					'container'    => 'false',
					'theme_location'  => 'primary',
					'li_class'        => 'menu-navlink',
					'fallback_cb'     => false,
					"menu_class" => "sitemap__carhop-primary-menu",
				)
			); ?>
			<h3 class="sitemap__title"><?php echo __('Menu secondaire', "carhop"); ?></h2>

				<?php
				wp_nav_menu(
					array(
						'container'    => 'false',
						'theme_location'  => 'secondary',
						'li_class'        => 'menu-navlink',
						'fallback_cb'     => false,
						"menu_class" => "sitemap__dynamiques-secondary-menu",
					)
				); ?>

				<?php switch_to_blog(2); ?>
				<h3 class="sitemap__title"><?php echo __('Menu Principal', "carhop"); ?></h2>
					<?php
					wp_nav_menu(
						array(
							'container'    => 'false',
							'theme_location'  => 'primary',
							'li_class'        => 'menu-navlink',
							'fallback_cb'     => false,
							"menu_class" => "sitemap__dynamiques-primary-menu",
						)
					); ?>
					<h3 class="sitemap__title"><?php echo __('Menu secondaire', "carhop"); ?></h2>

						<?php
						wp_nav_menu(
							array(
								'container'    => 'false',
								'theme_location'  => 'secondary',
								'li_class'        => 'menu-navlink',
								'fallback_cb'     => false,
								"menu_class" => "sitemap__dynamiques-secondary-menu",
							)
						); ?>
						<?php restore_current_blog(); ?>
	</div>
</section>