Changeset 10821 for extensions/Back2Front/template/picture_content.tpl
- Timestamp:
- May 9, 2011, 3:15:45 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Back2Front/template/picture_content.tpl
r10819 r10821 2 2 3 3 {footer_script require="jquery"} 4 jQuery('.reverse').click(function() {ldelim} 5 if (jQuery(this).attr('rel') == 'front') {ldelim} 6 /* picture attributes */ 7 jQuery('#theImage img:first-child').attr({ldelim} 8 src: '{$VERSO_URL}', 9 style: 'width:;height:;', 10 }); 11 12 /* hd link atributes */ 13 {if isset($VERSO_HD)} 14 jQuery('#theImage a:first-child').attr({ldelim} 15 href: "javascript:phpWGOpenWindow('{$VERSO_HD}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')" 16 }); 17 {/if} 18 19 /* B2F link content */ 20 jQuery(this).html('<img src="{$B2F_PATH}template/rotate_2.png"/> {'See front'|@translate}'); 21 jQuery(this).attr('rel', 'back'); 22 23 } else if (jQuery(this).attr('rel') == 'back') {ldelim} 24 jQuery('#theImage img:first-child').attr({ldelim} 25 src: '{$SRC_IMG}', 26 style: 'width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;', 27 }); 28 29 {if isset($VERSO_HD)} 30 jQuery('#theImage a:first-child').attr({ldelim} 31 href: "javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')')" 32 }); 33 {/if} 34 35 jQuery(this).html('<img src="{$B2F_PATH}template/rotate_1.png"/> {'See back'|@translate}'); 36 jQuery(this).attr('rel', 'front'); 37 } 38 }); 4 jQuery(document).ready(function () {ldelim} 5 jQuery('.reverse').click(function() {ldelim} 6 if (jQuery(this).attr('rel') == 'front') {ldelim} 7 /* picture attributes */ 8 jQuery('#theImage img:first-child').attr({ldelim} 9 src: '{$VERSO_URL}', 10 style: 'width:;height:;', 11 }); 12 13 /* hd link atributes */ 14 {if isset($VERSO_HD)} 15 jQuery('#theImage a:first-child').attr({ldelim} 16 href: "javascript:phpWGOpenWindow('{$VERSO_HD}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')" 17 }); 18 {/if} 19 20 /* B2F link content */ 21 jQuery(this).html('<img src="{$B2F_PATH}template/rotate_2.png"/> {'See front'|@translate}'); 22 jQuery(this).attr('rel', 'back'); 23 24 } else if (jQuery(this).attr('rel') == 'back') {ldelim} 25 jQuery('#theImage img:first-child').attr({ldelim} 26 src: '{$SRC_IMG}', 27 style: 'width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;', 28 }); 29 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')')" 33 }); 34 {/if} 35 36 jQuery(this).html('<img src="{$B2F_PATH}template/rotate_1.png"/> {'See back'|@translate}'); 37 jQuery(this).attr('rel', 'front'); 38 } 39 }); 40 }); 39 41 {/footer_script} 40 42 41 43 <a class="reverse" rel="front" href="#"> 42 43 44 <img src="{$B2F_PATH}template/rotate_1.png"/> 45 {'See back'|@translate} 44 46 </a>
Note: See TracChangeset
for help on using the changeset viewer.