Ignore:
Timestamp:
Nov 28, 2012, 11:25:45 AM (11 years ago)
Author:
Miklfe
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Slim/template/menubar_categories.tpl

    r18811 r19205  
    1         <span id="menu_start">
    2                 <a href="{$block->data.U_CATEGORIES}">{'Albums'|@translate}</a>
    3 </span>
    4 
    5 
    6 <li class="liSub" >
    7 
    81        <span class="dd_wrapper">{'Categories'|@translate}</span>
    92       
    10                 <div class="sub" style="width:700px;">
     3                <div class="sub" style="width:700px">
    114                {assign var='ref_level' value=0}
    125                        <div id="menu_cat_act">
     
    2114                                        {/if}
    2215                                        {if isset($U_STOP_FILTER)}
    23                                         <a href="{$U_STOP_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'return to the display of all photos'|@translate}"><span class="pwg-icon pwg-icon-filter-del"> </span></a>
     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>
    2418                                        {/if}
    2519                                </div>
    2620
    2721                        </div>
    28                        
    29                        
     22                               
     23                               
     24                                {foreach from=$block->data.MENU_CATEGORIES item=cat}
     25                                {if $cat.LEVEL > $ref_level}
     26                                <ul class="mcol">
     27                                {else}
    3028
    31                        
    32 {foreach from=$block->data.MENU_CATEGORIES item=cat}
    33         {if $cat.LEVEL > $ref_level}
     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}   
    3437
    35                 <ul class="mcol">
    36         {else}
    37                 </li>
    38                         {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL}
    39         {/if}
    40                    <li {if $cat.SELECTED}class="selected"{/if}class="level{$cat.LEVEL}">
    41                    <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}" >{$cat.NAME}   [{$cat.count_images}] </a>
    42                   {assign var='ref_level' value=$cat.LEVEL}
    43                 {/foreach}
    44         {'</li></ul>'|@str_repeat:$ref_level}   
     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>
    4545
    46 
    47 
    48        
    49                 {if isset($block->data.U_UPLOAD)}
    50         <ul>
    51                         <li>
    52                                 <a href="{$block->data.U_UPLOAD}">{'Upload a picture'|@translate}</a>
    53                         </li>
    54         </ul>
    55                
    56         {/if}
     46                                        </ul>
     47                                               
     48                                        {/if}
    5749               
    5850
Note: See TracChangeset for help on using the changeset viewer.