Code: Alles auswählen
if ($idcat == $data['idcat'] || is_array($data['sub'])) {
$tpl->generate('templates/mfc_navi1_on.html');
} else {
$tpl->generate('templates/mfc_navi1_off.html');
}
Code: Alles auswählen
<!-- BEGIN:BLOCK -->
<div id="nav_on" class="nav1"><p><a target="{TARGET}" href="{HREF}">{NAME}</a></p></div>
<!-- END:BLOCK -->
Code: Alles auswählen
<!-- BEGIN:BLOCK -->
<div id="nav_off" class="nav1"><p><a target="{TARGET}" href="{HREF}">{NAME}</a></p></div>
<!-- END:BLOCK -->
Die CSS dafür:
Code: Alles auswählen
#nav_on {background:#D1D1D1; margin:0px; }
#nav_on p {font 10px Verdana,Arial,Helvetica,sans-serif;margin:0px;text-align:left;}
#nav_on a:link, #nav_on a:visited {color: #408080;}
#nav_on a:hover, #nav_on a:active {color: #FF8040;}
#nav_off {margin:0px; border-bottom:1px dotted #BEBEBE;}
#nav_off p {font 10px Verdana,Arial,Helvetica,sans-serif;margin:0px;text-align:left;}
#nav_off a:link, #nav_off a:visited {color: #408080;}
#nav_off a:hover, #nav_off a:active {color: #FF8040;}
.nav1 {padding:2px 0px 4px 5px;}
.nav2 {padding:2px 0px 4px 15px;}
.nav3 {padding:2px 0px 4px 25px;}
Code: Alles auswählen
<!-- NAVI COLUMN -->
<td align="left"><!-- Generated by Contenido 4.4.4-->
templates/mfc_navi1_on.html<!-- Generated by Contenido 4.4.4-->
templates/mfc_navi2_on.html<!-- Generated by Contenido 4.4.4-->
templates/mfc_navi2_off.html<!-- Generated by Contenido 4.4.4-->
templates/mfc_navi1_off.html</td>