Changeset 29841
- Timestamp:
- Sep 30, 2014, 10:36:35 AM (10 years ago)
- Location:
- extensions/LLGBO2
- Files:
-
- 22 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/include/manage_picture_content.php
r29810 r29841 116 116 // -------------------------------------- 117 117 $patern = '/'.'<img(.*)id="theMainImage"(.*)>'.'/'; 118 $replacement = '{if !empty($llgbo.FRAME_TITLE1)}{$llgbo.FRAME_TITLE1}{$current.TITLE} {$llgbo.FRAME_TITLE3}{/if}{$llgbo.FRAME_SIZE}{$llgbo.FRAME_BEGIN}'."\n".'<img $1 id="theMainImage" $2>'.'{$llgbo.FRAME_END}';118 $replacement = '{if !empty($llgbo.FRAME_TITLE1)}{$llgbo.FRAME_TITLE1}{$current.TITLE} {$llgbo.FRAME_TITLE3}{/if}{$llgbo.FRAME_SIZE}{$llgbo.FRAME_BEGIN}'."\n".'<img $1 id="theMainImage" $2>'.'{$llgbo.FRAME_END}'; 119 119 $content = preg_replace($patern, $replacement, $content); 120 120 return $content; 121 121 } 122 122 ?> -
extensions/LLGBO2/js/jquery_llgboframeresize.js
r29484 r29841 16 16 Elmgbo.width (nImgW + FrLstBdr) ; 17 17 Elmgbo.height (nImgH + FrLstBdr) ; 18 } 18 } 19 19 } 20 LlgboFr_Resize(); 21 22 jQuery(window).resize(function(){ 20 21 LlgboFr_Resize(); 22 23 jQuery(window).resize(function(){ 23 24 LlgboFr_Resize(); }); 24 25 25 jQuery("#theMainImage").load(function(){26 jQuery("#theMainImage").load(function(){ 26 27 LlgboFr_Resize();}); 27 28 }); -
extensions/LLGBO2/main.inc.php
r29811 r29841 12 12 -- 10-09-2014 13 13 2.7.A Compliance Piwigo 2.7rc1 new administration management 14 2.7.A fix issue with extended description and improve translation 14 2.7.B Fix issue with extended description and improve translation 15 compatibility with Back2Front 15 16 */ 16 17 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); … … 106 107 // Add llgbo requirement to ELEMENT_CONTENT 107 108 // -------------------------------------- 109 108 110 $template->set_filenames( array('llgbo_content'=> dirname(__FILE__).'/template/llgbo_content.tpl') ); 109 111 $template->concat('picture', $template->parse('llgbo_content', true)); … … 128 130 add_event_handler('loc_begin_picture','llgbo_BeginPicture'); 129 131 add_event_handler('loc_end_picture', 'llgbo_EndPicture'); 130 add_event_handler('render_element_content', 'llgbo_RenderContent', EVENT_HANDLER_PRIORITY_NEUTRAL, +25 ,20 );132 add_event_handler('render_element_content', 'llgbo_RenderContent', EVENT_HANDLER_PRIORITY_NEUTRAL, 20 ); 131 133 } 132 134 ?> -
extensions/LLGBO2/template/llgbo_content.tpl
r29484 r29841 16 16 {/if} 17 17 18 <!-- LLGBO2 2014-09-29 Verso image must be in block --> 19 {if isset($b2f_switch_mode)} 20 {if isset($b2f_transition)} 21 {footer_script require="jquery"} 22 {if $b2f_switch_mode == "click"} 23 jQuery(".reverse").click(function() {ldelim} 24 {else} 25 jQuery(".reverse").hover(function() {ldelim} 26 {/if} 27 var img_verso_block = null; 28 {if $b2f_transition == "fade"} 29 img_verso_block = setTimeout(block_after_delai, 450); 30 {else} 31 img_verso_block = setTimeout(block_after_delai, 50); 32 {/if} 33 return false; 34 {rdelim}); 35 function block_after_delai() {ldelim} 36 if (jQuery("img#theMainImage").css("display") == "none") {ldelim} 37 jQuery("img#theVersoImage").css( {ldelim}'display':"block"}); } 38 clearTimeout(img_verso_block); 39 }; 40 {/footer_script} 41 {/if} 42 {/if} 18 43 19
Note: See TracChangeset
for help on using the changeset viewer.