Changeset 23716 for trunk/themes/smartpocket/themeconf.inc.php
- Timestamp:
- Jun 30, 2013, 10:10:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/smartpocket/themeconf.inc.php
r23713 r23716 57 57 $this->assign('thumbnail_derivative_params', ImageStdParams::get_by_type(IMG_SQUARE)); 58 58 59 //------------------------------------------------------------- mobile version 60 add_event_handler('init', 'mobile_link'); 61 62 function mobile_link() 63 { 64 global $template, $conf; 65 if ( !empty($conf['mobile_theme']) && (get_device() != 'desktop' || mobile_theme())) 66 { 67 $template->assign('TOGGLE_MOBILE_THEME_URL', 68 add_url_params( 69 duplicate_index_url(), 70 array('mobile' => mobile_theme() ? 'false' : 'true') 71 ) 72 ); 73 } 74 } 59 75 60 76
Note: See TracChangeset
for help on using the changeset viewer.