Changeset 10852 for extensions/Back2Front/template
- Timestamp:
- May 11, 2011, 7:17:49 PM (13 years ago)
- Location:
- extensions/Back2Front/template
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Back2Front/template/picture_content.tpl
r10821 r10852 3 3 {footer_script require="jquery"} 4 4 jQuery(document).ready(function () {ldelim} 5 6 {if $b2f_switch_mode == 'click'} 5 7 jQuery('.reverse').click(function() {ldelim} 6 8 if (jQuery(this).attr('rel') == 'front') {ldelim} 7 /* picture attributes */ 8 jQuery('#theImage img:first-child').attr({ldelim} 9 {else} 10 jQuery('.reverse').hover(function() {ldelim} 11 {/if} 12 13 /* picture switch */ 14 {if $b2f_transition == 'fade'} 15 jQuery('img[alt="{$ALT_IMG}"]').animate({ldelim} 16 opacity:0 17 }, 400, function() {ldelim} 18 jQuery(this).animate({ldelim} 19 width:'{$VERSO_WIDTH}px', 20 height:'{$VERSO_HEIGHT}px' 21 }, 200, function() {ldelim} 22 jQuery(this).attr('src', '{$VERSO_URL}'); 23 jQuery(this).animate({ldelim} 24 opacity:1 25 }, 400); 26 }); 27 }); 28 {else} 29 jQuery('img[alt="{$ALT_IMG}"]').attr({ldelim} 9 30 src: '{$VERSO_URL}', 10 style: 'width: ;height:;',31 style: 'width:{$VERSO_WIDTH}px;height:{$VERSO_HEIGHT}px;', 11 32 }); 12 13 /* hd link atributes */ 33 {/if} 34 35 {if $b2f_switch_mode == 'click'} 36 /* hd link */ 14 37 {if isset($VERSO_HD)} 15 jQuery(' #theImage a:first-child').attr({ldelim}38 jQuery('img[alt="{$ALT_IMG}"]').parent().attr({ldelim} 16 39 href: "javascript:phpWGOpenWindow('{$VERSO_HD}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')" 17 40 }); 18 41 {/if} 19 42 20 43 /* B2F link content */ 21 44 jQuery(this).html('<img src="{$B2F_PATH}template/rotate_2.png"/> {'See front'|@translate}'); 22 45 jQuery(this).attr('rel', 'back'); 46 {/if} 23 47 48 {if $b2f_switch_mode == 'click'} 24 49 } else if (jQuery(this).attr('rel') == 'back') {ldelim} 25 jQuery('#theImage img:first-child').attr({ldelim} 50 {else} 51 }, function() {ldelim} 52 {/if} 53 54 {if $b2f_transition == 'fade'} 55 jQuery('img[alt="{$ALT_IMG}"]').animate({ldelim} 56 opacity:0 57 }, 400, function() {ldelim} 58 jQuery(this).animate({ldelim} 59 width:'{$WIDTH_IMG}px', 60 height:'{$HEIGHT_IMG}px' 61 }, 200, function() {ldelim} 62 jQuery(this).attr('src', '{$SRC_IMG}'); 63 jQuery(this).animate({ldelim} 64 opacity:1 65 }, 400); 66 }); 67 }); 68 {else} 69 jQuery('img[alt="{$ALT_IMG}"]').attr({ldelim} 26 70 src: '{$SRC_IMG}', 27 71 style: 'width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;', 28 72 }); 73 {/if} 29 74 30 {if isset($VERSO_HD)} 31 jQuery('#theImage a:first-child').attr({ldelim} 32 href: "javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')')" 75 {if $b2f_switch_mode == 'click'} 76 {if isset($high.U_HIGH)} 77 jQuery('img[alt="{$ALT_IMG}"]').parent().attr({ldelim} 78 href: "javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')" 33 79 }); 34 80 {/if} … … 36 82 jQuery(this).html('<img src="{$B2F_PATH}template/rotate_1.png"/> {'See back'|@translate}'); 37 83 jQuery(this).attr('rel', 'front'); 84 {/if} 85 86 {if $b2f_switch_mode == 'click'} 38 87 } 39 88 }); 89 {else} 90 }); 91 {/if} 92 40 93 }); 41 94 {/footer_script} 42 95 43 <a class="reverse" rel="front" href="#"> 44 <img src="{$B2F_PATH}template/rotate_1.png"/> 45 {'See back'|@translate} 96 <img src="{$VERSO_URL}" style="display:none;"> {* <!-- force preload the verso --> *} 97 98 <a class="reverse" rel="front" name="verso-link" {if $b2f_switch_mode == 'hover'}href="javascript:phpWGOpenWindow('{$VERSO_HD}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"{/if}> 99 <img src="{$B2F_PATH}template/rotate_1.png"/> {'See back'|@translate} 46 100 </a> 101 <br/> -
extensions/Back2Front/template/picture_modify.tpl
r10821 r10852 2 2 $(document).ready(function () {ldelim} 3 3 $('input[name="b2f_is_verso"]').change(function () {ldelim} 4 if (this.checked) {ldelim} 5 $('.frontside_id').css('visibility', ''); 6 } else {ldelim} 7 $('.frontside_id').css('visibility', 'hidden'); 8 } 4 $('.frontside_param').toggle(); 9 5 }); 10 6 }); … … 21 17 <tr> 22 18 <td><b>{'This picture has a backside :'|@translate}</b></td> 23 <td><a href="{$B2F_VERSO_URL}">{$B2F_VERSO_ID} - {$B2F_VERSO_NAME}</a></td>19 <td><a href="{$B2F_VERSO_URL}">{$B2F_VERSO_ID}</a></td> 24 20 </tr> 25 21 </table> 26 22 {else} 27 <table >23 <table style="min-width:400px;"> 28 24 <tr> 29 25 <td><b>{'This picture is a backside...'|@translate}</b></td> 30 <td ><input type="checkbox" name="b2f_is_verso" {$B2F_IS_VERSO}></td>26 <td style="width:70px"><input type="checkbox" name="b2f_is_verso" {$B2F_IS_VERSO}></td> 31 27 </tr> 32 33 <tr class="frontside_ id" {if !isset($B2F_IS_VERSO)}style="visibility:hidden;"{/if}>28 29 <tr class="frontside_param" {if !isset($B2F_IS_VERSO)}style="display:none;"{/if}> 34 30 <td><b>{'...of the picture n°'|@translate}</b></td> 35 31 <td><input type="text" size="4" name="b2f_front_id" value="{$B2F_FRONT_ID}"></td> 36 32 </tr> 37 33 38 <tr class="frontside_ id" {if !isset($B2F_IS_VERSO)}style="visibility:hidden;"{/if}>34 <tr class="frontside_param" {if !isset($B2F_IS_VERSO)}style="display:none;"{/if}> 39 35 <td><b>{'Move backside to private album'|@translate}</b></td> 40 <td><input type="checkbox" name="b2f_move_verso" checked="checked"></td>36 <td><input type="checkbox" name="b2f_move_verso" {$B2F_MOVE_VERSO}></td> 41 37 </tr> 42 38 </table> -
extensions/Back2Front/template/style.css
r10819 r10852 6 6 font-size:15px; 7 7 font-style:italic; 8 height:1em; 8 9 } 9 10 a.reverse img { 11 margin:0 !important; 10 12 vertical-align:top; 11 13 border:none !important;
Note: See TracChangeset
for help on using the changeset viewer.