Changeset 6552 for extensions/nbc_ThemeChanger/main.inc.php
- Timestamp:
- Jun 17, 2010, 11:00:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/nbc_ThemeChanger/main.inc.php
r3893 r6552 2 2 /* 3 3 Plugin Name: NBC ThemeChanger 4 Version: 2. 0.1.b5 Description: Permet d imposer un theme à une categorie (merci a P@t).4 Version: 2.1.0.a 5 Description: Permet d'associer à chaque catégorie virtuel ou physique un thème spécifique. 6 6 ThemeChanger vous permet de spécifier pour chaque catégorie un thème différent. 7 7 Pour les catégories non spécifiées, le thème par défaut s'applique. 8 ThemeChanger allow you to specify for each category a differenttheme.8 ThemeChanger allow you to associate for each category a specific theme. 9 9 For the unspecified categories, the theme by default is applied. 10 10 ThemeChanger permette di precisare per ogni categoria un tema diverso. 11 11 Per le categorie non precisato, il tema da difetto è applicato. 12 12 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=214 13 Author: Nicco 14 Author URI: http://gallery-nicco.no-ip.org 15 Author Portage piwigo 2.0.X : Datajulien 16 Author Portage piwigo 2.0.X URI : http://morgane.quoirez.com 13 Author: Datajulien 14 Author URI: http://morgane.quoirez.com 17 15 */ 18 16 … … 54 52 $element_ThemeChanger = explode("," , $Theme_Cat); 55 53 56 if ($element_ThemeChanger[0] <> '' and $element_ThemeChanger[1] <> '' and $element_ThemeChanger[2] <> '')57 $category_theme[$element_ThemeChanger[0]] = array( $element_ThemeChanger[1] , $element_ThemeChanger[2] );54 if ($element_ThemeChanger[0] <> '' and $element_ThemeChanger[1] <> '') 55 $category_theme[$element_ThemeChanger[0]] = $element_ThemeChanger[1]; 58 56 } 59 57 60 58 if (isset($page['category']['id']) and isset($category_theme[$page['category']['id']])) 61 59 { 62 $user['template'] = $category_theme[$page['category']['id']][0]; 63 $user['theme'] = $category_theme[$page['category']['id']][1]; 64 65 $template->Template(PHPWG_ROOT_PATH.'template/'.$user['template'], $user['theme']); 60 $user['theme'] = $category_theme[$page['category']['id']]; 61 $template = new Template(PHPWG_ROOT_PATH.'themes', $user['theme'] ); 66 62 } 67 63 }
Note: See TracChangeset
for help on using the changeset viewer.