source: extensions/sobre/themeconf.inc.php @ 5549

Last change on this file since 5549 was 5544, checked in by Gotcha, 14 years ago

Add a admin panel (thanks to P@tounet)
bug:1563

File size: 835 bytes
Line 
1<?php
2
3/*
4Theme Name: Sobre
5Version: 0.1a
6Description: Black and white theme, based on Yoga/dark.
7Theme URI:
8Author: Gotcha
9Author URI: http://www.julien-moreau.fr
10*/
11
12$themeconf = array(
13  'parent' => 'default',
14  'name'  => 'sobre',
15  'local_head'  => 'local_head.tpl',
16);
17
18add_event_handler('loc_begin_page_header', 'set_sbre_header');
19
20function set_sbre_header()
21{
22  global $page, $conf, $template;
23
24  $config = unserialize($conf['Sobre']);
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
39  $template->assign('display_sbre_banner', $header);
40}
41
42?>
Note: See TracBrowser for help on using the repository browser.