Changeset 7013 for extensions
- Timestamp:
- Sep 24, 2010, 6:15:20 PM (14 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r7012 r7013 1 1 2 2 //==== remplace $(... avec jQuery( ==== 3 3 var ov_map; … … 8 8 new_element = jQuery(element); 9 9 jq = new_element.selector; 10 10 if (jQuery("#Panorama").length) { 11 12 return new_element; 13 } 11 14 afq = jQuery(document).data("initialized") ; //2 12 15 if (element == window && afq != 1) … … 33 36 }else if( MooTools.version == "1.11") { 34 37 B = element; 35 if (!B) {36 37 return jQuery();38 38 if (!B) { 39 if (typeof (B) == "boolean") return null; 40 return jQuery(); 41 } 39 42 if (B.htmlElement) { 40 43 return Garbage.collect(B); 41 44 42 45 } 43 if ([window, document].contains(B)) { 44 return B; 45 } 46 if ([window, document].contains(B)) { return B; } 46 47 var A = $type(B); 47 48 if (A == "string") { B = document.getElementById(B); A = (B) ? "element" : false; } … … 123 124 124 125 Type_Img = "pamoorama"; 126 } else if (jQuery("#Panorama").length) { 127 128 Type_Img = "panorama"; 129 return; 125 130 } else if (jQuery("#theImage").find("img").length > 0) { 126 131 Type_Img = "img"; … … 356 361 357 362 } else if (theme.match(RegExp("luciano", "g"))) { 358 jQuery("#theImage").height(Image_height 363 jQuery("#theImage").height(Image_height); 359 364 } 360 365 } catch (e) { -
extensions/Autosize/main.inc.php
r7012 r7013 23 23 global $infos_message,$erreur_message; 24 24 global $conf,$lang ,$user; 25 26 25 if ( $page['body_id']=='thePicturePage' ) { 27 26 if ( isset($picture['current'])){ … … 29 28 $autosize_parametres = cl_autosize_Get_Options(); 30 29 include (AUTOSIZE_PATH."include/affiche.php"); 31 30 32 31 $template->set_filenames( 33 32 array('autosize_content'=> $my_path.'template/autosize.tpl') … … 146 145 } 147 146 //======================================================================= 148 //add_event_handler('loc_end_page_header','cl_autosize_script',40 ); 149 function cl_autosize_script() 147 //add_event_handler('render_element_content', 'cl_autosize_script', 98, 2 ); 148 149 function cl_autosize_script($content, $image) 150 150 { 151 151 global $user, $picture, $template,$page; 152 global $content, $element_info; 152 153 global $element_info; 153 154 global $infos_message,$erreur_message; 154 155 global $conf,$lang ,$user; 155 156 156 157 $my_path = dirname(__FILE__).'/'; 157 158 159 158 $template->set_filenames( 160 array('autosize_cl_ content'=> $my_path.'template/cl_conflit.tpl')159 array('autosize_cl_init'=> $my_path.'template/cl_conflit.tpl') 161 160 ); 162 163 161 $template->assign( 164 162 array( … … 166 164 ) 167 165 ); 168 return $template->parse( 'autosize_cl_content', false);166 return $content; 169 167 170 168 }
Note: See TracChangeset
for help on using the changeset viewer.