Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Theme Name: elegant |
---|
4 | Version: 2.6.1 |
---|
5 | Description: Dark background, grayscale. |
---|
6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid=685 |
---|
7 | Author: Piwigo team |
---|
8 | Author URI: http://piwigo.org |
---|
9 | */ |
---|
10 | $themeconf = array( |
---|
11 | 'name' => 'elegant', |
---|
12 | 'parent' => 'default', |
---|
13 | 'local_head' => 'local_head.tpl' |
---|
14 | ); |
---|
15 | // Need upgrade? |
---|
16 | global $conf; |
---|
17 | include(PHPWG_THEMES_PATH.'elegant/admin/upgrade.inc.php'); |
---|
18 | add_event_handler('loc_begin_picture', 'level_separator_elegant'); |
---|
19 | function level_separator_elegant() |
---|
20 | { |
---|
21 | global $template; |
---|
22 | $template->assign( 'LEVEL_SEPARATOR', '#&$' ); |
---|
23 | } |
---|
24 | add_event_handler('init', 'set_config_values_elegant'); |
---|
25 | function set_config_values_elegant() |
---|
26 | { |
---|
27 | global $conf, $template; |
---|
28 | $config = unserialize( $conf['elegant'] ); |
---|
29 | $template->assign( 'elegant', $config ); |
---|
30 | } |
---|
31 | |
---|
32 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.