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='border border-info'; | + | $class='border border-info p-1'; |
$icon='fas fa-info-circle text-info'; | $icon='fas fa-info-circle text-info'; | ||
} else if ($type=='tip'){ | } else if ($type=='tip'){ | ||
− | $class='border border-success'; | + | $class='border border-success p-1'; |
$icon='fas fa-lightbulb text-success'; | $icon='fas fa-lightbulb text-success'; | ||
} else if ($type=='warning'){ | } else if ($type=='warning'){ | ||
− | $class='border border-danger'; | + | $class='border border-danger p-1'; |
$icon='fas fa-exclamation-circle text-danger'; | $icon='fas fa-exclamation-circle text-danger'; | ||
} else if ($type=='example'){ | } else if ($type=='example'){ | ||
− | $class='flex-column bg-light'; | + | $class='flex-column bg-light p-1'; |
} else if ($type=='quote'){ | } else if ($type=='quote'){ | ||
− | $class='text-muted'; | + | $class='text-muted p-1'; |
$style='border:1px solid #aaa;border-left: 8px solid #aaa!important;'; | $style='border:1px solid #aaa;border-left: 8px solid #aaa!important;'; | ||
} else if ($type=='faq'){ | } else if ($type=='faq'){ | ||
− | $class='border border-info font-weight-bold h2'; | + | $class='border border-info font-weight-bold h2 p-2'; |
$icon='fas fa-question-circle text-info'; | $icon='fas fa-question-circle text-info'; | ||
//$style='font-weight:bold;font-size:25px;'; | //$style='font-weight:bold;font-size:25px;'; | ||
} | } | ||
− | $out='<div class="d-flex '.$class.' | + | $out='<div class="d-flex '.$class.' mx-0 my-3" style="'.$style.'">'; |
if($type=='example'){ | if($type=='example'){ | ||
$out.='<p><span class="badge badge-secondary border-0">Beispiel</span></p>'; | $out.='<p><span class="badge badge-secondary border-0">Beispiel</span></p>'; |
Version vom 26. Juli 2021, 13:16 Uhr
informations