Vorlage:Breadcrumb: Unterschied zwischen den Versionen

Aus Afterbuy-Wiki
Wechseln zu:Navigation, Suche
Zeile 1: Zeile 1:
 +
<phptag>
 +
if(isset($argv) && is_array($argv) && isset($argv[1]) && trim($argv[1])!=""){
 +
$replacements=array('„','"');
 +
$crumb=str_replace($replacements,'',trim($argv[1]));
 +
$delimiters=array('//','/','->','>','>>');;
 +
foreach($delimiters as $delimiter){
 +
    $crumb=str_replace($delimiter,'|:|',$crumb); 
 +
}
 +
$crumb=str_replace('|:|','</i>&nbsp;&nbsp; <i class="fas fa-caret-right"></i> &nbsp;&nbsp; <i>',$crumb);
 +
echo '<div class="shadow-sm border p-2 my-3 bg-light text-muted px-3 mx-0"><i class="fas fa-external-link-alt"></i>&nbsp;&nbsp;<i>'.$crumb.'</i></div>'; 
 +
}
 +
</phptag>
 +
 
{{#if: {{{1|}}} |<div class="shadow-sm border p-2 my-3 bg-light text-muted px-3 mx-0"><i class="fas fa-external-link-alt"></i>&nbsp;&nbsp;<i>{{#replace:{{{1|}}}|/|</i>&nbsp;&nbsp; <i class="fas fa-caret-right"></i> &nbsp;&nbsp; <i>}}</i></div>}}
 
{{#if: {{{1|}}} |<div class="shadow-sm border p-2 my-3 bg-light text-muted px-3 mx-0"><i class="fas fa-external-link-alt"></i>&nbsp;&nbsp;<i>{{#replace:{{{1|}}}|/|</i>&nbsp;&nbsp; <i class="fas fa-caret-right"></i> &nbsp;&nbsp; <i>}}</i></div>}}

Version vom 3. Mai 2021, 14:55 Uhr