<div class="row">
    <div class="span12">
        <div class="<?php echo $class;?>">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
            <h4 class="alert-heading"><?php echo $title;?></h4>
            <p><?php echo $alert;?></p>    
        </div>
    </div>
</div>