mirror of
https://github.com/e107inc/e107.git
synced 2025-01-19 05:28:10 +01:00
22 lines
415 B
PHP
22 lines
415 B
PHP
<?php
|
|
/* $Id: plugin.php,v 1.3 2009-12-18 20:49:54 e107steved Exp $ */
|
|
|
|
function plugin_shortcode($parm = '')
|
|
{
|
|
$tp = e107::getParser();
|
|
|
|
list($menu,$return) = explode('|',$parm.'|');
|
|
|
|
$path = $tp -> toDB(dirname($menu));
|
|
$name = $tp -> toDB(basename($menu));
|
|
|
|
if($path == '.')
|
|
{
|
|
$path = $menu;
|
|
}
|
|
/**
|
|
* @todo: $mode not defined
|
|
*/
|
|
return e107::getMenu()->renderMenu($path,$name,$mode,$return);
|
|
}
|