source: extensions/UserCollections/template/menublock.tpl @ 23866

Last change on this file since 23866 was 23719, checked in by mistic100, 11 years ago

fix mysql error when no photos on the page, remove "create collection" link in menu

File size: 785 bytes
Line 
1<dt>{$block->get_title()}</dt>
2<dd>
3  <p>{strip}
4    {if $block->data.NB_COL == 0}
5      {'You have no collection'|@translate}
6    {else}
7      <a href="{$block->data.U_LIST}">{$pwg->l10n_dec('You have %d collection', 'You have %d collections', $block->data.NB_COL)}</a>
8    {/if}
9  {/strip}</p>
10  {if $block->data.collections}
11  <ul>
12                {foreach from=$block->data.collections item=col}{strip}
13                <li>
14      <a href="{$col.u_edit}">{$col.name}</a>&nbsp;
15      <span class="menuInfoCat">[<span class="nbImagesCollec-{$col.id}">{$col.nb_images}</span>]</span>
16    </li>
17                {/strip}{/foreach}
18    {if isset($block->data.MORE)}<li class="menuInfoCat"><a href="{$block->data.U_LIST}">{'%d more...'|@translate|sprintf:$block->data.MORE}</a></li>{/if}
19        </ul>
20  {/if}
21</dd>
Note: See TracBrowser for help on using the repository browser.