Vorlage:HeadCrumb: Unterschied zwischen den Versionen
Aus Afterbuy-Wiki
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) |
||
(12 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
<phptag> | <phptag> | ||
− | if(isset($argv) && is_array($argv) && isset($argv[ | + | if(isset($argv) && is_array($argv) && isset($argv[1]) && trim($argv[1])!=""){ |
$out=array(); | $out=array(); | ||
− | $childs=array(); | + | $childs=array('Hauptseite'=>'<i class="fas fa-home"></i>'); |
− | $parents=explode(',',trim($argv[ | + | $parents=explode(',',trim($argv[1])); |
if(is_array($parents)){ | if(is_array($parents)){ | ||
foreach($parents as $parent){ | foreach($parents as $parent){ | ||
Zeile 24: | Zeile 24: | ||
if(!empty($childs)){ | if(!empty($childs)){ | ||
foreach($childs as $link=>$name){ | foreach($childs as $link=>$name){ | ||
− | $out[]=' | + | $out[]='[['.$link.'|<span class="text-muted font-weight-lighter">'.$name.'</span>]]'; |
} | } | ||
} | } | ||
if(!empty($out)){ | if(!empty($out)){ | ||
− | echo '<div class="">'.implode('<span class="mx-1 px-1"><i class="fas fa-caret-right"></i></span>',$out).'<div>'; | + | // echo '<!-- div class="p-1 px-2 text-muted mb-2">'.implode('<span class="mx-1 px-1"><i class="fas fa-caret-right"></i></span>',$out).'</div-->'; |
} | } | ||
} | } | ||
</phptag> | </phptag> |