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