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

Last change on this file since 31085 was 27554, checked in by plg, 11 years ago

compatibility with Piwigo 2.6

add template/menubar_menu.tpl to manage counters

File size: 1.2 KB
Line 
1<?php
2/*
3Theme Name: BlancMont XL
4Version: auto
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.