Changeset 25997 for extensions/Slim/template/menubar_categories.tpl
- Timestamp:
- Dec 17, 2013, 11:22:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Slim/template/menubar_categories.tpl
r19205 r25997 1 <span class="dd_wrapper">{'Categories'|@translate}</span>1 <span class="dd_wrapper">{'Albums'|@translate}</span> 2 2 3 <div class="sub" style="width:700px"> 4 {assign var='ref_level' value=0} 5 <div id="menu_cat_act"> 6 <div id="nbImg"> 7 <p class="totalImages">{$pwg->l10n_dec('%d image', '%d images', $block->data.NB_PICTURE)}</p> 8 </div> 9 <div id="filter"> 10 {if isset($U_START_FILTER)} 11 <a href="{$U_START_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'display only recently posted photos'|@translate}" rel="nofollow"> 12 <span class="pwg-icon pwg-icon-filter"> </span> 13 </a> 14 {/if} 15 {if isset($U_STOP_FILTER)} 16 <a href="{$U_STOP_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'return to the display of all photos'|@translate}"><span 17 class="pwg-icon pwg-icon-filter-del"> </span></a> 18 {/if} 19 </div> 20 21 </div> 3 <div class="sub" style="width:700px"> 4 <div id="menu_cat_act"> 5 <div id="nbImg"> 6 <p class="totalImages">{$block->data.NB_PICTURE|@translate_dec:'%d photo':'%d photos'}</p> 7 </div> 8 <div id="filter"> 9 {if isset($U_START_FILTER)} 10 <a href="{$U_START_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'display only recently posted photos'|@translate}" rel="nofollow"> 11 <span class="pwg-icon pwg-icon-filter"> </span> 12 </a> 13 {/if} 14 15 {if isset($U_STOP_FILTER)} 16 <a href="{$U_STOP_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'return to the display of all photos'|@translate}"> 17 <span class="pwg-icon pwg-icon-filter-del"> </span> 18 </a> 19 {/if} 20 </div> 21 </div> 22 <div class="mcol"> 23 {assign var='ref_level' value=0} 24 {foreach from=$block->data.MENU_CATEGORIES item=cat} 25 {if $cat.LEVEL > $ref_level} 26 <ul> 27 {else} 28 </li> 29 {'</ul></li>'|@str_repeat:($ref_level-$cat.LEVEL)} 30 {/if} 31 <li {if $cat.SELECTED}class="selected dontsplit"{/if}class="level{$cat.LEVEL} dontsplit"> 32 <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}" >{$cat.NAME}</a> 33 {if $cat.count_images > 0} 34 <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span> 35 {/if} 22 36 23 24 {foreach from=$block->data.MENU_CATEGORIES item=cat} 25 {if $cat.LEVEL > $ref_level} 26 <ul class="mcol"> 27 {else} 28 29 </li> 30 {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL} 31 {/if} 32 <li {if $cat.SELECTED}class="selected"{/if}class="level{$cat.LEVEL}"> 33 <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}" >{$cat.NAME} [{$cat.count_images}] </a> 34 {assign var='ref_level' value=$cat.LEVEL} 35 {/foreach} 36 {'</li></ul>'|@str_repeat:$ref_level} 37 38 {if isset($block->data.U_UPLOAD)} 39 40 <ul> 41 42 <li> 43 <a href="{$block->data.U_UPLOAD}">{'Upload a picture'|@translate}</a> 44 </li> 45 46 </ul> 47 48 {/if} 49 50 51 </div> 37 {if !empty($cat.icon_ts)} 38 <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="(!)"> 39 {/if} 40 {assign var='ref_level' value=$cat.LEVEL} 41 {/foreach} 42 {'</li></ul>'|@str_repeat:$ref_level} 43 </div> 44 </div>
Note: See TracChangeset
for help on using the changeset viewer.