[ Index ]
 

Code source de CMS made simple 1.0.5

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/modules/MenuManager/templates/ -> minimal_menu.tpl (source)

   1  {* CSS classes used in this template:
   2  .currentpage - The active/current page
   3  .bullet_sectionheader - To style section header
   4  hr.separator - To style the ruler for the separator *} 
   5  {if $count > 0}
   6  <ul class="clearfix">
   7  {foreach from=$nodelist item=node}
   8  {if $node->depth > $node->prevdepth}
   9  {repeat string="<ul>" times=$node->depth-$node->prevdepth}
  10  {elseif $node->depth < $node->prevdepth}
  11  {repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
  12  </li>
  13  {elseif $node->index > 0}</li>
  14  {/if}
  15  
  16  {if $node->current == true}
  17  <li><a href="{$node->url}" class="currentpage"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext} </a>
  18  
  19  {elseif $node->parent == true && $node->depth == 1}
  20  <li class="activeparent"> <a href="{$node->url}" class="activeparent"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext} </a>
  21  
  22  {elseif $node->type == 'sectionheader'}
  23  <li class="sectionheader">{$node->menutext}
  24  
  25  {elseif $node->type == 'separator'}
  26  <li style="list-style-type: none;"> <hr class="separator" />
  27  
  28  {else}
  29  <li><a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext} </a>
  30  
  31  {/if}
  32  
  33  {/foreach}
  34  
  35  {repeat string="</li></ul>" times=$node->depth-1}</li>
  36  </ul>
  37  {/if}


Généré le : Tue Apr 3 18:50:37 2007 par Balluche grâce à PHPXref 0.7