Vorlage:Section3: Unterschied zwischen den Versionen
Aus Afterbuy-Wiki
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
+ | __NOTITLE__ | ||
<phptag> | <phptag> | ||
$headline=3; | $headline=3; | ||
$title='Titel'; | $title='Titel'; | ||
$intent=$subintent=0; | $intent=$subintent=0; | ||
− | + | $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[' | + | $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; |
− | $ | + | $out.='<div class="p-0 m-0 ml-'.$subintent.'">'.transclude(':'.$include).'</div>'; |
+ | $GLOBALS['include']=false; | ||
} | } | ||
$out.='</div>'; | $out.='</div>'; |