{if isset($footersecondaryNavbarHtmlCache)}
    {$footersecondaryNavbarHtmlCache}
{else}
    {if isset($rsFooter.secondary) && $rsFooter.secondary}
        <ul class="footer-nav footer-nav-h">
            {foreach from=$rsFooter.secondary item=$footerLink}
                <li {if isset($footerLink.type) && ($footerLink.type == "language" || $footerLink.type == "currencies")} class="dropdown dropup"{/if} {if isset($footerLink.type) && $footerLink.type == "language"}data-language-select{/if}>
                    <a tabindex="0" {if $footerLink.custom_classes}class="{$footerLink.custom_classes}"{/if} {if isset($footerLink.type) && ($footerLink.type == "language" || $footerLink.type == "currencies")}data-toggle="dropdown"{/if} href="{if $footerLink.url}{$footerLink.url}{else}#{/if}" {if isset($footerLink.target_blank) && $footerLink.target_blank}target="_blank"{/if} {if isset($footerLink.rel) && $footerLink.rel}rel="{$footerLink.rel}"{/if} {if isset($footerLink.ariaLabel) && $footerLink.ariaLabel}aria-label="{$footerLink.ariaLabel}"{elseif (isset($footerLink.name) && $footerLink.name) && $footerLink.style == "icon"}aria-label="{$footerLink.name}"{/if}>
                        {if isset($footerLink.icon) && $footerLink.icon}
                            <i class="{$footerLink.icon}"></i>
                        {elseif isset($footerLink.predefined_icon) && $footerLink.predefined_icon}
                            {$footerLink.predefined_icon}
                        {elseif isset($footerLink.media) && $footerLink.media}
                            {$footerLink.media}
                        {/if}
                        {if isset($footerLink.type) && $footerLink.type == "language" && isset($footerLink.name) && $footerLink.name && $footerLink.style != "icon"}
                            {$footerLink.name}
                        {elseif isset($footerLink.name) && $footerLink.name && $footerLink.style != "icon"}
                            <span>{$footerLink.name}</span>
                        {/if}
                        {if isset($footerLink.type) && ($footerLink.type == "language" || $footerLink.type == "currencies")}
                            <b class="ls ls-caret"></b>
                        {/if}
                    </a>
                    {if isset($footerLink.type) && $footerLink.type == "language"}
                        {include file="templates/$template/includes/common/language-chooser-dropdown.tpl"}
                    {/if}
                    {if isset($footerLink.type) && $footerLink.type == "currencies"}
                        {include file="templates/$template/includes/common/currency-dropdown.tpl"}
                    {/if}
                </li>
            {/foreach}
        </ul>
    {/if}
{/if}