3
hi,
ex. kaifulee theme
<{php}>
$module_list = array(
'resource' => array('resource','how','article','wfdownloads','hope'),
'wordpress' => array('wordpress'),
'bbs' => array('bbs'),
'profile' => array('profile','plan','friends','karma'),
'practice' => array('practice','news','event','webinar','volunteer','xoopspoll'),
);
$xoops_current_module = "";
if( !empty($this->_tpl_vars["xoops_dirname"]) ) {
foreach ( $module_list as $root => $mod ){
if( in_array($this->_tpl_vars["xoops_dirname"], $mod) ) {
$xoops_current_module = $root;
break;
}
}
}
$this->assign('xoops_current_module', $xoops_current_module);
<{/php}>
<ul id="menu_header">
<li class="first">
<a href="<{$xoops_url}>"><{$smarty.const._US_HOME}>a>
li>
<li <{if $xoops_current_module eq 'resource'}> class="current"<{/if}> >
<a href="<{$xoops_url}>/modules/resource/"><{$smarty.const._US_RESOUCE}>a>
li>
<li <{if $xoops_current_module eq 'wordpress'}> class="current"<{/if}> >
<a href="<{$xoops_url}>/modules/wordpress/"><{$smarty.const._US_WORDPRESS}>a>
li>
<li <{if $xoops_current_module eq 'bbs'}> class="current"<{/if}> >
<a href="<{$xoops_url}>/modules/bbs/"><{$smarty.const._US_BBS}>a>
li>
<li <{if $xoops_current_module eq 'practice'}> class="current"<{/if}> >
<a href="<{$xoops_url}>/modules/practice/"><{$smarty.const._US_PRACTICE}>a>
li>
<li <{if $xoops_current_module eq 'profile'}> class="current"<{/if}> >
<a href="<{$xoops_url}>/modules/profile/"><{$smarty.const._US_PROFILE}>a>
li>
ul>
@+