Last change
on this file since 27178 was
10778,
checked in by repie38, 14 years ago
|
version 2.2b compatible 2.2 (based on montblancxl 2.2b)
|
File size:
1.2 KB
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Theme Name: BlancMont XL |
---|
4 | Version: 2.2.b |
---|
5 | Description: Fixed 860px width, graphical banner, horizontal drop down menu, MontBlancXL negative. |
---|
6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid=232 |
---|
7 | Author: repie38 |
---|
8 | Author URI: |
---|
9 | */ |
---|
10 | |
---|
11 | |
---|
12 | $conf['BlancmontXL'] = unserialize($conf['BlancmontXL']); |
---|
13 | |
---|
14 | $themeconf = array( |
---|
15 | 'parent' => 'default', |
---|
16 | 'local_head' => 'local_head.tpl', |
---|
17 | 'icon_dir' => 'themes/blancmontxl/icon/'. $conf['BlancmontXL']['icon_dir'] |
---|
18 | ); |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | add_event_handler('loc_begin_page_header', 'set_bmxl_header'); |
---|
23 | |
---|
24 | function set_bmxl_header() |
---|
25 | { |
---|
26 | global $page,$template,$conf; |
---|
27 | |
---|
28 | $template->append('head_elements','<link rel="stylesheet" type="text/css" href="themes/blancmontxl/icon/'. $conf['BlancmontXL']['icon_dir'] .'/iconset.css">'); |
---|
29 | |
---|
30 | |
---|
31 | |
---|
32 | if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage') |
---|
33 | { |
---|
34 | $header = isset($page['category']) ? $conf['BlancmontXL']['categories'] : $conf['BlancmontXL']['home']; |
---|
35 | } |
---|
36 | elseif (isset($page['body_id']) and $page['body_id'] == 'thePicturePage') |
---|
37 | { |
---|
38 | $header = $conf['BlancmontXL']['picture']; |
---|
39 | } |
---|
40 | else |
---|
41 | { |
---|
42 | $header = $conf['BlancmontXL']['other']; |
---|
43 | } |
---|
44 | $template->assign('display_bmxl_banner', $header); |
---|
45 | } |
---|
46 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.