Changeset 6915 for extensions/Autosize
- Timestamp:
- Sep 14, 2010, 5:54:11 PM (14 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/admin/template/admin.tpl
r6913 r6915 21 21 </script> 22 22 {known_script id="jquery" src="themes/default/js/jquery.packed.js"} 23 {known_script id="Affiche_script" src="plugins/autosize/js/Affiche_script.js"}23 {known_script id="Affiche_script" src=$AUTOSIZE_PATH|@cat:"js/Affiche_script.js"} 24 24 {/html_head} 25 25 -
extensions/Autosize/include/affiche.php
r6912 r6915 8 8 9 9 $user_status = $user['status'] ; 10 11 10 12 11 $template->assign( -
extensions/Autosize/js/Affiche_script.js
r6913 r6915 25 25 26 26 W0 = parseInt(img_width); 27 if (W0 < mini_width) return;27 if (W0 < parseInt(mini_width)) return; 28 28 29 29 H0 = parseInt(img_height); 30 if (H0 < mini_height) return;30 if (H0 < parseInt(mini_height)) return; 31 31 32 32 var rapport = (W0 / H0); 33 34 35 36 37 38 39 40 33 41 34 var Licence = jQuery("#theImage").find(".licencetag"); 42 35 if (Licence.length > 0) { … … 48 41 49 42 var winheight = jQuery(window).height(); 50 var Image_height = (winheight - sel0.top) - marge_basse- lmt;43 var Image_height = (winheight - sel0.top) - parseInt(marge_basse) - lmt; 51 44 var height_user = eval(user_status + "_height"); 52 45 var width_user = eval(user_status + "_width"); 53 46 //============================================================= 54 47 var reg1 = new RegExp("%", "g"); 55 48 if (height_user.match(reg1)) … … 57 50 else 58 51 Image_height = parseInt(height_user); 59 52 //============================================================= 60 53 61 54 var echelle = Image_height / H0; -
extensions/Autosize/language/fr_FR/lang.php
r6913 r6915 18 18 19 19 $lang['cl_autosize_echelle_max'] .= "Echelle maximum."; 20 $lang['cl_autosize_hlp_line4'] .= " Si le rapport d'agrandissement (photo réelle/photo affichée) est supérieure à cette valeur, le redimensionnement automatique sera bloqué à cette valeur.";20 $lang['cl_autosize_hlp_line4'] .= "Valeur maximale d'agrandissement(photo réelle/photo affichée) supportée sans dégradation visuelle."; 21 21 22 22 $lang['cl_autosize_marge_basse'] .= "Marge inférieure."; -
extensions/Autosize/main.inc.php
r6913 r6915 2 2 /* 3 3 Plugin Name: AutoSize 4 Version: 1.0 4 Version: 1.0.0 5 5 Description: Ajuste l'affichage des photos en fonction de la hauteur de la fenetre de navigation 6 6 Plugin URI:http://fr.piwigo.org/ext/extension_view.php?eid=448 … … 35 35 } 36 36 37 38 39 37 40 38 //===================================================================== -
extensions/Autosize/template/picture.tpl
r6912 r6915 7 7 var echelle_max='{ $ECHELLE_MAX }'; 8 8 var mini_width='{ $MINI_WIDTH }'; 9 var mini_height='{ $MINI_HEIGHT }'; 9 var mini_height = '{ $MINI_HEIGHT }'; 10 10 11 var webmaster_width='{$webmaster_width }'; 11 12 var webmaster_height='{ $webmaster_height }'; … … 18 19 var normal_width='{ $normal_width }'; 19 20 var normal_height='{ $normal_height }'; 20 var user_status='{ $user_status }' 21 var user_status='{ $user_status }'; 21 22 22 23 </script> 23 24 {known_script id="jquery" src="themes/default/js/jquery.packed.js"} 24 {known_script id="Affiche_script" src="plugins/autosize/js/Affiche_script.js"}25 {known_script id="Affiche_script" src=$AUTOSIZE_PATH|@cat:"js/Affiche_script.js"} 25 26 {/html_head} 26 27
Note: See TracChangeset
for help on using the changeset viewer.