Last change
on this file since 32685 was
32685,
checked in by plg, 2 years ago
|
compatibility with Piwigo 12
|
-
Property svn:eol-style set to
LF
|
File size:
894 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Mobile Theme for Tablets |
---|
4 | Version: auto |
---|
5 | Description: Allow to apply the mobile theme by default for tablets |
---|
6 | Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=666 |
---|
7 | Author: Julien1311 |
---|
8 | Has Settings: webmaster |
---|
9 | */ |
---|
10 | |
---|
11 | //Check whether we are indeed included by Piwigo. |
---|
12 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
13 | |
---|
14 | global $conf; |
---|
15 | |
---|
16 | define('MTT_DIR' , basename(dirname(__FILE__))); |
---|
17 | define('MTT_PATH' , PHPWG_PLUGINS_PATH.MTT_DIR.'/'); |
---|
18 | define('MTT_ADMIN', get_root_url() . 'admin.php?page=plugin-'.MTT_DIR); |
---|
19 | |
---|
20 | /* +-----------------------------------------------------------------------+ |
---|
21 | * | Plugin code | |
---|
22 | * +-----------------------------------------------------------------------+ */ |
---|
23 | include_once(MTT_PATH.'include/functions.inc.php'); |
---|
24 | add_event_handler('loading_lang', 'mtt_activate_mobile_theme'); |
---|
25 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.