Vorlage:Collapsed: Unterschied zwischen den Versionen

Aus Afterbuy-Wiki
Wechseln zu:Navigation, Suche
(Die Seite wurde neu angelegt: „<phptag> $text= <<<TEXT {{{text|Lorem ÖÄÜöäü?!"§$%&/()=`´´+*#-_.:,;<> dolor sit amet, consetetur 'sadipscing' elitr, sed diam "nonumy" eirmod tempor…“)
 
Zeile 1: Zeile 1:
 
<phptag>  
 
<phptag>  
$text= <<<TEXT
+
if(is_array($argv) && !empty($argv)){
{{{text|Lorem ÖÄÜöäü?!"§$%&/()=`´´+*#-_.:,;<> dolor sit amet, consetetur 'sadipscing' elitr, sed diam "nonumy" eirmod tempor invidunt ut labore et dolore magna aliquyam}}}
+
  array_shift($argv);
TEXT;
+
  $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-{{{class|light}}}
+
  }
 +
  $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.'">{{{label|Verbergen}}}</htmltag>
+
   data-target="#collapse'.$id.'" aria-expanded="false" aria-controls="collapse'.$id.'">'.$label.'</htmltag>
<div class="collapse show" id="collapse'.$id.'">'.trim($text).'</div>');
+
  <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