source: extensions/Mobile_Theme_for_Tablets/include/functions.inc.php @ 19815

Last change on this file since 19815 was 19815, checked in by julien1311, 12 years ago

first working version

  • Property svn:eol-style set to LF
File size: 362 bytes
Line 
1<?
2function mtt_activate_mobile_theme() {
3        global $conf;
4
5        $conf_mtt = unserialize($conf['mobile_theme_for_tablets']);
6       
7        if (isset($conf_mtt['devices'][pwg_get_session_var('device')]) && $conf_mtt['devices'][pwg_get_session_var('device')] == '1') {
8                        pwg_set_session_var('mobile_theme', true);
9                } else {
10                        pwg_set_session_var('mobile_theme', false);
11                }
12}
13?>
Note: See TracBrowser for help on using the repository browser.