<div class="message <?= $stat_class ?>"> <span class="icon"></span> <?= $message ?> <span class="close" onclick="this.parentElement.style.display='none'"></span> </div>