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

Last change on this file since 19526 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
RevLine 
[3686]1<?php
[6262]2/*
3Theme Name: BlancMont XL
[10778]4Version: 2.2.b
5Description: Fixed 860px width, graphical banner, horizontal drop down menu, MontBlancXL negative.
[6262]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
[10778]20
21
[6262]22add_event_handler('loc_begin_page_header', 'set_bmxl_header');
23
24function set_bmxl_header()
25{
[6374]26  global $page,$template,$conf;
[6262]27
[10778]28  $template->append('head_elements','<link rel="stylesheet" type="text/css" href="themes/blancmontxl/icon/'. $conf['BlancmontXL']['icon_dir'] .'/iconset.css">');
29 
30 
31 
[6262]32  if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage')
33  {
[6374]34    $header = isset($page['category']) ? $conf['BlancmontXL']['categories'] : $conf['BlancmontXL']['home'];
[6262]35  }
36  elseif (isset($page['body_id']) and $page['body_id'] == 'thePicturePage')
37  {
[6374]38    $header = $conf['BlancmontXL']['picture'];
[6262]39  }
40  else
41  {
[6374]42    $header = $conf['BlancmontXL']['other'];
[6262]43  }
44  $template->assign('display_bmxl_banner', $header);
45}
46?>
Note: See TracBrowser for help on using the repository browser.