source: extensions/Subscribe_to_comments/template/form_standalone.tpl @ 21439

Last change on this file since 21439 was 21439, checked in by mistic100, 11 years ago

fix translation errors

File size: 2.5 KB
Line 
1{combine_css path=$SUBSCRIBE_TO_PATH|@cat:'template/style_form.css'}
2
3{if $STC_ALLOW_GLOBAL}
4  {footer_script require="jquery"}{literal}
5  jQuery("#stc_submit").hide();
6  jQuery("#stc_standalone input[name='stc_mode']").change(function() {
7    jQuery("#stc_submit").show();
8  });
9  {/literal}{/footer_script}
10{/if}
11
12{if isset($comment_add)}
13<div id="pictureCommentList">
14<form method="post" action="{$comment_add.F_ACTION}" id="stc_standalone">
15  <fieldset>{strip}
16  {if $SUBSCRIBED}
17    {if $SUBSCRIBED=='all-images'}
18      {assign var=str value='all pictures of the gallery'|@translate}
19    {elseif $SUBSCRIBED=='album-images'}
20      {assign var=str value='all pictures of this album'|@translate}
21    {elseif $SUBSCRIBED=='image'}
22      {assign var=str value='this picture'|@translate}
23    {elseif $SUBSCRIBED=='all-albums'}
24      {assign var=str value='all albums of the gallery'|@translate}
25    {elseif $SUBSCRIBED=='album'}
26      {assign var=str value='this album'|@translate}
27    {/if}
28   
29    {'You are currently subscribed to comments on %s.'|@translate|sprintf:$str}
30    <a href="{$UNSUB_LINK}">{'Unsubscribe'|@translate}</a>
31  {else}
32    <legend>{'Subscribe to mail notifications'|@translate}</legend>
33    {if $STC_ON_PICTURE}
34      {if $STC_ALLOW_GLOBAL}
35        <label><input type="radio" name="stc_mode" value="image"> {'this picture'|@translate}</label>
36        {if $STC_ALLOW_ALBUM_IMAGES}<label><input type="radio" name="stc_mode" value="album-images"> {'all pictures of this album'|@translate}</label>{/if}
37        <label><input type="radio" name="stc_mode" value="all-images"> {'all pictures of the gallery'|@translate}</label>
38      {else}
39        <input type="hidden" name="stc_mode" value="image">
40      {/if}
41    {elseif $STC_ON_ALBUM}
42      {if $STC_ALLOW_GLOBAL}
43        <label><input type="radio" name="stc_mode" value="album"> {'this album'|@translate}</label>
44        <label><input type="radio" name="stc_mode" value="all-albums"> {'all albums of the gallery'|@translate}</label>
45      {else}
46        <input type="hidden" name="stc_mode" value="album">
47      {/if}
48    {/if}
49    {if $STC_ALLOW_GLOBAL and $STC_ASK_MAIL}<br>{/if}
50    <span id="stc_submit">
51    {if $STC_ASK_MAIL}
52        <label>{'Email'|@translate} <input type="text" name="stc_mail" size="30"></label>
53    {/if}
54      <label><input type="submit" name="stc_submit" value="{'Subscribe'|@translate}"></label>
55    </span>
56  {/if}
57  {/strip}</fieldset>
58</form>
59</div>
60{/if}
Note: See TracBrowser for help on using the repository browser.