This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
qdouze2-wordpress-theme/components/navbar-pages.php

40 lines
1.5 KiB
PHP
Raw Permalink Normal View History

2022-12-18 09:46:44 +01:00
<div class="osd">
2023-05-02 11:20:14 +02:00
<div class="container menu toolbar fg-light d-none d-flex-sm">
2023-05-02 11:31:38 +02:00
<nav class="d-flex">
<h2 class="sr-only">Menu des pages</h2>
<ul>
<li>
<a href="<?php echo site_url(); ?>" class="menu-item">
2023-11-20 13:04:09 +01:00
<svg class="icon icon-home" alt=""><use xlink:href="#icon-home"></use></svg><span class="sr-only">Accueil</span>
</a>
</li>
2023-05-03 11:27:05 +02:00
<li>
<a href="#" class="menu-item submenu">
2023-11-20 13:04:09 +01:00
Pages <svg class="icon icon-caret-down" alt=""><use xlink:href="#icon-caret-down"></use></svg>
2023-05-03 11:27:05 +02:00
</a>
2023-11-20 10:05:50 +01:00
<ul class="bg menu fg-dark">
2023-05-03 11:27:05 +02:00
<?php
$listmenu = get_nav_menu_locations();
$menu = wp_get_nav_menu_items($listmenu['top-navbar-2']);
foreach ($menu as $menuElement) {
echo '<li><a href="' . $menuElement->url . '" class="menu-item">'. $menuElement->title . '</a></li>';
}
?>
</ul>
</li>
<?php
$listmenu = get_nav_menu_locations();
$menu = wp_get_nav_menu_items($listmenu['top-navbar']);
foreach ($menu as $menuElement) {
echo '<li><a href="' . $menuElement->url . '" class="menu-item">'. $menuElement->title . '</a></li>';
}
?>
</ul>
</nav>
2022-12-17 19:46:29 +01:00
2022-12-18 16:41:18 +01:00
<ul class="f-end d-none d-flex-sm">
2022-12-18 16:10:12 +01:00
<li class="f-column f-center"><?php include(TEMPLATEPATH . '/components/searchform.php'); ?></li>
2022-12-18 09:46:44 +01:00
</ul>
</div>
2022-12-18 09:46:44 +01:00
</div>