[ Index ] |
|
Code source de CMS made simple 1.0.5 |
1 {* CSS classes used in this template: 2 #menuwrapper - The id for the <div> that the menu is wrapped in. Sets the width, background etc. for the menu. 3 #primary-nav - The id for the <ul> 4 .menuparent - The class for each <li> that has children. 5 .menuactive - The class for each <li> that is active or is a parent (on any level) of a child that is active. *} 6 {if $count > 0} 7 <div id="menuwrapper"> 8 <ul id="primary-nav"> 9 {foreach from=$nodelist item=node} 10 {if $node->depth > $node->prevdepth} 11 12 {repeat string="<ul>" times=$node->depth-$node->prevdepth} 13 {elseif $node->depth < $node->prevdepth} 14 15 {repeat string="</li></ul>" times=$node->prevdepth-$node->depth} 16 </li> 17 {elseif $node->index > 0}</li> 18 {/if} 19 {if $node->parent == true or ($node->current == true and $node->haschildren == true)} 20 <li class="menuactive menuparent"><a class="menuactive menuparent" 21 {elseif $node->current == true} 22 <li class="menuactive"><a class="menuactive" 23 {elseif $node->haschildren == true} 24 <li class="menuparent"><a class="menuparent" 25 {elseif $node->type == 'sectionheader'} 26 <li class="sectionheader"><span> {$node->menutext} </span> 27 {elseif $node->type == 'separator'} 28 <li style="list-style-type: none;"> <hr class="separator" /> 29 {else} 30 <li><a 31 {/if} 32 {if $node->type != 'sectionheader' and $node->type != 'separator'} 33 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 ne ""} target="{$node->target}"{/if}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a> 34 {elseif $node->type == 'sectionheader'} 35 ><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a> 36 {/if} 37 38 {/foreach} 39 40 {repeat string="</li></ul>" times=$node->depth-1} </li> 41 </ul> 42 <div class="clearb"></div> 43 </div> 44 {/if}
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Tue Apr 3 18:50:37 2007 | par Balluche grâce à PHPXref 0.7 |