Last change
on this file since 6366 was
6366,
checked in by repie38, 15 years ago
|
nicer code for icon dir option, and add of montblancxl icon set
|
File size:
989 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Theme Name: BlancMont XL |
---|
4 | Version: 2.1.c |
---|
5 | Description: Night theme |
---|
6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid=232 |
---|
7 | Author: repie38 |
---|
8 | Author URI: |
---|
9 | */ |
---|
10 | |
---|
11 | global $config; |
---|
12 | $config = unserialize($conf['BlancmontXL']);//echo '<pre>'; print_r($config); echo '</pre>'; |
---|
13 | |
---|
14 | $themeconf = array( |
---|
15 | 'parent' => 'default', |
---|
16 | 'local_head' => 'local_head.tpl', |
---|
17 | 'icon_dir' => 'themes/blancmontxl/icon/'. $config['icon_dir'] |
---|
18 | ); |
---|
19 | |
---|
20 | add_event_handler('loc_begin_page_header', 'set_bmxl_header'); |
---|
21 | |
---|
22 | function set_bmxl_header() |
---|
23 | { |
---|
24 | global $page, $config, $template; |
---|
25 | |
---|
26 | if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage') |
---|
27 | { |
---|
28 | $header = isset($page['category']) ? $config['categories'] : $config['home']; |
---|
29 | } |
---|
30 | elseif (isset($page['body_id']) and $page['body_id'] == 'thePicturePage') |
---|
31 | { |
---|
32 | $header = $config['picture']; |
---|
33 | } |
---|
34 | else |
---|
35 | { |
---|
36 | $header = $config['other']; |
---|
37 | } |
---|
38 | $template->assign('display_bmxl_banner', $header); |
---|
39 | } |
---|
40 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.