Vorlage:Breadcrumb: Unterschied zwischen den Versionen
Aus Afterbuy-Wiki
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) |
||
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> <i class="fas fa-caret-right"></i> <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> <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> <i>{{#replace:{{{1|}}}|/|</i> <i class="fas fa-caret-right"></i> <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> <i>{{#replace:{{{1|}}}|/|</i> <i class="fas fa-caret-right"></i> <i>}}</i></div>}} |
Version vom 3. Mai 2021, 14:55 Uhr