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

Last change on this file since 20256 was 20256, checked in by julien1311, 11 years ago

[mobile_theme_for_tablets] small changes

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