Code: Alles auswählen
<?php
/***********************************************
* Bottom Navigation Output
*
* Author : Willi Man
* Copyright : four for business AG
* Version : 1.0
* Created : 17-03-2005
* Modified : 05-08-2005, Andreas Lindner
************************************************/
#System properties in use:
#Type: navigation, Name: idcat_bottomnavi
#Contains idcat of tree to be displayed in bottom navigation
#Includes
cInclude("frontend", "includes/functions.navigation.php");
cInclude('classes', 'class.template.php');
#Get settings
$cApiClient = new cApiClient($client);
$catStart = $cApiClient->getProperty('navigation', 'idcat_bottomnavi');
if (!is_object($oClient)) {
$oClient = new cApiClient($client);
}
#Get sub categories
$navigation = array ();
$navigation = createNavigationArray($catStart, $db);
#Output sub categories
$output = '';
if (count($navigation) > 0) {
foreach ($navigation as $key => $data) {
$output .= '<li><a href="'.$sess->url("front_content.php?idcat=".$data['idcat']).'" title="'.$data['name'].'">'.$data['name'].' |</a> </li>';
}
}
if (strlen($output) > 0) {
$output = substr($output, 0, strlen($output) - 3);
}
echo $output;
?>
Code: Alles auswählen
# Warning Line 108, Column 188: character "<" is the first character of a delimiter but occurred as data.
…takt/" title="Kontakt">Kontakt |</a> </
✉
This message may appear in several cases:
* You tried to include the "<" character in your page: you should escape it as "<"
* You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
* Another possibility is that you forgot to close quotes in a previous tag.
# Error Line 110, Column 4: end tag for "li" omitted, but OMITTAG NO was specified.
</ul>
✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
# Info Line 108, Column 134: start tag was here.
…" title="Sitemap">Sitemap |</a> </li><li><a href="/kontakt/" title="Kontakt">
Code: Alles auswählen
<ul class="footernavi"><li><a href="/test/" title="Test">Test |</a> </li><li><a href="/sitemap/" title="Sitemap">Sitemap |</a> </li><li><a href="/kontakt/" title="Kontakt">Kontakt |</a> </
</ul>
Kann mir bitte jemand einen Rat geben wo ich das Element genau platzieren muss? Vielen Dank!
Den Navigationspfad würde ich auch gerne als Listenelemente definieren. Hier fehlt mir aber der komplette Durchblick wo ich im Code des Standardmoduls <li> und </li> einfügen müsste vielleich kann mir da auch einer von Euch weiterhelfen. In diesem Zusammenhang noch eine kurze Frage als Separator habe ich :: definiert das ist ok. :: hätte ich aber auch gerne vor dem ersten Eintrag. Wo kann ich dies eingeben. Zur Verwendung kommt das Standardmodul Navigationspfad.
Vielen Dnak für Eure Hilfe
Gruss
Clemens