[ 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/ -> simple_navigation.tpl (source)

   1  {* CSS classes used in this template:
   2  .activeparent - The top level parent when a child is the active/current page
   3  li.active0n h3 - n is the depth/level of the node. To style the active page for each level separately. The active page is not clickable.
   4  .clearfix - Used for the unclickable h3 to use the entire width of the li, just like the anchors. See the Tools stylesheet in the default CMSMS installation.
   5  li.sectionheader h3 - To style section header
   6  li.separator - To style the ruler for the separator *} 
   7  
   8  {if $count > 0}
   9  <ul>
  10  {foreach from=$nodelist item=node}
  11  {if $node->depth > $node->prevdepth}
  12  {repeat string="<ul>" times=$node->depth-$node->prevdepth}
  13  {elseif $node->depth < $node->prevdepth}
  14  {repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
  15  </li>
  16  {elseif $node->index > 0}</li>
  17  {/if}
  18  
  19  {if $node->current == true}
  20  <li class="currentpage"><h3><dfn>Current page is {$node->hierarchy}: </dfn>{$node->menutext}</h3>
  21  
  22  {elseif $node->parent == true}
  23  <li class="activeparent"><a class="activeparent" href="{$node->url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>
  24  
  25  {elseif $node->type == 'sectionheader'}
  26  <li class="sectionheader">{$node->menutext}
  27  
  28  {elseif $node->type == 'separator'}
  29  <li class="separator" style="list-style-type: none;"> <hr />
  30  
  31  {else}
  32  <li><a href="{$node->url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}{if $node->target != ''} target="{$node->target}"{/if}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>
  33  
  34  {/if}
  35  
  36  {/foreach}
  37  {repeat string="</li></ul>" times=$node->depth-1}</li>
  38  </ul>
  39  {/if}


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