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.
kspace-wordpress-theme/components/navbar-pages.php
Kazhnuz 52dc0b9c5c feat: rebuild du theme basé sur celui de qdouze
Fixes #30
Fixes #35
Fixes #36
Fixes #38
Fixes #40
Fixes #43
Fixes #44
Fixes #46
Fixes #47
Fixes #49
Fixes #51
Fixes #53
2023-05-20 10:02:10 +02:00

30 lines
1.1 KiB
PHP

<nav class="container menu toolbar flex-that fg-light">
<h2 class="sr-only">Menu des pages</h2>
<ul>
<li>
<a href="<?php echo site_url(); ?>" class="btn btn-navbar">
<i class="fa fa-home" aria-hidden="true"></i><span class="sr-only">Accueil</span>
</a>
</li>
<?php include(TEMPLATEPATH . '/components/navbar-category.php'); ?>
<?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="btn btn-navbar">'. $menuElement->title . '</a></li>';
}
?>
</ul>
<ul class="f-end">
<?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="btn btn-navbar">'. $menuElement->title . '</a></li>';
}
?>
<li><a href="<?php bloginfo('rss2_url'); ?>" class="btn btn-navbar"><i class="fa fa-rss" aria-hidden="true"></i><span class="sr-only">Flux RSS du site</span></a></li>
</ul>
</nav>