Changeset 26144 for extensions/Subscribe_to_comments/template
- Timestamp:
- Dec 24, 2013, 1:25:03 AM (11 years ago)
- Location:
- extensions/Subscribe_to_comments/template
- Files:
-
- 1 deleted
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/Subscribe_to_comments/template/form_inside.tpl
r26140 r26144 1 {if !$SUBSCRIBED} 1 {if isset($STC.SUBSCRIBED)} 2 {strip} 3 {if $STC.SUBSCRIBED=='all-images'} 4 {assign var=str value='all pictures of the gallery'|translate} 5 {else if $STC.SUBSCRIBED=='album-images'} 6 {assign var=str value='all pictures of this album'|translate} 7 {else if $STC.SUBSCRIBED=='image'} 8 {assign var=str value='this picture'|translate} 9 {else if $STC.SUBSCRIBED=='all-albums'} 10 {assign var=str value='all albums of the gallery'|translate} 11 {else if $STC.SUBSCRIBED=='album'} 12 {assign var=str value='this album'|translate} 13 {/if} 14 {/strip} 15 <p> 16 {'You are currently subscribed to comments on %s.'|translate:$str} 17 <a href="{$STC.U_UNSUB}">{'Unsubscribe'|translate}</a> 18 </p> 2 19 20 {else} 3 21 <p> 4 22 {'Notify me of followup comments'|translate} :<br> 5 <label><input type="radio" name="stc_mode" value="-1" {if !$STC _MODE}checked{/if}> {'No'|translate}</label>6 {if $STC _ON_PICTURE}7 {if $STC _ALLOW_GLOBAL}8 <label><input type="radio" name="stc_mode" value="image" {if $STC _MODE=="image"}checked{/if}> {'this picture'|translate}</label>9 {if $STC _ALLOW_ALBUM_IMAGES}<label><input type="radio" name="stc_mode" value="album-images" {if $STC_MODE=="album-images"}checked{/if}> {'all pictures of this album'|translate}</label>{/if}10 <label><input type="radio" name="stc_mode" value="all-images" {if $STC _MODE=="all-images"}checked{/if}> {'all pictures of the gallery'|translate}</label>23 <label><input type="radio" name="stc_mode" value="-1" {if !$STC.MODE}checked{/if}> {'No'|translate}</label> 24 {if $STC.ON_PICTURE} 25 {if $STC.ALLOW_GLOBAL} 26 <label><input type="radio" name="stc_mode" value="image" {if $STC.MODE=="image"}checked{/if}> {'this picture'|translate}</label> 27 {if $STC.ALLOW_ALBUM_IMAGES}<label><input type="radio" name="stc_mode" value="album-images" {if $STC.MODE=="album-images"}checked{/if}> {'all pictures of this album'|translate}</label>{/if} 28 <label><input type="radio" name="stc_mode" value="all-images" {if $STC.MODE=="all-images"}checked{/if}> {'all pictures of the gallery'|translate}</label> 11 29 {else} 12 <label><input type="radio" name="stc_mode" value="image" {if $STC _MODE=="image"}checked{/if}> {'Yes'|translate}</label>30 <label><input type="radio" name="stc_mode" value="image" {if $STC.MODE=="image"}checked{/if}> {'Yes'|translate}</label> 13 31 {/if} 14 {else if $STC_ON_ALBUM}15 {if $STC _ALLOW_GLOBAL}16 <label><input type="radio" name="stc_mode" value="album" {if $STC _MODE=="album"}checked{/if}> {'this album'|translate}</label>17 <label><input type="radio" name="stc_mode" value="all-albums" {if $STC _MODE=="all-albums"}checked{/if}> {'all albums of the gallery'|translate}</label>32 {else if $STC.ON_ALBUM} 33 {if $STC.ALLOW_GLOBAL} 34 <label><input type="radio" name="stc_mode" value="album" {if $STC.MODE=="album"}checked{/if}> {'this album'|translate}</label> 35 <label><input type="radio" name="stc_mode" value="all-albums" {if $STC.MODE=="all-albums"}checked{/if}> {'all albums of the gallery'|translate}</label> 18 36 {else} 19 <label><input type="radio" name="stc_mode" value="album" {if $STC _MODE=="album"}checked{/if}> {'Yes'|translate}</label>37 <label><input type="radio" name="stc_mode" value="album" {if $STC.MODE=="album"}checked{/if}> {'Yes'|translate}</label> 20 38 {/if} 21 39 {/if} 22 40 </p> 23 24 {if $STC_ASK_MAIL} 25 {footer_script require='jquery'} 26 (function($){ 27 var $stc_email_input = $("#addComment input[name='email']"); 28 var stc_bordercolor = $stc_email_input.css('border-color'); 29 30 $("#addComment input[name='stc_mode']").change(function() { 31 if ($(this).val() != "-1") { 32 if ($stc_email_input.val()=="") { 33 $stc_email_input.css("border-color", "red"); 34 } 35 } 36 else { 37 $stc_email_input.css("border-color", stc_bordercolor); 38 } 39 }); 40 $stc_email_input.change(function() { 41 $(this).css('border-color', stc_bordercolor); 42 }); 43 }(jQuery)); 44 {/footer_script} 45 {/if} 41 <p> 42 <a href="#stc_standalone" id="open_stc_standalone" title="{'Subscribe to mail notifications'|translate}">{'Subscribe without commenting'|translate}</a> 43 </p> 46 44 47 45 {/if} -
extensions/Subscribe_to_comments/template/form_outside.tpl
r26140 r26144 1 {combine_css path=$SUBSCRIBE_TO_PATH|cat:'template/style_form.css'} 1 {combine_script id='jquery.colorbox' load='footer' require='jquery' path='themes/default/js/plugins/jquery.colorbox.min.js'} 2 {combine_css id='colorbox' path='themes/default/js/plugins/colorbox/style2/colorbox.css'} 2 3 3 {if $STC_ALLOW_GLOBAL} 4 {footer_script require='jquery'} 5 jQuery("#stc_submit").hide(); 6 jQuery("#stc_standalone input[name='stc_mode']").change(function() { 7 jQuery("#stc_submit").show(); 4 {footer_script require='jquery,jquery.colorbox'} 5 (function($){ 6 $('#open_stc_standalone').colorbox({ 7 inline: true 8 8 }); 9 {/footer_script} 9 10 var bg_color = 'white'; 11 $.each(['#the_page #content', 'body'], function(i, selector) { 12 var color = $(selector).css('background-color'); 13 if (color && color!='transparent') { 14 bg_color = color; 15 return false; 16 } 17 }); 18 $('#stc_standalone').css('background-color', bg_color); 19 20 {if $STC.ALLOW_GLOBAL} 21 $("#stc_submit").hide(); 22 $("#stc_standalone input[name='stc_mode']").change(function() { 23 $("#stc_submit").show(); 24 $.colorbox.resize({ speed:0 }); 25 }); 10 26 {/if} 11 27 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} 28 {if !isset($STC_SUBSCRIBED) and $STC.ASK_MAIL} 29 var $stc_email_input = $("#addComment input[name='email']"); 30 var stc_bordercolor = $stc_email_input.css('border-color'); 31 32 $("#addComment input[name='stc_mode']").change(function() { 33 if ($(this).val() != "-1") { 34 if ($stc_email_input.val()=="") { 35 $stc_email_input.css("border-color", "red"); 36 } 37 } 38 else { 39 $stc_email_input.css("border-color", stc_bordercolor); 40 } 41 }); 42 $stc_email_input.change(function() { 43 $(this).css('border-color', stc_bordercolor); 44 }); 45 {/if} 46 }(jQuery)); 47 {/footer_script} 48 49 <div style="display:none"> 50 <form method="post" action="{$comment_add.F_ACTION}" id="stc_standalone" style="padding:10px;min-width:350px;"> 51 {if $STC.ON_PICTURE} 52 {if $STC.ALLOW_GLOBAL} 53 <label><input type="radio" name="stc_mode" value="image"> {'this picture'|translate}</label> 54 {if $STC.ALLOW_ALBUM_IMAGES}<label><input type="radio" name="stc_mode" value="album-images"> {'all pictures of this album'|translate}</label>{/if} 55 <label><input type="radio" name="stc_mode" value="all-images"> {'all pictures of the gallery'|translate}</label> 56 {else} 57 <input type="hidden" name="stc_mode" value="image"> 27 58 {/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} 59 {else if $STC.ON_ALBUM} 60 {if $STC.ALLOW_GLOBAL} 61 <label><input type="radio" name="stc_mode" value="album"> {'this album'|translate}</label> 62 <label><input type="radio" name="stc_mode" value="all-albums"> {'all albums of the gallery'|translate}</label> 63 {else} 64 <input type="hidden" name="stc_mode" value="album"> 48 65 {/if} 49 {if $STC_ALLOW_GLOBAL and $STC_ASK_MAIL}<br>{/if} 66 {/if} 67 {if $STC.ALLOW_GLOBAL and $STC.ASK_MAIL}<br>{/if} 50 68 <span id="stc_submit"> 51 {if $STC _ASK_MAIL}52 69 {if $STC.ASK_MAIL} 70 <label>{'Email'|translate} <input type="text" name="stc_mail" size="30"></label> 53 71 {/if} 54 72 <label><input type="submit" name="stc_submit" value="{'Subscribe'|translate}"></label> 55 73 </span> 56 {/if} 57 {/strip}</fieldset> 58 </form> 74 </form> 59 75 </div> 60 {/if} -
extensions/Subscribe_to_comments/template/subscriptions_page.tpl
r26140 r26144 4 4 {if $IN_VALIDATE or $IN_UNSUBSCRIBE} 5 5 <p> 6 {if !empty($ element)}<a href="{$element.url}" title="{$element.name}">{'Return to item page'|@translate}</a><br>{/if}7 <a href="{$ MANAGE_LINK}">{'Manage my subscriptions'|@translate}</a>6 {if !empty($STC.element)}<a href="{$STC.element.url}" title="{$STC.element.name}">{'Return to item page'|translate}</a><br>{/if} 7 <a href="{$U_MANAGE_SUBSCRIPTIONS}">{'Manage my subscriptions'|translate}</a> 8 8 </p> 9 9 10 10 {else} 11 <form action="{$ MANAGE_LINK}" method="post">11 <form action="{$U_MANAGE_SUBSCRIPTIONS}" method="post"> 12 12 {if !empty($global_subscriptions)} 13 13 <fieldset> 14 <legend>{'Global subscriptions'| @translate}</legend>14 <legend>{'Global subscriptions'|translate}</legend> 15 15 <table class="subscriptions_list"> 16 16 {foreach from=$global_subscriptions item=sub name=subs_loop} … … 18 18 <td> 19 19 {if $sub.type == 'all-images'} 20 {assign var=str value='all pictures of the gallery'| @translate}20 {assign var=str value='all pictures of the gallery'|translate} 21 21 <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/image.png"> 22 22 {else $sub.type == 'all-albums'} 23 {assign var=str value='all albums of the gallery'| @translate}23 {assign var=str value='all albums of the gallery'|translate} 24 24 <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album.png"> 25 25 {/if} 26 {'You are currently subscribed to comments on %s.'| @translate|sprintf:$str}26 {'You are currently subscribed to comments on %s.'|translate:$str} 27 27 </td> 28 28 <td style="white-space:nowrap;"> 29 29 <div class="actions"> 30 <a href="{$ MANAGE_LINK}&unsubscribe={$sub.id}" class="unsub">{'Unsubscribe'|@translate}</a>31 {if $sub. validated == 'false'}<br> <a href="{$MANAGE_LINK}&validate={$sub.id}">{'Validate'|@translate}</a>{/if}30 <a href="{$sub.U_UNSUB}" class="unsub">{'Unsubscribe'|translate}</a> 31 {if $sub.U_VALIDATE}<br> <a href="{$sub.U_VALIDATE}">{'Validate'|translate}</a>{/if} 32 32 </div> 33 33 </td> … … 43 43 {if !empty($subscriptions)} 44 44 <fieldset> 45 <legend>{'Manage my subscriptions'| @translate}</legend>45 <legend>{'Manage my subscriptions'|translate}</legend> 46 46 <table class="subscriptions_list"> 47 47 <tr class="header"> 48 48 <th class="chkb"><input type="checkbox" id="check_all"></th> 49 <th colspan="2" class="info">{'Subject'| @translate}</th>50 <th class="date">{'Followed on'| @translate}</th>49 <th colspan="2" class="info">{'Subject'|translate}</th> 50 <th class="date">{'Followed on'|translate}</th> 51 51 </tr> 52 52 … … 60 60 61 61 <div class="actions"> 62 <a href="{$ MANAGE_LINK}&unsubscribe={$sub.id}" class="unsub">{'Unsubscribe'|@translate}</a>63 {if $sub. validated == 'false'}| <a href="{$MANAGE_LINK}&validate={$sub.id}">{'Validate'|@translate}</a>{/if}62 <a href="{$sub.U_UNSUB}" class="unsub">{'Unsubscribe'|translate}</a> 63 {if $sub.U_VALIDATE}<br> <a href="{$sub.U_VALIDATE}">{'Validate'|translate}</a>{/if} 64 64 </div> 65 65 </td> … … 72 72 <tr class="footer {if $smarty.foreach.subs_loop.index is odd}row1{else}row2{/if}"><td colspan="4"> 73 73 <select name="action"> 74 <option value="-1">{'Choose an action'| @translate}</option>75 <option value="unsubscribe">{'Unsubscribe'| @translate}</option>76 <option value="validate">{'Validate'| @translate}</option>74 <option value="-1">{'Choose an action'|translate}</option> 75 <option value="unsubscribe">{'Unsubscribe'|translate}</option> 76 <option value="validate">{'Validate'|translate}</option> 77 77 </select> 78 <input type="submit" name="apply_bulk" value="{'Apply action'| @translate}">78 <input type="submit" name="apply_bulk" value="{'Apply action'|translate}"> 79 79 </td></tr> 80 80 </table> 81 81 82 82 <p> 83 <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/image.png"> {'comments on a picture'| @translate}.84 <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album-images.png"> {'comments on all pictures of an album'| @translate}.85 {if $COA_ACTIVATED}<img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album.png"> {'comments on an album'| @translate}.{/if}83 <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/image.png"> {'comments on a picture'|translate}. 84 <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album-images.png"> {'comments on all pictures of an album'|translate}. 85 {if $COA_ACTIVATED}<img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album.png"> {'comments on an album'|translate}.{/if} 86 86 </p> 87 87 </fieldset> … … 90 90 {if !empty($global_subscriptions) or !empty($subscriptions)} 91 91 <p> 92 <label><input type="checkbox" name="unsubscribe_all_check" value="1"> {'Unsubscribe from all email notifications'| @translate}</label>93 <input type="submit" name="unsubscribe_all" value="{'Submit'| @translate}">92 <label><input type="checkbox" name="unsubscribe_all_check" value="1"> {'Unsubscribe from all email notifications'|translate}</label> 93 <input type="submit" name="unsubscribe_all" value="{'Submit'|translate}"> 94 94 </p> 95 95 {/if}
Note: See TracChangeset
for help on using the changeset viewer.