Changeset 7093 for extensions/theme_switch/trunk/main.inc.php
- Timestamp:
- Oct 4, 2010, 8:58:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/theme_switch/trunk/main.inc.php
r7072 r7093 4 4 // | Theme switch plugin | 5 5 // +-----------------------------------------------------------------------+ 6 // | Copyright(C) 20 08 Pavel Budka http://pbudka.co.cc|6 // | Copyright(C) 2010 Pavel Budka http://budkovi.ic.cz | 7 7 // +-----------------------------------------------------------------------+ 8 8 // | This program is free software; you can redistribute it and/or modify | … … 23 23 /* 24 24 Plugin Name: Theme Switch 25 Version: 2. 0.a26 Description: Switch to another template/theme from flags on your gallery home page. Edit file main.inc.php for configuration. Based on Language switch25 Version: 2.1. 26 Description: Lets logged or unlogged user change appearance of gallery (via switching to different theme) on gallery home page. Based on Language switch. The switch can show theme names or theme icons, depends on configuration. See details in a file main.inc.php. 27 27 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=257 28 28 Author: Pavel Budka 29 Author URI: http:// pbudka.co.cc29 Author URI: http://budkovi.ic.cz 30 30 */ 31 31 … … 35 35 36 36 // If you want user to choose from icons then use following handler. 37 // Only themes which have gif icon provided in icons plugin directory will be provided to users. 38 // Gif file name must be the same as theme's name and must be stored in sub directory named according to template's name. 37 // Only themes which have screenshot.png icon provided will be provided to users. 39 38 40 add_event_handler('loc_end_index', array(&$theme_controler, '_flags'), 95 );39 // add_event_handler('loc_end_index', array(&$theme_controler, '_flags'), 95 ); 41 40 42 41 // If you want user to choose using select control then use following handler. 43 42 // All available themes will be provided to users. 44 43 45 // add_event_handler('loc_end_index', array(&$theme_controler, '_select'), 95 ); 44 add_event_handler('loc_end_index', array(&$theme_controler, '_select'), 95 ); 45 46 // this is preparation for future version with configuration 47 // add_event_handler('get_admin_plugin_menu_links', array(&$theme_controler,'_theme_admin')); 46 48 47 49 ?>
Note: See TracChangeset
for help on using the changeset viewer.