aboutsummaryrefslogtreecommitdiffstats
path: root/themes/elegant/themeconf.inc.php
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2013-06-16 14:22:35 +0000
committerflop25 <flop25@piwigo.org>2013-06-16 14:22:35 +0000
commitb4cac600761d9f54a2af389dc394be061fad292c (patch)
tree5b6c1d71e80588dc82c03aa6393c84f9f11e9bc3 /themes/elegant/themeconf.inc.php
parentc86481cbbef6d221d0bcd1d69e9434fd19dc2b22 (diff)
feature:2924
adding 3 options for the default behaviour of the panels ToDo lang files git-svn-id: http://piwigo.org/svn/trunk@23251 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--themes/elegant/themeconf.inc.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/themes/elegant/themeconf.inc.php b/themes/elegant/themeconf.inc.php
index 55681f290..99f4f0ac8 100644
--- a/themes/elegant/themeconf.inc.php
+++ b/themes/elegant/themeconf.inc.php
@@ -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 );
+}
+
?>