From b4cac600761d9f54a2af389dc394be061fad292c Mon Sep 17 00:00:00 2001 From: flop25 Date: Sun, 16 Jun 2013 14:22:35 +0000 Subject: 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 --- themes/elegant/themeconf.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'themes/elegant/themeconf.inc.php') 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 ); +} + ?> -- cgit v1.2.3