mirror of
https://github.com/e107inc/e107.git
synced 2025-08-22 22:25:31 +02:00
Admin-UI: $adminMenu now has a 'badge' attribute. Send it an array and it will render a badge in the navigation. eg. array('value' => $count, 'type'=>'warning'). General code cleanup in 'admin' nav method.
This commit is contained in:
@@ -1506,6 +1506,7 @@ class e_admin_dispatcher
|
||||
case 'caption':
|
||||
$k2 = 'text';
|
||||
$v = defset($v, $v);
|
||||
|
||||
break;
|
||||
|
||||
case 'url':
|
||||
@@ -1525,6 +1526,12 @@ class e_admin_dispatcher
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case 'badge': // array('value'=> int, 'type'=>'warning');
|
||||
$k2 = 'badge';
|
||||
$v = (array) $v;
|
||||
break;
|
||||
|
||||
default:
|
||||
$k2 = $k;
|
||||
|
||||
|
Reference in New Issue
Block a user