1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-24 08:22:07 +02:00

Issue #5473 Added has-badge class to parent menu items.

This commit is contained in:
camer0n
2025-04-21 07:26:27 -07:00
parent edaeaa3170
commit f7b47e6f7e
2 changed files with 15 additions and 0 deletions

View File

@@ -1676,6 +1676,11 @@ class e_admin_dispatcher
$var[$parentKey]['sub'][$subKey] = $processedItem;
}
if(!empty($processedItem['badge']) && strpos($processedItem['badge']['link_class'], 'has-badge') === false)
{
$var[$parentKey]['link_class'] .= ' has-badge';
}
}
else
{
@@ -1827,6 +1832,7 @@ class e_admin_dispatcher
return $var;
}
/**
* @param $val
* @param $key

View File

@@ -181,6 +181,15 @@ class e_themeTest extends \Codeception\Test\Unit
'description' => 'A high-contrast dark skin',
'thumbnail' => 'images/admin_modern-dark.webp',
),
'css/modern-dark-2.css' => [
'name' => 'css/modern-dark-2.css',
'info' => 'Modern Dark 2',
'nonadmin' => false,
'default' => false,
'exclude' => 'bootstrap',
'description' => 'A high-contrast dark skin with dynamic sidebar',
'thumbnail' => 'images/admin_modern-dark-2.webp',
],
'css/bootstrap-dark.min.css' =>
array(
'name' => 'css/bootstrap-dark.min.css',