| | 24 | } |
| | 25 | // thx to P@t |
| | 26 | add_event_handler('loc_begin_page_header', 'set_hr_glass_xl_header'); |
| | 27 | |
| | 28 | function set_hr_glass_xl_header() |
| | 29 | { |
| | 30 | global $page, $conf, $template; |
| | 31 | |
| | 32 | $config = unserialize($conf['hr_glass_xl']); |
| | 33 | |
| | 34 | if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage') |
| | 35 | { |
| | 36 | $header = isset($page['category']) ? $config['categories'] : $config['home']; |
| | 37 | } |
| | 38 | elseif (isset($page['body_id']) and $page['body_id'] == 'thePicturePage') |
| | 39 | { |
| | 40 | $header = $config['picture']; |
| | 41 | } |
| | 42 | else |
| | 43 | { |
| | 44 | $header = $config['other']; |
| | 45 | } |
| | 46 | |
| | 47 | $template->assign('display_hr_glass_xl_banner', $header); |