'; print_r($config); echo ''; $themeconf = array( 'parent' => 'default', 'local_head' => 'local_head.tpl', 'icon_dir' => 'themes/blancmontxl/icon/'. $config['icon_dir'] ); add_event_handler('loc_begin_page_header', 'set_bmxl_header'); function set_bmxl_header() { global $page, $config, $template; if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage') { $header = isset($page['category']) ? $config['categories'] : $config['home']; } elseif (isset($page['body_id']) and $page['body_id'] == 'thePicturePage') { $header = $config['picture']; } else { $header = $config['other']; } $template->assign('display_bmxl_banner', $header); } ?>