Vorlage:Collapse: Unterschied zwischen den Versionen

Aus Afterbuy-Wiki
Wechseln zu:Navigation, Suche
 
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 4: Zeile 4:
 
   $text='Lorem ÖÄÜöäü?!"§$%&/()=`´´+*#-_.:,;<> dolor sit amet, consetetur \'sadipscing\' elitr, sed diam "nonumy" eirmod tempor invidunt ut labore et dolore magna aliquyam';
 
   $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'])!=""){
 
   if(isset($argv['text']) && trim($argv['text'])!=""){
     $text=addcslashes(trim($argv['text']),"'");
+
     $text=trim($argv['text']);
 
   }
 
   }
   $id=md5($text);
+
   $id=md5($text.mt_rand());
 
   $class='light';
 
   $class='light';
 
   if(isset($argv['class']) && trim($argv['class'])!=""){
 
   if(isset($argv['class']) && trim($argv['class'])!=""){
Zeile 15: Zeile 15:
 
     $label=trim($argv['label']);
 
     $label=trim($argv['label']);
 
   }
 
   }
   echo trim('<htmltag
+
   echo trim('<html><button type="button" class="text-left bg-light p-2 text-decoration-none small w-100 border border-secondary"  
  tagname="button" type="button" class="btn btn-'.$class.'
 
  text-decoration-none small"  
 
 
   data-toggle="collapse"  
 
   data-toggle="collapse"  
   data-target="#collapse'.$id.'" aria-expanded="false" aria-controls="collapse'.$id.'">'.$label.'</htmltag>
+
   data-target="#collapse'.$id.'" aria-expanded="false" aria-controls="collapse'.$id.'"><i class="fas fa-bars"></i>&nbsp;&nbsp;'.$label.'</button></html>
 
   <div class="collapse" id="collapse'.$id.'">'.$text.'</div>');
 
   <div class="collapse" id="collapse'.$id.'">'.$text.'</div>');
 
}
 
}
 
</phptag>
 
</phptag>

Aktuelle Version vom 21. April 2021, 11:33 Uhr

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