Ignore:
Timestamp:
Jul 10, 2012, 5:37:33 PM (12 years ago)
Author:
mistic100
Message:

-menu always displayed if user has unactive collections
-better user status checks
-localizations

Location:
extensions/UserCollections/template
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/template/edit.tpl

    r16591 r16597  
    2929
    3030<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
    31 <div class="titrePage{if isset($chronology.TITLE)} calendarTitleBar{/if}">
     31<div class="titrePage">
    3232  <ul class="categoryActions">
    3333  {if !empty($COLLECTION_ACTIONS)}{$COLLECTION_ACTIONS}{/if}
     
    4747  <p class="title"><label for="name">{'Name'|@translate}</label></p>
    4848  <p><input type="text" name="name" id="name" value="{$collection.NAME}" size="60"></p>
    49   <p class="title">{'Public'|@translate}</p>
     49  <p class="title">{'Public collection'|@translate}</p>
    5050  <p>
    5151    <label><input type="radio" name="public" value="0" {if not $collection.PUBLIC}checked="checked"{/if}> {'No'|@translate}</label>
    5252    <label><input type="radio" name="public" value="1" {if $collection.PUBLIC}checked="checked"{/if}> {'Yes'|@translate}</label>
    53     <span id="publicURL" {if not $collection.PUBLIC}style="display:none;"{/if}><span class="button" title="{'Copy to clipborad'|@translate}">&nbsp;</span><span class="url">{$collection.U_PUBLIC}</span></span>
     53    <span id="publicURL" {if not $collection.PUBLIC}style="display:none;"{/if}><span class="button" title="{'Copy to clipboard'|@translate}">&nbsp;</span><span class="url">{$collection.U_PUBLIC}</span></span>
    5454  </p>
    5555  <p>
  • extensions/UserCollections/template/list.tpl

    r16591 r16597  
    44jQuery(".save_col").click(function() {ldelim}
    55  var name = prompt("{'Collection name:'|@translate}");
    6   $(this).attr("href",  $(this).attr("href") +"&name="+ name);
    7   return true;
     6  if (name != null) {ldelim}
     7    $(this).attr("href",  $(this).attr("href") +"&name="+ name);
     8    return true;
     9  } else {ldelim}
     10    return false;
     11  }
    812});
    913{/footer_script}
  • extensions/UserCollections/template/menublock.tpl

    r16591 r16597  
    11<dt>{$block->get_title()}</dt>
    22<dd>
     3{if $block->data.current}
    34  {'Current collection:'|@translate} <b>{$block->data.current.NAME}</b>, {'%d images'|@translate|@sprintf:$block->data.current.NB_IMAGES}
    45        <ul>{strip}
     
    78                {/foreach}
    89        {/strip}</ul>
     10{/if}
    911  <a href="{$block->data.U_LIST}" rel="nofollow">{'See all my collections'|@translate}</a>
    1012</dd>
  • extensions/UserCollections/template/view.tpl

    r16591 r16597  
    44
    55<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
    6 <div class="titrePage{if isset($chronology.TITLE)} calendarTitleBar{/if}">
     6<div class="titrePage">
    77  <ul class="categoryActions">
    88  {if !empty($COLLECTION_ACTIONS)}{$COLLECTION_ACTIONS}{/if}
     
    1414{include file='infos_errors.tpl'}
    1515{/if}
    16 
    17 {if $collection}
    18 <fieldset id="colProperties">
    19   <legend>{'Properties'|@translate}</legend>
    20  
    21   <p class="title">{'Name'|@translate}</p>
    22   <p>{$collection.NAME}</p>
    23   <p class="title">{'Owner'|@translate}</p>
    24   <p>{$OWNER}</p>
    25   <p class="title">{'Creation date'|@translate}</p>
    26   <p>{$collection.DATE_CREATION}</p>
    27 </fieldset>
    28 </form>
    29 {/if}
    30 
    3116
    3217{if !empty($THUMBNAILS)}
Note: See TracChangeset for help on using the changeset viewer.