source: extensions/Front2Back/template/Front2Back.tpl @ 10165

Last change on this file since 10165 was 9969, checked in by mistic100, 13 years ago

[extensions] Front2Back

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1{combine_css path=$F2B_PATH|@cat:"template/Front2Back.css"}
2
3{footer_script require="jquery"}
4        jQuery('.reverse').click(function() {ldelim}
5                if (jQuery(this).attr('name') == '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                        /* f2b link content */
20                        jQuery(this).html('<img src="{$F2B_PATH}template/rotate_2.png"/> {'Front2Back_front'|@translate}');
21                        jQuery(this).attr('name', 'back');
22                       
23                } else if (jQuery(this).attr('name') == '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="{$F2B_PATH}template/rotate_1.png"/> {'Front2Back_back'|@translate}');
36                        jQuery(this).attr('name', 'front');
37                }
38        });
39{/footer_script}
40
41<a class="reverse" name="front">
42        <img src="{$F2B_PATH}template/rotate_1.png"/>
43        {'Front2Back_back'|@translate}
44</a>
Note: See TracBrowser for help on using the repository browser.