xoops system templates

xoops design team
original image: openclipart.org, bearbeitet

hier: system_block_mainmenu.html

Du benutzt XOOPS und willst ein W3C valides Hauptmenü als ungeordnete Liste? Mit Kennzeichnung des aktiven Links? Keine „leeren“ <li> … </li> -Tags?

mainmenu

  • clean, valid w3c menu structure as an unordered list,
  • id="active" on page/module which is (guess what) active without core hacks
  • no empty <li></li> tags when there is no submenu

<!-- system_block_mainmenu.html -studioC- Version 2.01 = 07-13-07 -->

<ul id="mainmenu">
<li><a <{if $xoops_dirname == "system"}> id="active"<{/if}>
class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}></a></li>
<{foreach item=module from=$block.modules}>
<li><a <{if $xoops_dirname == $module.directory}> id="active"<{/if}> class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a></li>
<{if $module.sublinks == 0}>
<{else}>
<{foreach item=sublink from=$module.sublinks}>
<li><a class="menuSub" href="<{$sublink.url}>"><{$sublink.name}></a></li>
<{/foreach}>
<{/if}>
<{/foreach}>
</ul>


geht gut, gelle?