Vorlage:Section3: Unterschied zwischen den Versionen

Aus Afterbuy-Wiki
Wechseln zu:Navigation, Suche
Zeile 1: Zeile 1:
 +
__NOTITLE__
 
<phptag>
 
<phptag>
 
$headline=3;
 
$headline=3;
 
$title='Titel';
 
$title='Titel';
 
$intent=$subintent=0;
 
$intent=$subintent=0;
$includes=$out=$subtitle=$include='';
+
$out=$subtitle=$include='';
 
if(isset($argv) && is_array($argv) && !empty($argv)){
 
if(isset($argv) && is_array($argv) && !empty($argv)){
 
if(isset($argv['intent']) && intval($argv['intent'])>0){
 
if(isset($argv['intent']) && intval($argv['intent'])>0){
Zeile 19: Zeile 20:
 
$out.='</h'.$headline.'>';
 
$out.='</h'.$headline.'>';
 
if(isset($argv['include']) && trim($argv['include'])!=""){
 
if(isset($argv['include']) && trim($argv['include'])!=""){
$include=trim($argv['title']);
+
$include=trim($argv['include']);
if(intval($argv['subintent'])>0){
+
if(isset($argv['subintent']) && intval($argv['subintent'])>0){
 
$subintent=intval($argv['subintent']);
 
$subintent=intval($argv['subintent']);
 
}
 
}
$out.='<div class="p-0 m-0 ml-'.$subintent.'">'.transclude($include).'</div>';
+
                $GLOBALS['include']=true;
$includes=$include;
+
$out.='<div class="p-0 m-0 ml-'.$subintent.'">'.transclude(':'.$include).'</div>';
 +
$GLOBALS['include']=false;
 
}
 
}
 
$out.='</div>';
 
$out.='</div>';

Version vom 28. Juni 2021, 13:45 Uhr

Titel