1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

More Menu-Manager Enhancements. - easier to find those menu-config pages now.

This commit is contained in:
CaMer0n
2009-07-12 10:11:35 +00:00
parent 8fa5d97fde
commit 28f2146f1e
6 changed files with 153 additions and 38 deletions

View File

@@ -1,7 +1,7 @@
<?php
/*
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
* $Id: admin_shortcodes.php,v 1.2 2009-01-10 11:42:19 secretr Exp $
* $Id: admin_shortcodes.php,v 1.3 2009-07-12 10:11:35 e107coders Exp $
*
* Admin shortcode batch - registration
*/
@@ -30,6 +30,7 @@ $codes = array(
'admin_status',
'admin_update',
'admin_userlan',
'admin_menumanager',
);
register_shortcode('admin_shortcodes', $codes, e_FILE.'shortcode/batch/admin_shortcodes_class.php');

View File

@@ -1,7 +1,7 @@
<?php
/*
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
* $Id: admin_shortcodes_class.php,v 1.7 2009-07-09 08:31:37 e107coders Exp $
* $Id: admin_shortcodes_class.php,v 1.8 2009-07-12 10:11:35 e107coders Exp $
*
* Admin shortcode batch - class
*/
@@ -436,9 +436,11 @@ class admin_shortcodes
if (ADMIN)
{
global $ns, $pref;
ob_start();
//Show upper_right menu if the function exists
$tmp = explode('.',e_PAGE);
$adminmenu_func = $tmp[0].'_adminmenu';
if(function_exists($adminmenu_func))
{
@@ -923,7 +925,7 @@ class admin_shortcodes
{
/*
* e107 website system (c) 2001-2008 Steve Dunstan (e107.org)
* $Id: admin_shortcodes_class.php,v 1.7 2009-07-09 08:31:37 e107coders Exp $
* $Id: admin_shortcodes_class.php,v 1.8 2009-07-12 10:11:35 e107coders Exp $
*/
if (ADMIN)
@@ -1281,6 +1283,40 @@ class admin_shortcodes
return e_admin_menu('', '', $menu_vars, $$tmpl, false, false);
}
function get_admin_menumanager() // List all menu-configs for easy-navigation
{
global $pref;
$var['menumanager']['text'] = ADLAN_151; // Main
$var['menumanager']['link'] = e_ADMIN_ABS."menus.php";
foreach($pref['menuconfig_list'] as $name=>$val)
{
$var[$name]['text'] = str_replace(":"," / ",$val['name']);
$var[$name]['link'] = e_PLUGIN_ABS.$val['link'];
}
foreach($var as $key=>$link)
{
if(strpos(e_SELF,$link['link']))
{
$action = $key;
}
}
if(!$action)
{
return;
}
// $keys = array_keys($var);
// $action = (in_array($this->action,$keys)) ? $this->action : "installed";
e_admin_menu(ADLAN_6, $action, $var);
}
}