Changeset 10825 for extensions/hr_os_xl/themeconf.inc.php
- Timestamp:
- May 9, 2011, 5:05:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/hr_os_xl/themeconf.inc.php
r9670 r10825 24 24 } 25 25 26 // thx to P@t 27 add_event_handler('loc_begin_page_header', 'set_hr_os_xl_header'); 28 29 function set_hr_os_xl_header() 30 { 31 global $page, $conf, $template; 32 33 $config = unserialize($conf['hr_os_xl']); 34 35 if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage') 36 { 37 $header = isset($page['category']) ? $config['categories'] : $config['home']; 38 } 39 elseif (isset($page['body_id']) and $page['body_id'] == 'thePicturePage') 40 { 41 $header = $config['picture']; 42 } 43 else 44 { 45 $header = $config['other']; 46 } 47 48 $template->assign('display_hr_os_xl_banner', $header); 49 } 26 50 // thx to Vdigital and his plugin spreadmenus 27 51 if ( !function_exists( 'add_menu_on_public_pages' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.