Allow to pass 'template' variable to serendipity_showPlugin
This commit is contained in:
parent
320276fcbc
commit
afc4c997d3
@ -3,6 +3,8 @@
|
|||||||
Version 1.6 ()
|
Version 1.6 ()
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* Allow to pass 'template' variable to serendipity_showPlugin
|
||||||
|
|
||||||
* Make CSS permalink pattern compatible to 1&1 servers,
|
* Make CSS permalink pattern compatible to 1&1 servers,
|
||||||
thanks to lfrantzen
|
thanks to lfrantzen
|
||||||
|
|
||||||
|
@ -465,8 +465,11 @@ function serendipity_smarty_showPlugin($params, &$smarty) {
|
|||||||
if (!isset($params['negate'])) {
|
if (!isset($params['negate'])) {
|
||||||
$params['negate'] = null;
|
$params['negate'] = null;
|
||||||
}
|
}
|
||||||
|
if (empty($params['template'])) {
|
||||||
|
$params['template'] = 'sidebar.tpl';
|
||||||
|
}
|
||||||
|
|
||||||
return serendipity_plugin_api::generate_plugins($params['side'], null, $params['negate'], $params['class'], $params['id']);
|
return serendipity_plugin_api::generate_plugins($params['side'], null, $params['negate'], $params['class'], $params['id'], $params['template']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user