{block name='snippets-alert-list'}
    {* Custom logic to determine if alert list should render because it might render even without content if none of the alert should be shown in the alert list template *}
    {et_shouldShowAlertList alertList=$alertList assign='showAlertList'}
    {if $showAlertList}
        <div id="alert-list" class="{if $container|default:true}container{/if}">
            {foreach $alertList->getAlertlist() as $alert}
                {if $alert->getShowInAlertListTemplate()}
                    {$alert->display()}
                {/if}
            {/foreach}
        </div>
    {/if}
{/block}
