source: extensions/simple_themes/simple/template/menubar_categories.tpl @ 13546

Last change on this file since 13546 was 13546, checked in by plg, 12 years ago

import theme Simple, version 2.0

  • adaptation of the theme for Piwigo 2.1
File size: 1.1 KB
Line 
1<h3><a href="{$block->data.U_CATEGORIES}">{'Categories'|@translate}</a></h3>
2
3{assign var='ref_level' value=0}
4{foreach from=$block->data.MENU_CATEGORIES item=cat}
5  {if $cat.LEVEL > $ref_level}
6  <ul>
7  {else}
8    </li>
9    {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL}
10  {/if}
11    <li {if $cat.SELECTED}class="selected"{/if}>
12      <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}">{$cat.NAME}</a>
13      {if $cat.count_images > 0}
14      <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span>
15      {/if}
16      {if !empty($cat.icon_ts)}
17      <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" class="icon" alt="(!)">
18      {/if}
19  {assign var='ref_level' value=$cat.LEVEL}
20{/foreach}
21{'</li></ul>'|@str_repeat:$ref_level}
22
23        {if isset($block->data.U_UPLOAD)}
24        <ul>
25                <li>
26                        <a href="{$block->data.U_UPLOAD}">{'Upload a picture'|@translate}</a>
27                </li>
28        </ul>
29        {/if}
30        <p class="totalImages">{$pwg->l10n_dec('%d image', '%d images', $block->data.NB_PICTURE)}</p>
Note: See TracBrowser for help on using the repository browser.