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

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

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

File size: 1000 bytes
RevLine 
[3686]1<?php
[6262]2/*
3Theme Name: BlancMont XL
[6374]4Version: 2.1.d
[6262]5Description: Night theme
6Theme URI: http://piwigo.org/ext/extension_view.php?eid=232
7Author: repie38
8Author URI:
9*/
10
[6366]11
[6374]12$conf['BlancmontXL'] = unserialize($conf['BlancmontXL']);
13
[3686]14$themeconf = array(
[6262]15  'parent'      => 'default',
16  'local_head'  => 'local_head.tpl',
[6374]17  'icon_dir'    => 'themes/blancmontxl/icon/'. $conf['BlancmontXL']['icon_dir'] 
[3686]18);
19
[6262]20add_event_handler('loc_begin_page_header', 'set_bmxl_header');
21
22function set_bmxl_header()
23{
[6374]24  global $page,$template,$conf;
[6262]25
26  if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage')
27  {
[6374]28    $header = isset($page['category']) ? $conf['BlancmontXL']['categories'] : $conf['BlancmontXL']['home'];
[6262]29  }
30  elseif (isset($page['body_id']) and $page['body_id'] == 'thePicturePage')
31  {
[6374]32    $header = $conf['BlancmontXL']['picture'];
[6262]33  }
34  else
35  {
[6374]36    $header = $conf['BlancmontXL']['other'];
[6262]37  }
38  $template->assign('display_bmxl_banner', $header);
39}
40?>
Note: See TracBrowser for help on using the repository browser.