Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Theme Switch |
---|
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. |
---|
6 | Plugin URI: auto |
---|
7 | Author: Pavel Budka & Mistic |
---|
8 | */ |
---|
9 | |
---|
10 | // in order to use select box instead of thumbnail view, add |
---|
11 | // $conf['theme_switch_mode'] = 'select'; |
---|
12 | // in your local configuration |
---|
13 | |
---|
14 | defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); |
---|
15 | |
---|
16 | if (mobile_theme()) |
---|
17 | { |
---|
18 | return; |
---|
19 | } |
---|
20 | |
---|
21 | define('THEME_SWITCH_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); |
---|
22 | |
---|
23 | include_once(THEME_SWITCH_PATH.'theme_switch.inc.php'); |
---|
24 | |
---|
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.