<?php
$alerts = new Barebone\Bootstrap\Alerts();
$alerts->alert('Well done green light for you.', 'success');
$alerts->alert('Change a few things up and try submitting again.', 'danger');
$alerts->alert('Better check yourself, you\'re not looking too good. ', 'warning');
$alerts->alert('This alert needs your attention, but it\'s not super important. ', 'info');
To make the alert dismissable set the third parameter to true
<?php
$alerts = new Barebone\Bootstrap\Alerts();
$alerts->alert('Well done green light for you.', 'success', true);
$alerts->alert('Change a few things up and try submitting again.', 'danger', true);
$alerts->alert('Better check yourself, you\'re not looking too good. ', 'warning', true);
$alerts->alert('This alert needs your attention, but it\'s not super important. ', 'info', true);
<?php
echo Barebone\Bootstrap::alert('Well done green light for you.', 'success', true);
echo Barebone\Bootstrap::alert('Change a few things up and try submitting again.', 'danger', true);
echo Barebone\Bootstrap::alert('Better check yourself, you\'re not looking too good. ', 'warning', true);
echo Barebone\Bootstrap::alert('This alert needs your attention, but it\'s not super important. ', 'info', true);