Vorlage:Collapsed: Unterschied zwischen den Versionen
Aus Afterbuy-Wiki
Admin (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<phptag> $text= <<<TEXT {{{text|Lorem ÖÄÜöäü?!"§$%&/()=`´´+*#-_.:,;<> dolor sit amet, consetetur 'sadipscing' elitr, sed diam "nonumy" eirmod tempor…“) |
Admin (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
<phptag> | <phptag> | ||
− | $text= | + | if(is_array($argv) && !empty($argv)){ |
− | + | array_shift($argv); | |
− | + | $text='Lorem ÖÄÜöäü?!"§$%&/()=`´´+*#-_.:,;<> dolor sit amet, consetetur \'sadipscing\' elitr, sed diam "nonumy" eirmod tempor invidunt ut labore et dolore magna aliquyam'; | |
− | $id=md5($text); | + | if(isset($argv['text']) && trim($argv['text'])!=""){ |
− | echo trim('<htmltag | + | $text=trim($argv['text']); |
− | tagname="button" type="button" class="btn btn- | + | } |
+ | $id=md5($text); | ||
+ | $class='light'; | ||
+ | if(isset($argv['class']) && trim($argv['class'])!=""){ | ||
+ | $class=trim($argv['class']); | ||
+ | } | ||
+ | $label='Anzeigen'; | ||
+ | if(isset($argv['label']) && trim($argv['label'])!=""){ | ||
+ | $label=trim($argv['label']); | ||
+ | } | ||
+ | echo trim('<htmltag | ||
+ | tagname="button" type="button" class="btn btn-'.$class.' | ||
text-decoration-none small" | text-decoration-none small" | ||
data-toggle="collapse" | data-toggle="collapse" | ||
− | data-target="#collapse'.$id.'" aria-expanded="false" aria-controls="collapse'.$id.'"> | + | data-target="#collapse'.$id.'" aria-expanded="false" aria-controls="collapse'.$id.'">'.$label.'</htmltag> |
− | <div class="collapse show" id="collapse'.$id.'">'. | + | <div class="collapse show" id="collapse'.$id.'">'.$text.'</div>'); |
+ | } | ||
</phptag> | </phptag> |
Version vom 15. April 2021, 15:20 Uhr
Lorem ÖÄÜöäü?!"§$%&/()=`´´+*#-_.:,;<> dolor sit amet, consetetur 'sadipscing' elitr, sed diam "nonumy" eirmod tempor invidunt ut labore et dolore magna aliquyam