Changeset 7220
- Timestamp:
- Oct 16, 2010, 12:57:44 PM (14 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r7193 r7220 33 33 global $infos_message,$erreur_message; 34 34 global $conf,$lang ,$user,$userdata; 35 $image['width']="1200";36 $asp['image_name'] = $image['name'];37 $asp['width'] = $image['width'];38 $asp['height'] = $image['height'];39 40 35 41 36 load_language('lang', AUTOSIZE_PATH); -
extensions/Autosize/js/Affiche_script.js
r7193 r7220 131 131 }; 132 132 //=================================================================== 133 133 134 134 var old_h = 0; 135 135 var rapport = -1; … … 310 310 switch (Type_Img) { 311 311 case "map": 312 var info_image = jQuery("#map Picture").info();313 marge_left = info_image.width; 314 315 if (theme.match(RegExp("gally", "g"))) { 316 jQuery("#map").css("top", "30px");317 }318 jQuery("#map").css("left", info_image.width + "px"); 312 var info_image = jQuery("#map").info(); 313 314 var info_map = jQuery("#mapPicture").info(); 315 316 marge_left = info_map.width; 317 jQuery("#map").css("left", marge_left); 318 319 319 var TheImg = jQuery("#map").get(0); 320 320 info_image = jQuery("#map").info(); … … 572 572 573 573 if (theme.match(RegExp("gally", "g"))) { 574 Image_height -= "30";574 // Image_height -= "30"; 575 575 } 576 576 … … 729 729 jQuery("object").height(Image_height); 730 730 } else if (Type_Img == "panorama") { 731 732 731 733 732 // jQuery(TheImg).panorama2(img_finale.height, img_finale.width); 734 733 jQuery(TheImg).height(img_finale.height); … … 767 766 h_frame = jQuery("#pamoorama").width(); 768 767 if (old_w == jQuery(window).width() && old_h == jQuery(window).height()) { 769 770 771 768 769 if (info_pamoorama_outter.width == 0) 770 setTimeout("wait_Timer()", 100); 772 771 // jQuery(TheImg).css("zoom", zoom); 773 772 } … … 782 781 783 782 } else { 784 783 //===map ? === 785 784 jQuery(TheImg).height(img_finale.height); 786 785 jQuery(TheImg).width(img_finale.width); … … 819 818 820 819 } // function 821 ); // ready820 ); // ready 822 821 823 822 /* Extension -
extensions/Autosize/main.inc.php
r7193 r7220 2 2 /* 3 3 Plugin Name: AutoSize 4 Version: 1. 2.04 Version: 1.1.0 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 … … 12 12 if (!defined('AUTOSIZE_PATH')) 13 13 define( 'AUTOSIZE_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/' ); 14 15 14 include_once(AUTOSIZE_PATH.'autosize.inc.php'); 16 17 15 $autosize_controler = new autosize_controler(); 18 16 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), 95 ); 19 17 add_event_handler('get_admin_plugin_menu_links', array(&$autosize_controler,'cl_autosize_admin') ); 20 21 22 add_event_handler('load_profile_in_template', array(&$autosize_controler,'cl_autosize_script'),50 ); 23 24 25 18 add_event_handler('load_profile_in_template', array(&$autosize_controler,'cl_autosize_script'),50 ); 19 26 20 ?>
Note: See TracChangeset
for help on using the changeset viewer.