[21340] | 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 | |
---|
[15641] | 12 | {if isset($comment_add)} |
---|
| 13 | <div id="pictureCommentList"> |
---|
| 14 | <form method="post" action="{$comment_add.F_ACTION}" id="stc_standalone"> |
---|
[21340] | 15 | <fieldset>{strip} |
---|
[21439] | 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} |
---|
[15641] | 28 | |
---|
[21439] | 29 | {'You are currently subscribed to comments on %s.'|@translate|sprintf:$str} |
---|
[15641] | 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} |
---|
[21340] | 50 | <span id="stc_submit"> |
---|
[15641] | 51 | {if $STC_ASK_MAIL} |
---|
[21340] | 52 | <label>{'Email'|@translate} <input type="text" name="stc_mail" size="30"></label> |
---|
[15641] | 53 | {/if} |
---|
[21340] | 54 | <label><input type="submit" name="stc_submit" value="{'Subscribe'|@translate}"></label> |
---|
| 55 | </span> |
---|
[15641] | 56 | {/if} |
---|
[21340] | 57 | {/strip}</fieldset> |
---|
[15641] | 58 | </form> |
---|
| 59 | </div> |
---|
| 60 | {/if} |
---|