Changeset 26173


Ignore:
Timestamp:
Dec 24, 2013, 2:11:22 PM (10 years ago)
Author:
mistic100
Message:

improve lisiblity

Location:
extensions/Subscribe_to_comments/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Subscribe_to_comments/template/form_inside.tpl

    r26144 r26173  
    1919
    2020{else}
    21 <p>
     21<p id="stc_comment">
    2222  {'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>
    2424  {if $STC.ON_PICTURE}
    2525    {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>
    2929    {else}
    3030      <label><input type="radio" name="stc_mode" value="image" {if $STC.MODE=="image"}checked{/if}> {'Yes'|translate}</label>
     
    3232  {else if $STC.ON_ALBUM}
    3333    {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>
    3636    {else}
    3737      <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  
    11{combine_script id='jquery.colorbox' load='footer' require='jquery' path='themes/default/js/plugins/jquery.colorbox.min.js'}
    22{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}
    37
    48{footer_script require='jquery,jquery.colorbox'}
     
    610  $('#open_stc_standalone').colorbox({
    711    inline: true
     12  });
     13  $('#close_stc_standalone').on('click', function(e) {
     14    $('#open_stc_standalone').colorbox.close();
     15    e.preventDefault();
    816  });
    917
     
    1725  });
    1826  $('#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}
    2727
    2828{if !isset($STC_SUBSCRIBED) and $STC.ASK_MAIL}
     
    5151  {if $STC.ON_PICTURE}
    5252    {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>
    5656    {else}
    5757      <input type="hidden" name="stc_mode" value="image">
     
    5959  {else if $STC.ON_ALBUM}
    6060    {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>
    6363    {else}
    6464      <input type="hidden" name="stc_mode" value="album">
    6565    {/if}
    6666  {/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;">
    7271      <label><input type="submit" name="stc_submit" value="{'Subscribe'|translate}"></label>
    73     </span>
     72      <a href="#" id="close_stc_standalone">&#10006; {'Cancel'|translate}</a>
     73    </div>
    7474  </form>
    7575</div>
Note: See TracChangeset for help on using the changeset viewer.