Rev | Line | |
---|
[7072] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: Theme Switch |
---|
[16241] | 4 | Version: auto |
---|
| 5 | Description: Lets users change the theme of the gallery via menu on home page. The switch can show theme names or theme icons, depends on configuration. |
---|
[28852] | 6 | Plugin URI: auto |
---|
[16241] | 7 | Author: Pavel Budka & Mistic |
---|
[7072] | 8 | */ |
---|
| 9 | |
---|
[16241] | 10 | // in order to use select box instead of thumbnail view, add |
---|
| 11 | // $conf['theme_switch_mode'] = 'select'; |
---|
| 12 | // in your local configuration |
---|
[7072] | 13 | |
---|
[28852] | 14 | defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); |
---|
[7072] | 15 | |
---|
[21355] | 16 | if (mobile_theme()) |
---|
| 17 | { |
---|
| 18 | return; |
---|
| 19 | } |
---|
| 20 | |
---|
[16241] | 21 | define('THEME_SWITCH_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); |
---|
[7072] | 22 | |
---|
[16241] | 23 | include_once(THEME_SWITCH_PATH.'theme_switch.inc.php'); |
---|
[7072] | 24 | |
---|
[16241] | 25 | add_event_handler('user_init', 'theme_controler_switch'); |
---|
| 26 | add_event_handler('loc_end_index', 'theme_controler_init'); |
---|
Note: See
TracBrowser
for help on using the repository browser.