Vorlage:BasePanel: Unterschied zwischen den Versionen
Aus Afterbuy-Wiki
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) |
||
Zeile 15: | Zeile 15: | ||
if ($type=='info'){ | if ($type=='info'){ | ||
− | $class=' | + | $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=' | + | $class='border border-success'; |
− | $icon='fas fa-lightbulb'; | + | $icon='fas fa-lightbulb text-success'; |
} else if ($type=='warning'){ | } else if ($type=='warning'){ | ||
− | $class=' | + | $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=' | + | $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 | + | $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 |