Changeset 8070 for extensions/Autosize
- Timestamp:
- Dec 10, 2010, 12:02:59 PM (13 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r8057 r8070 40 40 load_language('lang', AUTOSIZE_PATH); 41 41 $my_path = dirname(__FILE__).'/'; 42 43 44 45 if (isset( $page['body_id']) && $page['body_id']=='thePicturePage' ) { 46 if ( isset($picture['current'])){ 47 48 42 49 43 if (isset( $page['body_id']) && $page['body_id']=='thePicturePage' ) { 44 if ( isset($picture['current'])){ 50 45 51 $autosize_parametres = cl_autosize_Get_Options(); 46 52 include (AUTOSIZE_PATH."include/affiche.php"); … … 66 72 67 73 return $template->parse( 'autosize_content', false); 68 69 } 74 } 70 75 } 76 71 77 } //public function cl_autosize_affiche 72 78 /* … … 137 143 /* cl_autosize_script_3 */ 138 144 var DEBUG=\"".$DEBUG."\" ; 139 if (fade_in !=0) jQuery('#theImage').css({opacity:'0.0'}); 145 if (fade_in !=0) jQuery('#theImage').css({opacity:'0.0'}); 146 if (fade_in !=0) jQuery('#theImage').css({opacity:'1.0'}); 147 140 148 </script>"; 141 149 142 $template->append('footer_elements',"\n".$autocss);143 150 // $template->append('footer_elements',"\n".$autocss); 151 144 152 if ( !empty($content) ) { return $content; } 145 153 if ($ThePicture['is_picture'] <> 1 ) { -
extensions/Autosize/js/Affiche_script.js
r8057 r8070 4 4 // jQuery est chargé 5 5 } 6 7 //http: //maps.gstatic.com/cat_js/intl/fr_ALL/mapfiles/api-3/3/3a/{common,map,util,marker}.js 6 8 7 9 function Toggle_bp() { … … 59 61 fade_in = parseInt(fade_in); 60 62 if (fade_in == 0) { 63 if (msie) 64 jQuery(Parent).css({opacity:"1",filter: "alpha(opacity=100)"}); 65 else 61 66 jQuery(Parent).css("opacity","1"); 62 67 } else { … … 82 87 function (jQuery) { 83 88 jQuery(window).load(function () { 84 89 if (fade_in != 0) { 90 if (msie) 91 jQuery("#theImage").css({ opacity: "0" }); 92 else 93 jQuery("#theImage").css({ opacity: "0" }); 94 } 85 95 //======= cl_conflit ====== 86 96 img_top = "0"; … … 576 586 img_finale.width = Image_width; 577 587 if (theme.match(RegExp("stripped", "gi"))) { 578 img_finale.width 579 img_finale.height = img_finale.width /rapport;588 img_finale.width -= llgboframe.top; 589 img_finale.height = img_finale.width / rapport; 580 590 } 581 591 zoom = echelle; … … 589 599 590 600 591 wingbo = img_finale.width; 592 heightgbo = img_finale.height; 593 img_finale.width -= marges_llgbo 601 wingbo = img_finale.width; 602 heightgbo = img_finale.height; 603 img_finale.width -= marges_llgbo; 594 604 img_finale.height -= marges_llgbo; 595 605 … … 750 760 751 761 752 jQuery("#pamoorama_inner ").css({ zoom: zoom });762 // if(msie || safari) jQuery("#pamoorama_inner ").css({ zoom: zoom }); 753 763 //==================================================== 754 764 jQuery("#pamoorama").css({ … … 1311 1321 1312 1322 1313 $(function () {1323 jQuery(function () { 1314 1324 jQuery('#pamoorama').live('ON', function (e) { 1315 1325 jQuery(jQuery('.debug').get(1)).trigger('ON'); … … 1323 1333 // Custom Event, ON to turn on a debug. 1324 1334 jQuery('.debug').live('ON', function (e) { 1325 1335 1326 1336 jQuery('.debug').trigger('OFF'); 1327 1337 jQuery(this).addClass('debugOn'); … … 1330 1340 // On Click = debugs On 1331 1341 jQuery('.debug').live('click', function (e) { 1332 1342 1333 1343 jQuery(this).trigger('ON'); 1334 1344 }); … … 1336 1346 // Custom Event, Turn off a debug 1337 1347 jQuery('.debug').live('OFF', function (e) { 1338 1348 1339 1349 jQuery(this).removeClass('debugOn'); 1340 1350 }); … … 1342 1352 // on Double Click, remove the debug from the DOM 1343 1353 jQuery('.debug').live('dblclick', function () { 1344 1354 1345 1355 jQuery(this).fadeOut(function () { $(this).remove() }); 1346 1356 }); … … 1355 1365 // Add 10 testing debugs to start with 1356 1366 jQuery(window).load(function () { 1357 if (DEBUG == "true") { 1358 for (var i = 0; i < 10; i++) { 1359 jQuery('#adddebugs').click(); 1367 if (DEBUG == "true") { 1368 for (var i = 0; i < 10; i++) { 1369 jQuery('#adddebugs').click(); 1370 } 1371 jQuery(jQuery('.debug').get(8)).click(); 1372 1360 1373 } 1361 jQuery(jQuery('.debug').get(8)).click(); 1362 1363 } 1364 }); //on load 1374 }); //on load 1365 1375 }); -
extensions/Autosize/js/conflit.js
r8057 r8070 72 72 function conflit(element, nc) { 73 73 //--- cl_conflit 74 if (typeof (element) == "string") { 75 if (element.match("^#|.ui", "gi")) { 76 ret_element = jQuery(element); 77 return ret_element; 78 } 79 } 74 80 var retour = (getStackTrace()); 75 81 Fn = retour.fn; … … 503 509 $_ = $; 504 510 function save_framework(page) { 511 505 512 try { 506 513 Conflit = { version: cl_version, name: cl_plugin }; … … 513 520 514 521 } 522 -
extensions/Autosize/main.inc.php
r8057 r8070 17 17 //================================================================== 18 18 $autosize_controler = new autosize_controler(); 19 add_event_handler('get_admin_plugin_menu_links', array(&$autosize_controler,'cl_autosize_admin') ); 19 20 20 21 21 add_event_handler('get_admin_plugin_menu_links', array(&$autosize_controler,'cl_autosize_admin') ); 22 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), 40 ); 23 24 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script'), EVENT_HANDLER_PRIORITY_NEUTRAL+20 , 2); 22 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), EVENT_HANDLER_PRIORITY_NEUTRAL ); 23 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script'), EVENT_HANDLER_PRIORITY_NEUTRAL , 2); 25 24 26 25 add_event_handler('loc_end_page_tail',array(&$autosize_controler, 'cl_autosize_script_2'), EVENT_HANDLER_PRIORITY_NEUTRAL ); 27 28 26 add_event_handler('render_element_content', 29 27 array(&$autosize_controler, 'cl_autosize_script_3'), EVENT_HANDLER_PRIORITY_NEUTRAL-1, 2 ); 30 28 31 29 -
extensions/Autosize/template/autosize.tpl
r8057 r8070 46 46 </script> 47 47 48 {known_script id="Affiche_script" src=$AUTOSIZE_PATH|@cat:"js/Affiche_script.js"} 48 49 49 <link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" /> 50 50 <!-- << autosize/template/autosize.tpl --> 51 {/html_head} 51 {/html_head} 52 53 54 {known_script id="Affiche_script" src=$AUTOSIZE_PATH|@cat:"js/Affiche_script.js"} 52 55 <script type="text/javascript"> 53 56 var DEBUG = '{$DEBUG}';
Note: See TracChangeset
for help on using the changeset viewer.