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

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

import theme Simple version 2.3

  • if cl_conflit is used, don't add jQuery.noConflict
  • fix the possibility to toggle visibility of image informations
  • show logout link when connected - thanks to gbo
  • update jquery to 1.4.4
  • backport commit from piwigo: r6244, r6430 & r6438
  • add gitignore
  • update javascripts + add script to combine/minify
  • apply r6594 from piwigo's trunk
  • move jquery in the header, using known_script
  • translation for the menu title
  • add 1px icon start_filter.png to avoid loading error with rvtree plugin
  • margin for error & info divs
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.