source: extensions/gally/gally-default/template/menubar_categories.tpl @ 12592

Last change on this file since 12592 was 12592, checked in by grum, 12 years ago

feature:2499 - compatibility with Piwigo 2.3

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1<dt>
2  {if isset($U_START_FILTER)}
3  <a id="icon_start_filter" class="button sTipOnTop" href="{$U_START_FILTER}" title="{'display only recently posted photos'|@translate}" rel="nofollow"></a>
4  {/if}
5  {if isset($U_STOP_FILTER)}
6  <a id="icon_stop_filter" class="button sTipOnTop" href="{$U_STOP_FILTER}" title="{'return to the display of all photos'|@translate}"></a>
7  {/if}
8  <a href="{$block->data.U_CATEGORIES}">{'Albums'|@translate}</a>
9</dt>
10
11<dd>
12  {assign var='ref_level' value=0}
13  {foreach from=$block->data.MENU_CATEGORIES item=cat}
14    {if $cat.LEVEL > $ref_level}
15    <ul>
16    {else}
17      </li>
18      {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL}
19    {/if}
20      <li {if $cat.SELECTED}class="selected"{/if}>
21        <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}">{$cat.NAME}</a>
22        {if $cat.count_images > 0}
23        <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if} sTipOnTop" title="{$cat.TITLE}">[{$cat.count_images}]</span>
24        {/if}
25        {if !empty($cat.icon_ts)}
26        <span class="button {if $cat.icon_ts.IS_CHILD_DATE}id_recent_cat_by_child{else}id_recent_cat{/if}"></span>
27        {/if}
28    {assign var='ref_level' value=$cat.LEVEL}
29  {/foreach}
30  {'</li></ul>'|@str_repeat:$ref_level}
31
32  {if isset($block->data.U_UPLOAD)}
33  <ul>
34    <li>
35      <a href="{$block->data.U_UPLOAD}">{'Upload a picture'|@translate}</a>
36    </li>
37  </ul>
38  {/if}
39  <p class="totalImages">{$pwg->l10n_dec('%d photo', '%d photos', $block->data.NB_PICTURE)}</p>
40</dd>
41
42
43
44
45
46
47
48
Note: See TracBrowser for help on using the repository browser.