Ignore:
Timestamp:
Apr 1, 2010, 8:34:22 PM (14 years ago)
Author:
Gotcha
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/sobre/themeconf.inc.php

    r5543 r5544  
    1111
    1212$themeconf = array(
     13  'parent' => 'default',
    1314  'name'  => 'sobre',
    14   'parent' => 'default',
     15  'local_head'  => 'local_head.tpl',
    1516);
    1617
     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
    1742?>
Note: See TracChangeset for help on using the changeset viewer.