52dc0b9c5c
Fixes #30 Fixes #35 Fixes #36 Fixes #38 Fixes #40 Fixes #43 Fixes #44 Fixes #46 Fixes #47 Fixes #49 Fixes #51 Fixes #53
21 lines
571 B
PHP
21 lines
571 B
PHP
<?php
|
|
$listmenu = get_nav_menu_locations();
|
|
$menu = wp_get_nav_menu_items($listmenu['link-menu']);
|
|
if ($menu != null) {
|
|
?>
|
|
<section class="card head-primary">
|
|
<h2 class="card-header"><i class="fa fa-link" aria-hidden="true"></i> 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>
|
|
<?php
|
|
}
|
|
?>
|