source: extensions/theme_switch/trunk/main.inc.php

Last change on this file was 28852, checked in by mistic100, 10 years ago

update header

File size: 736 bytes
Line 
1<?php
2/*
3Plugin Name: Theme Switch
4Version: auto
5Description: 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.
6Plugin URI: auto
7Author: 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
14defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
15
16if (mobile_theme())
17{
18  return;
19}
20
21define('THEME_SWITCH_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
22
23include_once(THEME_SWITCH_PATH.'theme_switch.inc.php');
24
25add_event_handler('user_init', 'theme_controler_switch');
26add_event_handler('loc_end_index', 'theme_controler_init');
Note: See TracBrowser for help on using the repository browser.