- Timestamp:
- Jan 5, 2013, 12:11:07 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Mobile_Theme_for_Tablets/include/functions.inc.php
r19778 r19815 1 1 <? 2 3 $array = array('mobile', 'tablet'); //A remplacer par un $conf2 function mtt_activate_mobile_theme() { 3 global $conf; 4 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 } 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 } 11 13 ?>
Note: See TracChangeset
for help on using the changeset viewer.