mirror of
https://github.com/e107inc/e107.git
synced 2025-08-30 17:50:12 +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:
@@ -1268,6 +1268,7 @@ a.e-media-select
|
||||
ul#e-status { margin:0 }
|
||||
ul#e-status li { padding-bottom:6px; font-size: 0.9em }
|
||||
ul#e-status { line-height:20px }
|
||||
ul#admin-ui-nav-menu li a span.label,
|
||||
ul#e-status li a span.badge,
|
||||
ul#e-status li a span.label { float:right; font-size:85% }
|
||||
ul#e-status li a:hover { text-decoration: none; }
|
||||
|
@@ -289,13 +289,13 @@ $E_ADMIN_MENU['start'] = '
|
||||
|
||||
$E_ADMIN_MENU['button'] = '
|
||||
<li>
|
||||
<a class="link{LINK_CLASS}" href="{LINK_URL}"{ID}{ONCLICK}> {LINK_TEXT}</a>
|
||||
<a class="link{LINK_CLASS}" href="{LINK_URL}"{ID}{ONCLICK}> {LINK_TEXT}{LINK_BADGE}</a>
|
||||
{SUB_MENU}
|
||||
</li>
|
||||
';
|
||||
$E_ADMIN_MENU['button_active'] = '
|
||||
<li class="active">
|
||||
<a class="link-active{LINK_CLASS}" href="{LINK_URL}"{ID}{ONCLICK}> {LINK_TEXT}</a>
|
||||
<a class="link-active{LINK_CLASS}" href="{LINK_URL}"{ID}{ONCLICK}> {LINK_TEXT}{LINK_BADGE}</a>
|
||||
{SUB_MENU}
|
||||
</li>
|
||||
';
|
||||
@@ -306,13 +306,13 @@ $E_ADMIN_MENU['start_sub'] = '
|
||||
|
||||
$E_ADMIN_MENU['button_sub'] = '
|
||||
<li>
|
||||
<a class="link" href="{LINK_URL}"> {LINK_TEXT}</a>
|
||||
<a class="link" href="{LINK_URL}"> {LINK_TEXT}{LINK_BADGE}</a>
|
||||
{SUB_MENU}
|
||||
</li>
|
||||
';
|
||||
$E_ADMIN_MENU['button_active_sub'] = '
|
||||
<li>
|
||||
<a class="link-active" href="{LINK_URL}"> {LINK_TEXT}</a>
|
||||
<a class="link-active" href="{LINK_URL}"> {LINK_TEXT}{LINK_BADGE}</a>
|
||||
{SUB_MENU}
|
||||
</li>
|
||||
';
|
||||
|
Reference in New Issue
Block a user