mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Infopanel can now be customized with any available menu item. Also, some additional serialize cleanup in plugin_class.php
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
/* $Id: plugin.php,v 1.1 2009-08-16 23:58:31 e107coders Exp $ */
|
||||
/* $Id: plugin.php,v 1.2 2009-09-03 01:27:27 e107coders Exp $ */
|
||||
|
||||
function plugin_shortcode($parm)
|
||||
{
|
||||
global $sql, $tp, $ns;
|
||||
|
||||
$menu = $parm;
|
||||
list($menu,$return) = explode("|",$parm);
|
||||
|
||||
$path = $tp -> toDB(dirname($menu));
|
||||
$name = $tp -> toDB(basename($menu));
|
||||
@@ -14,5 +14,5 @@ function plugin_shortcode($parm)
|
||||
{
|
||||
$path = $menu;
|
||||
}
|
||||
return e107::getMenu()->renderMenu($path,$name);
|
||||
return e107::getMenu()->renderMenu($path,$name,$mode,$return);
|
||||
}
|
||||
|
Reference in New Issue
Block a user