{block name=boxes_boxFooterPaymentLogos}

{if $smarty.const.FOOTER_CUSTOM_PAYMENT_LOGOS eq 'true' && $smarty.const.CUSTOM_PAYMENT_LOGOS neq ''}

{assign var=payment_logos value=explode(';', $smarty.const.CUSTOM_PAYMENT_LOGOS)}
<div class="payment-logos">
    <p class="headline">{txt key=TEXT_PAYMENTS_FE}:</p>
    <div class="logos">
        {foreach $payment_logos as $payment_logo}
        {if file_exists($payment_logo)}
        <img src="{$payment_logo}" alt="{$payment_logo|pathinfo:$smarty.const.PATHINFO_FILENAME}" class="img-responsive" />
        {/if}
        {/foreach}
    </div>
</div>

{else}

{if $_payment_logos|@count != 0}
<div class="payment-logos">
    <p class="headline">{txt key=TEXT_PAYMENTS_FE}:</p>
    <div class="logos">
        {foreach name=aussen item=module_data from=$_payment_logos}
        {assign var="image" value="`$smarty.const._SRV_WEBROOT`templates/`$smarty.const._STORE_TEMPLATE`/img/payments/`$language`/`$module_data.payment_code`.png"}
        {if file_exists($image)}
        <img src="{$tpl_url_path}img/payments/{$language}/{$module_data.payment_code}.png" alt="{$module_data.payment_name}" title="{$module_data.payment_name}" data-toggle="tooltip" />
        {/if}
        {/foreach}
    </div>
</div>
{/if}

{/if}

{/block}