link-list = add file
This commit is contained in:
parent
29f038ab3f
commit
3f81882bcd
7 changed files with 41 additions and 19 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<header class="main-header">
|
||||
<a href="/" title="Aller à l'accueil">
|
||||
<nav class="main-nav">
|
||||
<nav class="main-nav" aria-label="main-menu">
|
||||
<h1 class="logo">
|
||||
<span>
|
||||
Nouveau
|
||||
|
|
@ -17,7 +17,9 @@
|
|||
<ul class="main-nav__featured-pages">
|
||||
<?php foreach($site->featuredPages()->toPages() as $navItem): ?>
|
||||
<li>
|
||||
<a href="<?= $navItem->url() ?>"><?= $navItem->title() ?></a>
|
||||
<a <?= e($page->url() == $navItem->url(), 'aria-current="page" ') ?>href="<?= $navItem->url() ?>">
|
||||
<?= $navItem->title() ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
|
|
@ -26,14 +28,16 @@
|
|||
<?= svg('/assets/images/icons/search.svg') ?>
|
||||
<span class="sr-only">Rechercher une page</span>
|
||||
</a>
|
||||
<button class="burger-btn" aria-expanded="false" title="Ouvrir le menu">
|
||||
<button class="burger-btn" title="Ouvrir le menu" aria-controls="expanded-nav">
|
||||
<span class="sr-only">Ouvrir le menu</span>
|
||||
<span class="burger-btn__line"></span>
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<nav class="expanded-nav">
|
||||
|
||||
<!--========== EXPANDED NAV ==========-->
|
||||
<nav id="expanded-nav">
|
||||
<a class="expanded-nav__logo-link" href="/" title="Aller à l'accueil">
|
||||
<h1 class="logo">
|
||||
<span>
|
||||
|
|
@ -52,11 +56,17 @@
|
|||
<li x-data="{
|
||||
open: false
|
||||
}">
|
||||
<h4 class="expanded-nav__category"><a href="<?= $category->url() ?>"><?= $category->title() ?></a><button class="toggle" :class="open ? 'open': ''" @click="open = !open">→</button></h4>
|
||||
<h4 class="expanded-nav__category">
|
||||
<a <?= e($page->url() == $navItem->url(), 'aria-current="page" ') ?>href="<?= $category->url() ?>"><?= $category->title() ?></a>
|
||||
<button class="toggle" :class="open ? 'open': ''" @click="open = !open">→</button>
|
||||
</h4>
|
||||
|
||||
<ul class="expanded-nav__subcategories" :class="open ? 'open': ''">
|
||||
<?php foreach($category->children() as $subcategory): ?>
|
||||
<?php if ($subcategory->isIndexed() == 'true'): ?>
|
||||
<li><a class="expanded-nav__subcategory" href="<?= $category->url() . '/#' . $subcategory->slug() ?>"><?= $subcategory->title() ?></a></li>
|
||||
<li>
|
||||
<a class="expanded-nav__subcategory" href="<?= $category->url() . '/#' . $subcategory->slug() ?>"><?= $subcategory->title() ?></a>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
<?php if ($category->template() == 'program'): ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue