Add new hooks

This commit is contained in:
Garvin Hicking 2006-10-04 08:16:42 +00:00
parent 8acffb2eaa
commit a8562c5783
2 changed files with 11 additions and 1 deletions

View File

@ -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!

View File

@ -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>';