aboutsummaryrefslogtreecommitdiffstats
path: root/themes/elegant/themeconf.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'themes/elegant/themeconf.inc.php')
-rw-r--r--themes/elegant/themeconf.inc.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/themes/elegant/themeconf.inc.php b/themes/elegant/themeconf.inc.php
index 1c0e1feb3..d5afc6f6e 100644
--- a/themes/elegant/themeconf.inc.php
+++ b/themes/elegant/themeconf.inc.php
@@ -1,9 +1,9 @@
<?php
/*
Theme Name: elegant
-Version: 2.5.0
+Version: 2.6.0
Description: Dark background, grayscale.
-Theme URI:
+Theme URI: http://piwigo.org/ext/extension_view.php?eid=685
Author: Piwigo team
Author URI: http://piwigo.org
*/
@@ -12,4 +12,16 @@ $themeconf = array(
'parent' => 'default',
'local_head' => 'local_head.tpl'
);
+// Need upgrade?
+global $conf;
+include(PHPWG_THEMES_PATH.'elegant/admin/upgrade.inc.php');
+
+add_event_handler('init', 'set_config_values_elegant');
+function set_config_values_elegant()
+{
+ global $conf, $template;
+ $config = unserialize( $conf['elegant'] );
+ $template->assign( 'elegant', $config );
+}
+
?>