Changeset 19156 for extensions
- Timestamp:
- Nov 24, 2012, 3:25:53 PM (12 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r19030 r19156 62 62 unset ( $_COOKIE['autosize_reload']) ; 63 63 } 64 64 if(preg_match("|test|", $DEBUG_autosize, $val)) { 65 $infos_message .= "#65 autosize_calcContent: <br>"; 66 if ( isset($_COOKIE['pwg_id']) ) unset ($_COOKIE['pwg_id']) ; 67 $infos_message .= "SESSION:" . cl_print_var($_SESSION) ; 68 $infos_message .= "COOKIE:" . cl_print_var($_COOKIE) ; 69 $infos_message .= "GET:" . cl_print_var($_GET) ; 70 $infos_message .= "POST:" . cl_print_var($_POST) ; 71 $infos_message .= "$pictureDeriv $pictureSelType $pictureMap "; 72 // die("#138: ".$DEBUG_autosize); 73 } 65 74 if(!isset($_COOKIE['picture_deriv'] )){ 75 if(preg_match("|test_1|", $DEBUG_autosize, $val)) { 76 $infos_message .= "not COOKIE['picture_deriv'] -> reload(): <br>"; 77 echo $infos_message; 78 die("#78 autosize_calcContent:" . $DEBUG_autosize); 79 } 66 80 self::reload(); 67 die("#76 autosize_calcContent:" .$DEBUG_autosize);68 } 81 die("#80 autosize_calcContent:" + $DEBUG_autosize); 82 } 69 83 70 84 71 85 if (!isset($_COOKIE['autosize_reload']) ){ 86 if(preg_match("|test_2|", $DEBUG_autosize, $val)) { 87 $infos_message .= "not COOKIE['autosize_reload'] -> reload(): <br>"; 88 echo $infos_message; 89 die("#89 autosize_calcContent:" . $DEBUG_autosize); 90 } 72 91 self::reload(); 73 92 die("#82 autosize_calcContent:" + $DEBUG_autosize); … … 131 150 //============================================================== 132 151 if(preg_match("|test|", $DEBUG_autosize, $val)) { 133 echo "Init:SESSION:" . cl_print_var($_SESSION) ;152 $infos_message .= "#133 <br>Init:SESSION:" . cl_print_var($_SESSION) ; 134 153 if ( isset($_COOKIE['pwg_id']) ) unset ($_COOKIE['pwg_id']) ; 135 echo "Init: COOKIE:" . cl_print_var($_COOKIE) ; 136 echo "GET:" . cl_print_var($_GET) ; 137 echo "POST:" . cl_print_var($_POST) ; 138 echo "$pictureDeriv $pictureSelType $pictureMap "; 139 // die("#135: ".$DEBUG_autosize); 154 $infos_message .= "GET:" . cl_print_var($_GET) ; 155 $infos_message .= "POST:" . cl_print_var($_POST) ; 156 $infos_message .= "$pictureDeriv $pictureSelType $pictureMap "; 157 // die("#138: ".$DEBUG_autosize); 140 158 } 141 159 $autosize_parametres = cl_autosize_Get_Options(); … … 185 203 186 204 if(preg_match("|test|", $DEBUG_autosize, $val)) { 187 echo "Init:SESSION:" . cl_print_var($_SESSION) ;188 echo $infos_message ;205 $infos_message .= "#187 <br>Init:SESSION:" . cl_print_var($_SESSION) ; 206 189 207 if ( isset($_COOKIE['pwg_id']) ) unset ($_COOKIE['pwg_id']) ; 190 echo"Init: COOKIE:" . cl_print_var($_COOKIE) ;191 echo"GET:" . cl_print_var($_GET) ;192 echo "POST:" . cl_print_var($_POST) ;193 echo ("#201: ".$DEBUG_autosize);208 $infos_message .= "Init: COOKIE:" . cl_print_var($_COOKIE) ; 209 $infos_message .= "GET:" . cl_print_var($_GET) ; 210 $infos_message .= "POST:" . cl_print_var($_POST) ; 211 $infos_message .=("#193: ".$DEBUG_autosize); 194 212 } 195 213 $pattern = array(); … … 649 667 650 668 } 651 cl_aff_infos_plus();669 652 670 if(preg_match("|test|", $DEBUG_autosize, $val)) { 653 echo "cl_autosize_affiche:_COOKIE:" . cl_print_var($_COOKIE) ; 654 echo $infos_message ; 671 $infos_message .= "#653 <br>cl_autosize_affiche:_COOKIE:" . cl_print_var($_COOKIE) ; 655 672 $pictureMap=$_COOKIE['picture_map']; 656 echo "SelType:" . $pictureSelType." pictureDeriv:".$pictureDeriv ." pictureMap:".$pictureMap; 657 die ("#710: ".$DEBUG_autosize); 658 } 673 $infos_message .= "<br />SelType:" . $pictureSelType."; pictureDeriv:".$pictureDeriv ."; pictureMap:".$pictureMap; 674 echo $infos_message; 675 die ("#657: ".$DEBUG_autosize); 676 } 677 cl_aff_infos_plus(); 659 678 return $template->parse( 'autosize_content', false); 660 679 } //public function cl_autosize_affiche -
extensions/Autosize/js/Affiche_script.js
r19031 r19156 368 368 369 369 infos_theImage = jQuery(theImage_id).infos(true); // conteneur 370 371 370 if (options.pictureSelType != "Autosize" && options.pictureSelType != "SelMaxi") { 371 jQuery('#derivativeSwitchLink').show(); 372 } 372 373 if (test_theme("simple")) { 373 374 jQuery(theMainImage_id).css({ maxWidth: "none" }); … … 893 894 ***************************/ 894 895 Autosize_resize = function (force, parametres) { 896 895 897 nAuto = Get_dimensions(true, options); 896 898 897 899 Save_cookies(options); 898 900 if (!options.valide || nAuto == false || (options.pictureSelType != "Autosize" && options.pictureSelType != "SelMaxi")) { 901 if (options.imageAutosize == true) { 902 options.pictureSelType = options.pictureDeriv; 903 Zone_image.image_init.width = jQuery(theImg).width(); 904 Zone_image.image_init.height = jQuery(theImg).height(); 905 set_cl("no"); 906 Set_llbgo(true); 907 return; 908 } 899 909 jQuery(theImg).width(Zone_image.image_init.width); 900 910 jQuery(theImg).height(Zone_image.image_init.height); … … 2263 2273 2264 2274 2265 }); // ready2275 }); // ready 2266 2276 2267 2277 -
extensions/Autosize/main.inc.php
r19003 r19156 2 2 /* 3 3 Plugin Name: AutoSize 4 Version: 3.0. 14 Version: 3.0.2 5 5 Description: Ajuste l'affichage des photos en fonction de la hauteur de la fenetre de navigation 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=448 -
extensions/Autosize/maintain.inc.php
r18936 r19156 81 81 unset ( $conf['cl_derivatives_sav']); 82 82 } 83 $model= $conf['derivative_default_size']; 83 84 if($conf['derivative_default_size']=="Autosize" || $conf['derivative_default_size']=="SelMaxi") 85 $conf['derivative_default_size']="medium"; 86 $model= $conf['derivative_default_size']; 87 84 88 $_COOKIE ['picture_deriv'] = $model; 85 89 pwg_set_session_var('picture_deriv', $model);
Note: See TracChangeset
for help on using the changeset viewer.