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/sidebar/links.php

24 lines
532 B
PHP
Raw Permalink Normal View History

2021-01-24 14:52:23 +01:00
<?php
$listmenu = get_nav_menu_locations();
$menu = wp_get_nav_menu_items($listmenu['link-menu']);
if ($menu != null) {
?>
<section class="card head-primary">
2023-11-18 12:17:07 +01:00
<h2 class="card-header">
Liens
</h2>
<div class="menu fg-dark">
<ul>
<?php
$menu = wp_get_nav_menu_items( 'link-menu');
foreach ($menu as $menuElement) {
echo '<li><a href="' . $menuElement->url . '" class="menu-element">'. $menuElement->title . '</a></li>';
}
?>
</ul>
</div>
</section>
2021-01-24 14:52:23 +01:00
<?php
}
?>