From 6d6a735bc18c002cdecb0577cb1ca2807a74ab8d Mon Sep 17 00:00:00 2001 From: danpros Date: Mon, 29 Apr 2024 08:17:41 +0700 Subject: [PATCH] Update functions.php Bootstrap menu class for auto generated menu --- system/includes/functions.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 22e8040..aa76d08 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -2757,9 +2757,9 @@ function get_menu($custom = null, $auto = null) foreach ($posts as $index => $v) { if ($i == $len - 1) { - $class = 'item last'; + $class = 'item nav-item last'; } else { - $class = 'item'; + $class = 'item nav-item'; } $i++; @@ -2788,13 +2788,13 @@ function get_menu($custom = null, $auto = null) $subPages = get_static_subpages($filename); if (!empty($subPages)) { asort($subPages); - $menu .= '
  • '; $menu .= '' . ucwords($title) . ''; } $menu .= '
  • ';