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

20 lines
554 B
PHP
Raw Normal View History

2022-12-17 19:46:29 +01:00
<?php
$listmenu = get_nav_menu_locations();
$menu = wp_get_nav_menu_items($listmenu['link-menu']);
if ($menu != null) {
?>
2023-11-20 10:05:50 +01:00
<section class="card c-secondary">
2023-11-20 13:04:09 +01:00
<h2 class="card-header"><svg class="icon" alt=""><use xlink:href="#icon-link"></use></svg> Liens</h2>
2022-12-17 19:46:29 +01:00
<ul class="card-menu">
<?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>
</section>
2022-12-17 19:46:29 +01:00
<?php
}
?>