Vorlage:AB: Unterschied zwischen den Versionen
Aus Afterbuy-Wiki
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) |
||
Zeile 2: | Zeile 2: | ||
if(is_array($argv) && !empty($argv)){ | if(is_array($argv) && !empty($argv)){ | ||
array_shift($argv); | array_shift($argv); | ||
− | $class=""; | + | $class="label"; |
if(isset($argv[0]) && trim($argv[0])!=""){ | if(isset($argv[0]) && trim($argv[0])!=""){ | ||
$class='ab_'.trim($argv[0]); | $class='ab_'.trim($argv[0]); | ||
} | } | ||
− | $content=""; | + | $content="label"; |
if(isset($argv[1]) && trim($argv[1])!=""){ | if(isset($argv[1]) && trim($argv[1])!=""){ | ||
− | $content=str_replace('(?)','<span style="color:#547392;"><i class="fas fa-question-circle"></i></span>',trim($argv[1])); | + | $content=str_replace('(?)','<html><span style="color:#547392;"><i class="fas fa-question-circle"></i></span></html>',trim($argv[1])); |
} | } | ||
echo '<html><span class="'.$class.'"></html>'.$content.'<html></span></html>'; | echo '<html><span class="'.$class.'"></html>'.$content.'<html></span></html>'; | ||
} | } | ||
</phptag> | </phptag> |
Version vom 2. Juni 2021, 09:54 Uhr
label