From 365781adbc086ba07ba9518193cb9e12b9225bd0 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 12 Mar 2023 16:15:46 +0100 Subject: [PATCH] feat: mutli-categories --- components/navbar-category.php | 48 ++++++++++++++++++++----------- components/navbar-pages.php | 19 +----------- components/sidebar/categories.php | 42 ++++++++++++++++++--------- 3 files changed, 60 insertions(+), 49 deletions(-) diff --git a/components/navbar-category.php b/components/navbar-category.php index 1db58bb..4424907 100644 --- a/components/navbar-category.php +++ b/components/navbar-category.php @@ -1,19 +1,33 @@ - + + + + diff --git a/components/navbar-pages.php b/components/navbar-pages.php index 82fbe8c..4952206 100644 --- a/components/navbar-pages.php +++ b/components/navbar-pages.php @@ -5,24 +5,7 @@ Accueil -
  • - - Catégories -
      - 'name', - 'order' => 'ASC' - ) ); - - foreach( $categories as $category ) { - if ($category->slug != "blog" && $category->slug != "chapters") { - echo '
    • ' . $category->name . '
    • '; - } - }?> -
    -
    -
  • + -
    Catégories
    - + +