Changeset 5544 for extensions/sobre/themeconf.inc.php
- Timestamp:
- Apr 1, 2010, 8:34:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/sobre/themeconf.inc.php
r5543 r5544 11 11 12 12 $themeconf = array( 13 'parent' => 'default', 13 14 'name' => 'sobre', 14 ' parent' => 'default',15 'local_head' => 'local_head.tpl', 15 16 ); 16 17 18 add_event_handler('loc_begin_page_header', 'set_sbre_header'); 19 20 function 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 17 42 ?>
Note: See TracChangeset
for help on using the changeset viewer.