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

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

don't use short php tag

  • Property svn:eol-style set to LF
File size: 402 bytes
Line 
1<?php
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.