{#
{if isset($messages)}
{assign "alert_style" "alert-info"}
{assign "alert_icon" "fas fa-info"}
{foreach $messages as $msg}
{if isset($msg.color) && $msg.color == "red"}
{assign "alert_style" "alert-danger"}
{assign "alert_icon" "fas fa-exclamation"}
{elseif isset($msg.color) && ( $msg.color == "green" || $msg.color == "darkgreen")}
{assign "alert_style" "alert-success"}
{assign "alert_icon" "fas fa-check"}
{elseif isset($msg.color) && ($msg.color == "yellow" || $msg.color == "orange")}
{assign "alert_style" "alert-warning"}
{assign "alert_icon" "fas fa-bell"}
{/if}
{/foreach}
#}
{# Here will be the real content be injected#}
{% block content %}
{% endblock %}
{if !empty($messages_div_title)}