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

11 lines
465 B
PHP
Raw Normal View History

2020-12-30 19:42:46 +01:00
<div class="navbar-area">
<?php
2021-01-24 14:52:23 +01:00
$listmenu = get_nav_menu_locations();
$menu = wp_get_nav_menu_items($listmenu['top-navbar']);
foreach ($menu as $menuElement) {
echo '<a href="' . $menuElement->url . '" class="btn btn-navbar">'. $menuElement->title . '</a>';
2021-01-03 09:10:54 +01:00
}
2021-01-24 14:52:23 +01:00
?>
<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>
2020-12-30 19:42:46 +01:00
</div>