Changeset 17308 for extensions/Autosize/include
- Timestamp:
- Aug 2, 2012, 3:12:47 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/include/affiche.php
r17192 r17308 18 18 if (isset($_COOKIE['picture_deriv'])) 19 19 { 20 if (isset($_COOKIE[' img_w']))21 $cookies = '"'.$_COOKIE[' img_w']." x ". $_COOKIE['img_h'] .'"';20 if (isset($_COOKIE['theImageWidth'])) 21 $cookies = '"'.$_COOKIE['theImageWidth']." x ". $_COOKIE['theImageHeight'] .'"'; 22 22 23 23 if ( array_key_exists($_COOKIE['picture_deriv'], ImageStdParams::get_defined_type_map()) ) … … 53 53 $src= $derivative->src_image ; 54 54 55 } 56 57 55 } 58 56 59 57 $img_width=isset($imgScaledWH)?$imgSizeWH[0]:"480"; … … 98 96 $options[$value] = $type_size; 99 97 } 100 //====================================================== 98 //=================== 99 $value=0; 100 $liste_type=""; 101 foreach ($img_all as $img_select){ 102 $imgSizeWH = $img_select->get_size(); 103 $img_type = $img_select->get_type(); 104 $img_url = $img_select->get_url(); 105 106 $liste_type .= $img_type.",".$img_url.",".$imgSizeWH[0] .",".$imgSizeWH[1]."|" ; 107 if(strtolower($img_type)=="original") break ; 108 109 110 } 111 112 //=================================== 101 113 102 114 $template->assign( … … 105 117 'cookies' => $cookies , 106 118 'deriv_type' =>$deriv_type , 119 'liste_type' => $liste_type , 107 120 'webmaster_type' => array( 108 121 'OPTIONS' => $options,
Note: See TracChangeset
for help on using the changeset viewer.