1
0

Add 'template' option

This commit is contained in:
Garvin Hicking
2008-02-21 09:42:50 +00:00
parent 056402151e
commit 9182557da7
4 changed files with 15 additions and 4 deletions

View File

@ -804,7 +804,7 @@ class serendipity_plugin_api
* @param string Only show a plugin with this instance ID
* @return string Smarty HTML output
*/
function generate_plugins($side, $tag = '', $negate = false, $class = null, $id = null)
function generate_plugins($side, $tag = '', $negate = false, $class = null, $id = null, $tpl = 'sidebar.tpl')
{
global $serendipity;
@ -861,7 +861,7 @@ class serendipity_plugin_api
$serendipity['smarty']->assign_by_ref('plugindata', $pluginData);
$serendipity['smarty']->assign('pluginside', ucfirst($side));
return serendipity_smarty_fetch('sidebar_'. $side, 'sidebar.tpl', true);
return serendipity_smarty_fetch('sidebar_'. $side, $tpl, true);
}
/**