Changeset 4482 for extensions/Juza/themeconf.inc.php
- Timestamp:
- Dec 13, 2009, 9:29:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Juza/themeconf.inc.php
r4474 r4482 1 1 <?php 2 /* 3 Plugin Name: Juza 4 Version: 2.0.1 5 Description: Juza is an advanced theme of Piwigo 6 Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=auto 7 Author: Piwigo team 8 Author URI: http://www.vdigital.org 9 */ 10 define('JUZA_VER', '2.0.1'); 11 define('JUZA_DIR' , basename(dirname(__FILE__))); 12 define('JUZA_PATH' , 'template/yoga/theme/' . JUZA_DIR . '/'); 2 13 $themeconf = array( 3 14 'template' => 'yoga', 4 'theme' => 'Juza',5 'icon_dir' => 'template/yoga/theme/Juza/icon',15 'theme' => JUZA_DIR, 16 'icon_dir' => JUZA_PATH . 'icon', 6 17 'admin_icon_dir' => 'template/yoga/icon/admin', 7 'mime_icon_dir' => 'template/yoga/theme/Juza/icon/mimetypes/', 8 'local_head' => ' 9 <!--[if IE]> 10 <link rel="stylesheet" href="template/yoga/theme/Juza/theme-ie.css" type="text/css"> 11 <![endif]--> 12 ', 13 'juza-handler' => create_function('$arg', 'global $template, $themeconf; 14 $template->set_filenames(array("juza"=>"theme/Juza/script.tpl")); 15 $template->parse("juza"); 16 return $arg;'), 18 'mime_icon_dir' => JUZA_PATH . 'icon/mimetypes/', 19 'local_head' => '', 17 20 ); 18 global $user ;21 global $user, $conf; 19 22 $user["expand"] = true; /* Forced to assign subcategory links inside each category on index page */ 20 add_event_handler('loc_after_page_header', $themeconf['juza-handler']); 23 if (!isset($conf['Juza_active'])) $conf['Juza_active'] = true; /* Missing = active */ 24 25 /* No handlers at all or Open ? */ 26 if ($conf['enable_plugins'] and $conf['Juza_active']) { 27 include_once(JUZA_PATH.'include/functions.inc.php'); 28 add_event_handler('loc_after_page_header', 'Juza_hook', 20); 29 if (isset($_GET['Juza_config'])) { 30 add_event_handler('loc_after_page_header', 'Juza_admin', 10); 31 } 32 } 21 33 ?>
Note: See TracChangeset
for help on using the changeset viewer.