Changeset 6262 for extensions/blancmontxl/themeconf.inc.php
- Timestamp:
- May 21, 2010, 3:51:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/blancmontxl/themeconf.inc.php
r3686 r6262 1 1 <?php 2 /* 3 Theme Name: BlancMont XL 4 Version: 2.1.a 5 Description: Night theme 6 Theme URI: http://piwigo.org/ext/extension_view.php?eid=232 7 Author: repie38 8 Author URI: 9 */ 10 2 11 $themeconf = array( 3 'template' => 'yoga', 4 'template_dir' => 'template/yoga', 5 'theme' => 'blancmontxl', 6 'icon_dir' => PHPWG_ROOT_PATH.'template/yoga/theme/blancmontxl/icon', 7 'mime_icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon/mimetypes/', 8 'local_head' => '<!--[if lt IE 7]> 9 <link rel="stylesheet" type="text/css" href="'.PHPWG_ROOT_PATH.'template/yoga/theme/blancmontxl/fix-ie5-ie6.css"> 10 <![endif]-->' 12 'parent' => 'default', 13 'icon_dir' => 'themes/blancmontxl/icon', 14 'local_head' => 'local_head.tpl', 11 15 ); 12 $lang['Theme: blancmontxl'] = 'Thème BlancMontXP By repié38.'; 16 17 18 add_event_handler('loc_begin_page_header', 'set_bmxl_header'); 19 20 function set_bmxl_header() 21 { 22 global $page, $conf, $template; 23 24 $config = unserialize($conf['BlancmontXL']); 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_bmxl_banner', $header); 40 } 13 41 14 42 ?>
Note: See TracChangeset
for help on using the changeset viewer.