Vorlage:BasePanel: Unterschied zwischen den Versionen
Aus Afterbuy-Wiki
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) |
||
Zeile 24: | Zeile 24: | ||
$icon='fas fa-exclamation-circle text-danger'; | $icon='fas fa-exclamation-circle text-danger'; | ||
} else if ($type=='example'){ | } else if ($type=='example'){ | ||
− | $class='bg-light'; | + | $class='flex-column bg-light'; |
} else if ($type=='quote'){ | } else if ($type=='quote'){ | ||
$class='text-muted'; | $class='text-muted'; | ||
Zeile 34: | Zeile 34: | ||
} | } | ||
− | $out='<div class="'.$class.' p-1 mx-0 my-3" style="'.$style.'" | + | $out='<div class="d-flex '.$class.' p-1 mx-0 my-3" style="'.$style.'">'; |
if($type=='example'){ | if($type=='example'){ | ||
$out.='<td width="100%" class="mx-2 px-2 mb-2 border-0"><span class="badge badge-secondary border-0">Beispiel</span></td></tr><tr>'; | $out.='<td width="100%" class="mx-2 px-2 mb-2 border-0"><span class="badge badge-secondary border-0">Beispiel</span></td></tr><tr>'; | ||
} else { | } else { | ||
if($icon!=""){ | if($icon!=""){ | ||
− | $out.='< | + | $out.='<div><i class="'.$icon.'"></i></div>'; |
} | } | ||
} | } | ||
− | $out.='< | + | $out.='<div class="mx-2 px-2 border-0 flex-grow-1">'.$text.'</div></div>'; |
echo $out; | echo $out; | ||
} | } | ||
</phptag> | </phptag> |
Version vom 26. Juli 2021, 12:45 Uhr
informations