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

Last change on this file since 7690 was 6374, checked in by repie38, 14 years ago

change var name for better compliance (thanks to P@t)

File size: 1000 bytes
Line 
1<?php
2/*
3Theme Name: BlancMont XL
4Version: 2.1.d
5Description: Night theme
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
20add_event_handler('loc_begin_page_header', 'set_bmxl_header');
21
22function set_bmxl_header()
23{
24  global $page,$template,$conf;
25
26  if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage')
27  {
28    $header = isset($page['category']) ? $conf['BlancmontXL']['categories'] : $conf['BlancmontXL']['home'];
29  }
30  elseif (isset($page['body_id']) and $page['body_id'] == 'thePicturePage')
31  {
32    $header = $conf['BlancmontXL']['picture'];
33  }
34  else
35  {
36    $header = $conf['BlancmontXL']['other'];
37  }
38  $template->assign('display_bmxl_banner', $header);
39}
40?>
Note: See TracBrowser for help on using the repository browser.