mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
More menu_class.php work. menu parms added.
This commit is contained in:
18
e107_files/shortcode/plugin.php
Normal file
18
e107_files/shortcode/plugin.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/* $Id: plugin.php,v 1.1 2009-08-16 23:58:31 e107coders Exp $ */
|
||||
|
||||
function plugin_shortcode($parm)
|
||||
{
|
||||
global $sql, $tp, $ns;
|
||||
|
||||
$menu = $parm;
|
||||
|
||||
$path = $tp -> toDB(dirname($menu));
|
||||
$name = $tp -> toDB(basename($menu));
|
||||
|
||||
if($path == '.')
|
||||
{
|
||||
$path = $menu;
|
||||
}
|
||||
return e107::getMenu()->renderMenu($path,$name);
|
||||
}
|
Reference in New Issue
Block a user