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

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

removed unnecessary comments

File size: 941 bytes
RevLine 
[3686]1<?php
[6262]2/*
3Theme Name: BlancMont XL
[6286]4Version: 2.1.c
[6262]5Description: Night theme
6Theme URI: http://piwigo.org/ext/extension_view.php?eid=232
7Author: repie38
8Author URI:
9*/
10
[6366]11global $config;
[6367]12$config = unserialize($conf['BlancmontXL']);
[6366]13
[3686]14$themeconf = array(
[6262]15  'parent'      => 'default',
16  'local_head'  => 'local_head.tpl',
[6366]17  'icon_dir'    => 'themes/blancmontxl/icon/'. $config['icon_dir'] 
[3686]18);
19
[6262]20add_event_handler('loc_begin_page_header', 'set_bmxl_header');
21
22function set_bmxl_header()
23{
[6366]24  global $page, $config, $template;
[6262]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  $template->assign('display_bmxl_banner', $header);
39}
40?>
Note: See TracBrowser for help on using the repository browser.