Last change
on this file since 26055 was
20256,
checked in by julien1311, 12 years ago
|
[mobile_theme_for_tablets] small changes
|
-
Property svn:eol-style set to
LF
|
File size:
399 bytes
|
Rev | Line | |
---|
[19778] | 1 | <? |
---|
[20256] | 2 | /** |
---|
| 3 | * activate the mobile theme |
---|
| 4 | */ |
---|
[19815] | 5 | function mtt_activate_mobile_theme() { |
---|
| 6 | global $conf; |
---|
[19778] | 7 | |
---|
[19815] | 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 | } |
---|
[19778] | 16 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.