diff --git a/docs/NEWS b/docs/NEWS
index cf41f795..031b02ee 100644
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -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!
diff --git a/include/admin/templates.inc.php b/include/admin/templates.inc.php
index 8e35deae..80141a83 100644
--- a/include/admin/templates.inc.php
+++ b/include/admin/templates.inc.php
@@ -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 '
';
+ serendipity_plugin_api::hook_event('backend_templates_configuration_bottom', $template_config);
} else {
echo '
' . STYLE_OPTIONS_NONE . '
'; + serendipity_plugin_api::hook_event('backend_templates_configuration_none', $template_config); } echo '