# $Id$
+Version 1.3 ()
+------------------------------------------------------------------------
+
+ * Add option "template" to smarty function call {serendipity_
+ printSidebar} (garvinhicking)
+
Version 1.3-beta1 (February 19th)
------------------------------------------------------------------------
$smarty->trigger_error(__FUNCTION__ .": missing 'side' parameter");
return;
}
- return serendipity_plugin_api::generate_plugins($params['side']);
+
+ if (isset($params['template'])) {
+ return serendipity_plugin_api::generate_plugins($params['side'], '', false, null, null, $params['template']);
+ } else {
+ return serendipity_plugin_api::generate_plugins($params['side']);
+ }
}
/**
* @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;
$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);
}
/**
}
// The version string
-$serendipity['version'] = '1.3-beta1';
+$serendipity['version'] = '1.3-beta2';
// Setting this to 'false' will enable debugging output. All alpa/beta/cvs snapshot versions will emit debug information by default. To increase the debug level (to enable Smarty debugging), set this flag to 'debug'.
$serendipity['production'] = (preg_match('@\-(alpha|beta|cvs)@', $serendipity['version']) ? false : true);