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:
@@ -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
|
||||
|
@@ -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',
|
||||
|
Reference in New Issue
Block a user