fix: utilisation de ul dans la sidebar
This commit is contained in:
parent
7dad950b1e
commit
b52fe0fc06
3 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
<div class="card card-primary">
|
||||
<div class="card-header"><i class="fa fa-folder"></i> Catégories</div>
|
||||
<div class="card-menu">
|
||||
<ul class="card-menu">
|
||||
<?php
|
||||
$categories = get_categories( array(
|
||||
'orderby' => 'name',
|
||||
|
@ -9,8 +9,8 @@
|
|||
|
||||
foreach( $categories as $category ) {
|
||||
if ($category->slug != "blog" && $category->slug != "chapters") {
|
||||
echo '<a class="menu-element" href="' . get_category_link($category->term_id) . '">' . $category->name . '<span class="menu-label label-secondary">'. $category->count . '</span></a>';
|
||||
echo '<li><a class="menu-element" href="' . get_category_link($category->term_id) . '">' . $category->name . '<span class="menu-label label-secondary">'. $category->count . '</span></a></li>';
|
||||
}
|
||||
}?>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="card card-primary">
|
||||
<div class="card-header"><i class="fa fa-rss"></i> Publications</div>
|
||||
<div class="card-menu trim-that">
|
||||
<ul class="card-menu trim-that">
|
||||
<?php
|
||||
wp_get_archives( array(
|
||||
'type' => 'postbypost',
|
||||
|
@ -9,5 +9,5 @@
|
|||
'limit' => 6
|
||||
) );
|
||||
?>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -5,14 +5,14 @@ if ($menu != null) {
|
|||
?>
|
||||
<div class="card card-primary">
|
||||
<div class="card-header"><i class="fa fa-link"></i> Liens</div>
|
||||
<div class="card-menu">
|
||||
<ul class="card-menu">
|
||||
<?php
|
||||
$menu = wp_get_nav_menu_items( 'link-menu');
|
||||
foreach ($menu as $menuElement) {
|
||||
echo '<a href="' . $menuElement->url . '" class="menu-element">'. $menuElement->title . '</a>';
|
||||
echo '<li><a href="' . $menuElement->url . '" class="menu-element">'. $menuElement->title . '</a></li>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
Reference in a new issue