Ignore:
Timestamp:
Dec 24, 2013, 1:25:03 AM (10 years ago)
Author:
mistic100
Message:

change layout of form (use colorbox for standalone) + cleaning of subscriptions page

File:
1 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>
    219
     20{else}
    321<p>
    422  {'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>
    1129    {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>
    1331    {/if}
    14   {elseif $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>
    1836    {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>
    2038    {/if}
    2139  {/if}
    2240</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>
    4644
    4745{/if}
Note: See TracChangeset for help on using the changeset viewer.