Add new hooks
This commit is contained in:
parent
8acffb2eaa
commit
a8562c5783
@ -3,9 +3,15 @@
|
||||
Version 1.1-beta4 ()
|
||||
------------------------------------------------------------------------
|
||||
|
||||
* Added new plugin hooks:
|
||||
backend_templates_configuration_top
|
||||
backend_templates_configuration_bottom
|
||||
backend_templates_configuration_none
|
||||
for the theme configuration (garvinhicking)
|
||||
|
||||
* Allow to set $serendipity['CacheControl'] to make serendipity emit
|
||||
Cache-Control: HTTP headers. Thanks to annonymous from the forums!
|
||||
|
||||
|
||||
* Use seperate PHP session ID when using HTTPS login. Set 'secure'
|
||||
cookie parameters when using HTTPS. Thanks to lynoure!
|
||||
|
||||
|
@ -67,6 +67,8 @@ if (file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] .
|
||||
}
|
||||
|
||||
if (is_array($template_config)) {
|
||||
serendipity_plugin_api::hook_event('backend_templates_configuration_top', $template_config);
|
||||
|
||||
if ($serendipity['POST']['adminAction'] == 'configure') {
|
||||
foreach($serendipity['POST']['template'] AS $option => $value) {
|
||||
template_option::set_config($option, $value);
|
||||
@ -98,8 +100,10 @@ if (is_array($template_config)) {
|
||||
'template'
|
||||
);
|
||||
echo '</form><br />';
|
||||
serendipity_plugin_api::hook_event('backend_templates_configuration_bottom', $template_config);
|
||||
} else {
|
||||
echo '<p>' . STYLE_OPTIONS_NONE . '</p>';
|
||||
serendipity_plugin_api::hook_event('backend_templates_configuration_none', $template_config);
|
||||
}
|
||||
|
||||
echo '<h3>' . SELECT_TEMPLATE . '</h3>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user