source:
extensions/Mobile_Theme_for_Tablets/include/functions.inc.php
@
19778
Last change on this file since 19778 was 19778, checked in by , 11 years ago | |
---|---|
|
|
File size: 281 bytes |
Line | |
---|---|
1 | <? |
2 | function mtt_activate_mobile_theme() { |
3 | $array = array('mobile', 'tablet'); //A remplacer par un $conf |
4 | |
5 | if (in_array(pwg_get_session_var('device'), $array)) { |
6 | pwg_set_session_var('mobile_theme', true); |
7 | } else { |
8 | pwg_set_session_var('mobile_theme', false); |
9 | } |
10 | } |
11 | ?> |
Note: See TracBrowser
for help on using the repository browser.