1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-27 09:50:49 +02:00
Files
php-e107/e107_files/shortcode/plugin.php

19 lines
365 B
PHP

<?php
/* $Id: plugin.php,v 1.2 2009-09-03 01:27:27 e107coders Exp $ */
function plugin_shortcode($parm)
{
global $sql, $tp, $ns;
list($menu,$return) = explode("|",$parm);
$path = $tp -> toDB(dirname($menu));
$name = $tp -> toDB(basename($menu));
if($path == '.')
{
$path = $menu;
}
return e107::getMenu()->renderMenu($path,$name,$mode,$return);
}