Vorlage:BasePanel: Unterschied zwischen den Versionen

Aus Afterbuy-Wiki
Wechseln zu:Navigation, Suche
Zeile 15: Zeile 15:
 
 
 
if ($type=='info'){
 
if ($type=='info'){
$class='alert-info';
+
$class='border border-info';
$icon='fas fa-info-circle';
+
$icon='fas fa-info-circle text-info';
 
} else if ($type=='tip'){
 
} else if ($type=='tip'){
$class='alert-success';
+
$class='border border-success';
$icon='fas fa-lightbulb';
+
$icon='fas fa-lightbulb text-success';
 
} else if ($type=='warning'){
 
} else if ($type=='warning'){
$class='alert-danger';
+
$class='border border-danger';
$icon='fas fa-exclamation-circle';
+
$icon='fas fa-exclamation-circle text-danger';
 
} else if ($type=='example'){
 
} else if ($type=='example'){
 
$class='bg-light';
 
$class='bg-light';
 
} else if ($type=='quote'){
 
} else if ($type=='quote'){
$class='bg-light text-muted';
+
$class='border border-secondary text-muted';
 
$style='border-left: 6px solid #ddd;';
 
$style='border-left: 6px solid #ddd;';
 
}
 
}
  
$out='<div class="'.$class.' p-1 mx-0 my-3 shadow-sm" style="'.$style.'"><table class="p-0 m-0"><tr>';
+
$out='<div class="'.$class.' p-1 mx-0 my-3" style="'.$style.'"><table class="p-0 m-0"><tr>';
 
if($type=='example'){
 
if($type=='example'){
 
$out.='<td width="100%" class="mx-2 px-2 mb-2"><span class="badge badge-secondary">Beispiel</span></td></tr><tr>';
 
$out.='<td width="100%" class="mx-2 px-2 mb-2"><span class="badge badge-secondary">Beispiel</span></td></tr><tr>';

Version vom 21. April 2021, 09:48 Uhr

informations