mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 05:02:02 +02:00
Support added for dividers in admin-menu
This commit is contained in:
parent
d0dec8fd27
commit
e5d25b4635
@ -57,11 +57,13 @@ class page_admin extends e_admin_dispatcher
|
||||
|
||||
protected $adminMenu = array(
|
||||
'page/list' => array('caption'=> CUSLAN_48, 'perm' => '5'),
|
||||
'menu/list' => array('caption'=> CUSLAN_49, 'perm' => 'J', 'tab' => 2),
|
||||
'page/create' => array('caption'=> CUSLAN_12, 'perm' => '5'),
|
||||
'other' => array('divider'=> true),
|
||||
'cat/list' => array('caption'=> "List Books/Chapters", 'perm' => '5'), // Create Category.
|
||||
'cat/create' => array('caption'=> "Add Book/Chapter", 'perm' => '5'), // Category List
|
||||
'divider' => true,
|
||||
'menu/list' => array('caption'=> CUSLAN_49, 'perm' => 'J', 'tab' => 2),
|
||||
'other2' => array('divider'=> true),
|
||||
|
||||
// 'menu/create' => array('caption'=> CUSLAN_31, 'perm' => 'J', 'tab' => 2),
|
||||
'page/prefs' => array('caption'=> LAN_OPTIONS, 'perm' => '0')
|
||||
);
|
||||
@ -72,7 +74,7 @@ class page_admin extends e_admin_dispatcher
|
||||
'menu/edit' => 'menu/create'
|
||||
);
|
||||
|
||||
protected $menuTitle = 'Custom Pages';
|
||||
protected $menuTitle = ADLAN_42;
|
||||
}
|
||||
|
||||
class page_admin_form_ui extends e_admin_form_ui
|
||||
|
@ -1072,7 +1072,8 @@ class e_navigation
|
||||
|
||||
if (isset($e107_vars[$act]['divider']))
|
||||
{
|
||||
$text .= "<li class='divider'></li>"; //TODO add to Template.
|
||||
// $text .= "<li class='divider'></li>";
|
||||
$text .= $tmpl['divider'];
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -380,6 +380,9 @@ $E_ADMIN_MENU['end'] = '
|
||||
</ul>
|
||||
';
|
||||
|
||||
$E_ADMIN_MENU['divider'] = '<li class="divider"></li>';
|
||||
|
||||
|
||||
/* NEW ADMIN SLIDE DOWN MENU TEMPLATE
|
||||
* see function admin_navigation() in e107_files/shortcodes/admin_navigation.php
|
||||
* TODO move it together with menu.css/menu.js to the theme templates/e107_files folder (default menu render)
|
||||
|
Loading…
x
Reference in New Issue
Block a user