Vorlage:BasePanel: Unterschied zwischen den Versionen

Aus Afterbuy-Wiki
Wechseln zu:Navigation, Suche
Zeile 13: Zeile 13:
 
$class='';
 
$class='';
 
$style='';
 
$style='';
 +
        $contentclass='';
 
 
 
if ($type=='info'){
 
if ($type=='info'){
Zeile 35: Zeile 36:
 
$class='bg-warning p-1 px-2 rounded-pill';
 
$class='bg-warning p-1 px-2 rounded-pill';
 
$icon='fas fa-tools text-dark';
 
$icon='fas fa-tools text-dark';
 +
} else if ($type=='code'){
 +
$class='flex-column bg-light p-1';
 +
                        $contentclass='text-monospace';
 
}
 
}
  
Zeile 45: Zeile 49:
 
}
 
}
 
}
 
}
$out.='<div class="mx-1 px-1 border-0 flex-grow-1">'.$text.'</div></div>';
+
$out.='<div class="mx-1 px-1 border-0 flex-grow-1 '.$contentclass.'">'.$text.'</div></div>';
 
echo $out;
 
echo $out;
 
}
 
}
 
</phptag>
 
</phptag>

Version vom 24. August 2021, 13:52 Uhr

informations