Vorlage:Section3: Unterschied zwischen den Versionen

Aus Afterbuy-Wiki
Wechseln zu:Navigation, Suche
(Die Seite wurde neu angelegt: „<div class="p-0 m-0 ml-{{{intent|0}}}"> {{#if: {{{title|}}} | <h2>{{{title|Titel}}} {{#if:{{{subtitle|}}} | <sub class="badge badge-pil badge-secondary p-1" s…“)
 
Zeile 1: Zeile 1:
<div class="p-0 m-0 ml-{{{intent|0}}}">
+
<phptag>
{{#if: {{{title|}}} | <h2>{{{title|Titel}}} {{#if:{{{subtitle|}}} | <sub class="badge badge-pil badge-secondary p-1" style="font-size:9px;">{{{subtitle|}}}</sub> }}</h2> |}}
+
$headline=3;
<div class="p-0 m-0 ml-{{{subintent|0}}}">
+
$title='Titel';
{{:{{{include|}}}}}
+
$intent=$subintent=0;
</div>
+
$out=$subtitle=$include='';
</div>
+
if(isset($argv) && is_array($argv) && !empty($argv)){
 +
if(isset($argv['intent']) && intval($argv['intent'])>0){
 +
$intent=intval($argv['intent']);
 +
}
 +
$out.='<div class="p-0 m-0 ml-{'.$intent.'">';
 +
if(isset($argv['title']) && trim($argv['title'])!=""){
 +
$title=trim($argv['title']);
 +
}
 +
$out.='<h'.$headline.'>'.$title;
 +
if(isset($argv['subtitle']) && trim($argv['subtitle'])!=""){
 +
$subtitle=trim($argv['subtitle']);
 +
$out.='<sub class="badge badge-pil badge-secondary p-1" style="font-size:9px;">'.$subtitle.'</sub>';
 +
}
 +
$out.='</h'.$headline.'>';
 +
if(isset($argv['include']) && trim($argv['include'])!=""){
 +
$include=trim($argv['title']);
 +
if(intval($argv['subintent'])>0){
 +
$subintent=intval($argv['subintent']);
 +
}
 +
$out.='<div class="p-0 m-0 ml-'.$subintent.'">'.transclude($include).'</div>';
 +
}
 +
$out.='</div>';
 +
}
 +
echo $out;
 +
</phptag>

Version vom 28. Juni 2021, 12:16 Uhr

Titel