ich bin leider noch ein PHP Anfänger, aber ich würde gerne innerhalb der Meta Navigation einen Separator zwischen den Links ausgeben, und zwar ein "|". Die Ausgabe soll statt ABC XYZ so sein ABC | XYZ. Es soll aber auch nicht | ABC | XYZ | werden.
Wo innerhalb des Codes des Meta Navigation Moduls müsste also ein solcher Separator reingebaut werden?
Navigation_Meta
Code: Alles auswählen
<?php
// include Contenido_FrontendNavigation class
cInclude('classes', 'Contenido_FrontendNavigation/Contenido_FrontendNavigation.class.php');
// get start idcat
$iIdcatStart = getEffectiveSetting('navigation', 'idcat-meta', 2);
//check if there is a template instance
if (!isset($tpl) || !is_object($tpl)) {
    $tpl = new Template();
}
// reset template object
$tpl->reset();
// build navigation
try {
    $oFeNav = new Contenido_FrontendNavigation($db, $cfg, $client, $lang, $cfgClient);
    $oContenidoCategories = $oFeNav->getSubCategories($iIdcatStart, true);
    if ($oContenidoCategories->count() > 0) {
        foreach ($oContenidoCategories as $oContenidoCategory) {
            $tpl->set('d', 'url', 'front_content.php?idcat='.$oContenidoCategory->getIdCat());
            $tpl->set('d', 'title', $oContenidoCategory->getCategoryLanguage()->getName());
            $tpl->set('d', 'label', $oContenidoCategory->getCategoryLanguage()->getName());
            $tpl->next();
        }
        $sItems = $tpl->generate('templates/navigation_meta_item.html', true, false);
        $tpl->reset();
        $tpl->set('s', 'items', $sItems);
        $tpl->generate('templates/navigation_meta_container.html');
    }
} catch (Exception $e) {
    echo 'Shit happens: ' . $e->getMessage() . ': ' . $e->getFile() . ' at line '.$e->getLine() . ' ('.$e->getTraceAsString().')';
}
?>
Code: Alles auswählen
<a href="{url}" title="{title}" class="lang">{label}</a>Code: Alles auswählen
{items}