Last change
on this file since 6995 was
5710,
checked in by patdenice, 15 years ago
|
Update themeconf.inc.php
Remove mail-css.tpl
|
File size:
927 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Theme Name: Montblanc XL |
---|
4 | Version: 2.1.a |
---|
5 | Description: Nature theme |
---|
6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid=133 |
---|
7 | Author: P@t |
---|
8 | Author URI: http://www.gauchon.fr |
---|
9 | */ |
---|
10 | |
---|
11 | $themeconf = array( |
---|
12 | 'parent' => 'default', |
---|
13 | 'icon_dir' => 'themes/montblancxl/icon', |
---|
14 | 'local_head' => 'local_head.tpl', |
---|
15 | ); |
---|
16 | |
---|
17 | |
---|
18 | add_event_handler('loc_begin_page_header', 'set_mbxl_header'); |
---|
19 | |
---|
20 | function set_mbxl_header() |
---|
21 | { |
---|
22 | global $page, $conf, $template; |
---|
23 | |
---|
24 | $config = unserialize($conf['MontblancXL']); |
---|
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 | |
---|
39 | $template->assign('display_mbxl_banner', $header); |
---|
40 | } |
---|
41 | |
---|
42 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.