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.
2022-12-17 22:34:02 +01:00
|
|
|
<div class="card head-primary">
|
2022-12-17 19:46:29 +01:00
|
|
|
<div class="card-header"><i class="fa fa-folder" aria-hidden="true"></i> Catégories</div>
|
2022-12-17 22:34:02 +01:00
|
|
|
<div class="menu fg-dark">
|
|
|
|
<ul>
|
|
|
|
<?php
|
|
|
|
$categories = get_categories( array(
|
|
|
|
'orderby' => 'name',
|
|
|
|
'order' => 'ASC'
|
|
|
|
) );
|
2022-12-17 19:46:29 +01:00
|
|
|
|
2022-12-17 22:34:02 +01:00
|
|
|
foreach( $categories as $category ) {
|
|
|
|
if ($category->slug != "blog" && $category->slug != "chapters") {
|
|
|
|
echo '<li><a class="menu-element" href="' . get_category_link($category->term_id) . '">' . $category->name . '<span class="badge bg-secondary m0">'. $category->count . '</span></a></li>';
|
|
|
|
}
|
|
|
|
}?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2022-12-17 19:46:29 +01:00
|
|
|
</div>
|