Changeset 26173
- Timestamp:
- Dec 24, 2013, 2:11:22 PM (10 years ago)
- Location:
- extensions/Subscribe_to_comments/template
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Subscribe_to_comments/template/form_inside.tpl
r26144 r26173 19 19 20 20 {else} 21 <p >21 <p id="stc_comment"> 22 22 {'Notify me of followup comments'|translate} :<br> 23 <label><input type="radio" name="stc_mode" value="-1" {if !$STC.MODE}checked{/if}> {'No'|translate}</label> 23 <label><input type="radio" name="stc_mode" value="-1" {if !$STC.MODE}checked{/if}> {'No'|translate}</label><br> 24 24 {if $STC.ON_PICTURE} 25 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>26 <label><input type="radio" name="stc_mode" value="image" {if $STC.MODE=="image"}checked{/if}> {'this picture'|translate|ucfirst}</label><br> 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|ucfirst}</label><br>{/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|ucfirst}</label><br> 29 29 {else} 30 30 <label><input type="radio" name="stc_mode" value="image" {if $STC.MODE=="image"}checked{/if}> {'Yes'|translate}</label> … … 32 32 {else if $STC.ON_ALBUM} 33 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>34 <label><input type="radio" name="stc_mode" value="album" {if $STC.MODE=="album"}checked{/if}> {'this album'|translate|ucfirst}</label><br> 35 <label><input type="radio" name="stc_mode" value="all-albums" {if $STC.MODE=="all-albums"}checked{/if}> {'all albums of the gallery'|translate|ucfirst}</label><br> 36 36 {else} 37 37 <label><input type="radio" name="stc_mode" value="album" {if $STC.MODE=="album"}checked{/if}> {'Yes'|translate}</label> -
extensions/Subscribe_to_comments/template/form_outside.tpl
r26144 r26173 1 1 {combine_script id='jquery.colorbox' load='footer' require='jquery' path='themes/default/js/plugins/jquery.colorbox.min.js'} 2 2 {combine_css id='colorbox' path='themes/default/js/plugins/colorbox/style2/colorbox.css'} 3 4 {html_style} 5 #stc_comment input, #stc_standalone input { margin:0 5px !important; } 6 {/html_style} 3 7 4 8 {footer_script require='jquery,jquery.colorbox'} … … 6 10 $('#open_stc_standalone').colorbox({ 7 11 inline: true 12 }); 13 $('#close_stc_standalone').on('click', function(e) { 14 $('#open_stc_standalone').colorbox.close(); 15 e.preventDefault(); 8 16 }); 9 17 … … 17 25 }); 18 26 $('#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 });26 {/if}27 27 28 28 {if !isset($STC_SUBSCRIBED) and $STC.ASK_MAIL} … … 51 51 {if $STC.ON_PICTURE} 52 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>53 <label><input type="radio" name="stc_mode" value="image"> {'this picture'|translate|ucfirst}</label><br> 54 {if $STC.ALLOW_ALBUM_IMAGES}<label><input type="radio" name="stc_mode" value="album-images"> {'all pictures of this album'|translate|ucfirst}</label><br>{/if} 55 <label><input type="radio" name="stc_mode" value="all-images"> {'all pictures of the gallery'|translate|ucfirst}</label><br> 56 56 {else} 57 57 <input type="hidden" name="stc_mode" value="image"> … … 59 59 {else if $STC.ON_ALBUM} 60 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>61 <label><input type="radio" name="stc_mode" value="album"> {'this album'|translate|ucfirst}</label><br> 62 <label><input type="radio" name="stc_mode" value="all-albums"> {'all albums of the gallery'|translate|ucfirst}</label><br> 63 63 {else} 64 64 <input type="hidden" name="stc_mode" value="album"> 65 65 {/if} 66 66 {/if} 67 {if $STC.ALLOW_GLOBAL and $STC.ASK_MAIL}<br>{/if} 68 <span id="stc_submit"> 69 {if $STC.ASK_MAIL} 70 <label>{'Email'|translate} <input type="text" name="stc_mail" size="30"></label> 71 {/if} 67 {if $STC.ASK_MAIL} 68 <label>{'Email'|translate} <input type="text" name="stc_mail" size="30"></label> 69 {/if} 70 <div style="margin-top:0.5em;"> 72 71 <label><input type="submit" name="stc_submit" value="{'Subscribe'|translate}"></label> 73 </span> 72 <a href="#" id="close_stc_standalone">✖ {'Cancel'|translate}</a> 73 </div> 74 74 </form> 75 75 </div>
Note: See TracChangeset
for help on using the changeset viewer.