{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="footer-col payment">
        <div class="footer-box">
            <div class="footer-head">{txt key=TEXT_PAYMENTS_FE}</div>
            <ul class="footer-payment list-inline">
                {foreach $payment_logos as $payment_logo}
                {if file_exists($payment_logo)}
                <li><img src="{$payment_logo}" alt="{$payment_logo|pathinfo:$smarty.const.PATHINFO_FILENAME}" class="img-responsive"></li>
                {/if}
                {/foreach}
            </ul>
        </div>
    </div>
{else}

    {if $_payment_logos|@count != 0}
    <div class="footer-col payment">
        <div class="footer-box">
            <div class="footer-head">{txt key=TEXT_PAYMENTS_FE}</div>
            <ul class="footer-payment list-inline">
                {foreach name=aussen item=module_data from=$_payment_logos}
                    {assign var="image" value="$tpl_path/img/payments/$language/`$module_data.payment_code`.png"}
                    {assign var="image_system" value="$tpl_path_system/img/payments/$language/`$module_data.payment_code`.png"}
                    {if file_exists($image)}
                    <li><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" /></li>
                    {elseif file_exists($image_system)}
                    <li><img src="{$tpl_url_path_system}img/payments/{$language}/{$module_data.payment_code}.png" alt="{$module_data.payment_name}" title="{$module_data.payment_name}" data-toggle="tooltip" /></li>
                    {/if}
                {/foreach}
            </ul>
        </div>
    </div>
    {/if}

{/if}

{/block}