Vorlage:BasePanel: Unterschied zwischen den Versionen

Aus Afterbuy-Wiki
Wechseln zu:Navigation, Suche
Zeile 36: Zeile 36:
 
$class='bg-warning p-1 px-2 rounded-pill';
 
$class='bg-warning p-1 px-2 rounded-pill';
 
$icon='fas fa-tools text-dark';
 
$icon='fas fa-tools text-dark';
} else if ($type=='code'){
+
} else if ($type=='code' || $type=='codeexample'  ){
 
$class='flex-column bg-light p-1';
 
$class='flex-column bg-light p-1';
 
                         $contentclass='text-monospace text-dark';
 
                         $contentclass='text-monospace text-dark';
Zeile 43: Zeile 43:
  
 
$out='<div class="d-flex '.$class.' mx-0 my-3" style="'.$style.'">';
 
$out='<div class="d-flex '.$class.' mx-0 my-3" style="'.$style.'">';
if($type=='example' || $type=='code' ){
+
if($type=='example' || $type=='codeexample' ){
 
$out.='<p><span class="badge badge-secondary border-0">Beispiel</span></p>';
 
$out.='<p><span class="badge badge-secondary border-0">Beispiel</span></p>';
 
} else {
 
} else {

Version vom 27. Oktober 2021, 07:31 Uhr

informations