1
0
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:
Cameron
2019-06-26 13:48:53 -07:00
parent 2e33eec996
commit 5944983b6c
4 changed files with 46 additions and 30 deletions

View File

@@ -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;