source: extensions/blancmontxl/themeconf.inc.php @ 14974

Revision 10778, 1.2 KB checked in by repie38, 9 years ago (diff)

version 2.2b compatible 2.2 (based on montblancxl 2.2b)

Line 
1<?php
2/*
3Theme Name: BlancMont XL
4Version: 2.2.b
5Description: Fixed 860px width, graphical banner, horizontal drop down menu, MontBlancXL negative.
6Theme URI: http://piwigo.org/ext/extension_view.php?eid=232
7Author: repie38
8Author 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
22add_event_handler('loc_begin_page_header', 'set_bmxl_header');
23
24function 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.