2009-08-16 23:58:33 +00:00
|
|
|
<?php
|
2009-12-18 20:49:56 +00:00
|
|
|
/* $Id: plugin.php,v 1.3 2009-12-18 20:49:54 e107steved Exp $ */
|
2009-08-16 23:58:33 +00:00
|
|
|
|
2009-12-18 20:49:56 +00:00
|
|
|
function plugin_shortcode($parm = '')
|
2009-08-16 23:58:33 +00:00
|
|
|
{
|
2009-12-18 20:49:56 +00:00
|
|
|
$tp = e107::getParser();
|
2009-08-16 23:58:33 +00:00
|
|
|
|
2009-12-18 20:49:56 +00:00
|
|
|
list($menu,$return) = explode('|',$parm.'|');
|
2009-08-16 23:58:33 +00:00
|
|
|
|
|
|
|
$path = $tp -> toDB(dirname($menu));
|
|
|
|
$name = $tp -> toDB(basename($menu));
|
|
|
|
|
|
|
|
if($path == '.')
|
|
|
|
{
|
|
|
|
$path = $menu;
|
|
|
|
}
|
2009-12-18 20:49:56 +00:00
|
|
|
/**
|
|
|
|
* @todo: $mode not defined
|
|
|
|
*/
|
2009-09-03 01:27:27 +00:00
|
|
|
return e107::getMenu()->renderMenu($path,$name,$mode,$return);
|
2009-08-16 23:58:33 +00:00
|
|
|
}
|