source: extensions/Mobile_Theme_for_Tablets/main.inc.php @ 32685

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/*
3Plugin Name: Mobile Theme for Tablets
4Version: auto
5Description: Allow to apply the mobile theme by default for tablets
6Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=666
7Author: Julien1311
8Has Settings: webmaster
9*/
10
11//Check whether we are indeed included by Piwigo.
12if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
13
14global $conf;
15
16define('MTT_DIR' , basename(dirname(__FILE__)));
17define('MTT_PATH' , PHPWG_PLUGINS_PATH.MTT_DIR.'/');
18define('MTT_ADMIN',   get_root_url() . 'admin.php?page=plugin-'.MTT_DIR);
19
20/* +-----------------------------------------------------------------------+
21 * | Plugin code                                                           |
22 * +-----------------------------------------------------------------------+ */
23include_once(MTT_PATH.'include/functions.inc.php');
24add_event_handler('loading_lang', 'mtt_activate_mobile_theme');
25?>
Note: See TracBrowser for help on using the repository browser.