Changeset 21781
- Timestamp:
- Mar 22, 2013, 10:25:01 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/themes/smartpocket/themeconf.inc.php
r17022 r21781 30 30 31 31 // Get better derive parameters for screen size 32 $type = IMG_LARGE; 32 33 if (!empty($_COOKIE['screen_size'])) 33 34 { … … 35 36 $derivative_params = new ImageStdParams; 36 37 $derivative_params->load_from_db(); 37 $type = IMG_LARGE;38 38 39 39 foreach ($derivative_params->get_all_type_map() as $type => $map) … … 42 42 break; 43 43 } 44 pwg_set_session_var('sp_picture_deriv', $type);45 44 } 46 45 47 $this->assign('picture_derivative_params', ImageStdParams::get_by_type( pwg_get_session_var('sp_picture_deriv', IMG_LARGE)));46 $this->assign('picture_derivative_params', ImageStdParams::get_by_type($type)); 48 47 $this->assign('thumbnail_derivative_params', ImageStdParams::get_by_type(IMG_SQUARE)); 49 48
Note: See TracChangeset
for help on using the changeset viewer.