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

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

too many changes

File size: 2.8 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_ALL_IMAGES}
17    {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all pictures of the gallery'|@translate}
18    <a href="{$MANAGE_LINK}">{'Manage my subscriptions'|@translate}</a>
19   
20  {elseif $SUBSCRIBED_ALBUM_IMAGES}
21    {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all pictures of this album'|@translate}
22    <a href="{$UNSUB_LINK}">{'Unsubscribe'|@translate}</a>
23   
24  {elseif $SUBSCRIBED_IMAGE}
25    {'You are currently subscribed to comments on %s.'|@translate|sprintf:'this picture'|@translate}
26    <a href="{$UNSUB_LINK}">{'Unsubscribe'|@translate}</a>
27   
28  {elseif $SUBSCRIBED_ALL_ALBUMS}
29    {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all albums of the gallery'|@translate}
30    <a href="{$MANAGE_LINK}">{'Manage my subscriptions'|@translate}</a>
31   
32  {elseif $SUBSCRIBED_ALBUM}
33    {'You are currently subscribed to comments on %s.'|@translate|sprintf:'this album'|@translate}
34    <a href="{$UNSUB_LINK}">{'Unsubscribe'|@translate}</a>
35   
36  {else}
37    <legend>{'Subscribe to mail notifications'|@translate}</legend>
38    {if $STC_ON_PICTURE}
39      {if $STC_ALLOW_GLOBAL}
40        <label><input type="radio" name="stc_mode" value="image"> {'this picture'|@translate}</label>
41        {if $STC_ALLOW_ALBUM_IMAGES}<label><input type="radio" name="stc_mode" value="album-images"> {'all pictures of this album'|@translate}</label>{/if}
42        <label><input type="radio" name="stc_mode" value="all-images"> {'all pictures of the gallery'|@translate}</label>
43      {else}
44        <input type="hidden" name="stc_mode" value="image">
45      {/if}
46    {elseif $STC_ON_ALBUM}
47      {if $STC_ALLOW_GLOBAL}
48        <label><input type="radio" name="stc_mode" value="album"> {'this album'|@translate}</label>
49        <label><input type="radio" name="stc_mode" value="all-albums"> {'all albums of the gallery'|@translate}</label>
50      {else}
51        <input type="hidden" name="stc_mode" value="album">
52      {/if}
53    {/if}
54    {if $STC_ALLOW_GLOBAL and $STC_ASK_MAIL}<br>{/if}
55    <span id="stc_submit">
56    {if $STC_ASK_MAIL}
57        <label>{'Email'|@translate} <input type="text" name="stc_mail" size="30"></label>
58    {/if}
59      <label><input type="submit" name="stc_submit" value="{'Subscribe'|@translate}"></label>
60    </span>
61  {/if}
62  {/strip}</fieldset>
63</form>
64</div>
65{/if}
Note: See TracBrowser for help on using the repository browser.