Vorlage:Collapse: Unterschied zwischen den Versionen

Aus Afterbuy-Wiki
Wechseln zu:Navigation, Suche
Zeile 2: Zeile 2:
 
if(is_array($argv) && !empty($argv)){
 
if(is_array($argv) && !empty($argv)){
 
   array_shift($argv);
 
   array_shift($argv);
   print_r($argv);
+
   $text='Lorem ÖÄÜöäü?!"§$%&/()=`´´+*#-_.:,;<> dolor sit amet, consetetur \'sadipscing\' elitr, sed diam "nonumy" eirmod tempor invidunt ut labore et dolore magna aliquyam';
}
+
  if(isset($argv['text']) && trim($argv['text']!="")){
$text= <<<TEXT
+
    $text=addcslashes(trim($argv['text']),"'");
{{{text|Lorem ÖÄÜöäü?!"§$%&/()=`´´+*#-_.:,;<> dolor sit amet, consetetur 'sadipscing' elitr, sed diam "nonumy" eirmod tempor invidunt ut labore et dolore magna aliquyam}}}
+
  }
TEXT;
+
  $id=md5($text);
$id=md5($text);
+
  $class='light';
echo trim('<htmltag  
+
  if(isset($argv['class']) && trim($argv['class']!="")){
   tagname="button" type="button" class="btn btn-{{{class|light}}}
+
    $class=trim($argv['class']);
 +
  }
 +
  $label='Anzeigen';
 +
  if(isset($argv['label']) && trim($argv['label']!="")){
 +
    $class=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|Anzeigen}}}</htmltag>
+
   data-target="#collapse'.$id.'" aria-expanded="false" aria-controls="collapse'.$id.'">'.$label.'</htmltag>
<div class="collapse" id="collapse'.$id.'">'.trim($text).'</div>');
+
  <div class="collapse" id="collapse'.$id.'">'.$text.'</div>');
 +
}
 
</phptag>
 
</phptag>

Version vom 15. April 2021, 15:10 Uhr

Lorem ÖÄÜöäü?!"§$%&/()=`´´+*#-_.:,;<> dolor sit amet, consetetur 'sadipscing' elitr, sed diam "nonumy" eirmod tempor invidunt ut labore et dolore magna aliquyam