{block name='layout-header-shop-nav-compare'}
    {$productCount = count(JTL\Session\Frontend::getCompareList()->oArtikel_arr)}
    <div id="shop-nav-compare"
        title="{lang key='compare'}"
        class="nav-item dropdown{if $nSeitenTyp === $smarty.const.PAGE_VERGLEICHSLISTE} active{/if}{if $productCount === 0} d-none{/if}">
        {block name='layout-header-shop-nav-compare-link'}
            <a href="#" class="nav-link" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="{lang key='compare'}" aria-controls="comparelist-dropdown-container" role="button">
                <i class="{et_getIcon key='comparelist'} et-comparelist-icon">
                    <span id="comparelist-badge" class="et-count-badge" title="{$productCount}">
                        {$productCount}
                    </span>
                </i>
            </a>
        {/block}
        {block name='layout-header-shop-nav-compare-dropdown'}
            <div id="comparelist-dropdown-container" class="dropdown-menu dropdown-menu-right lg-min-w-lg">
                <div id='comparelist-dropdown-content'>
                    {block name='layout-header-shop-nav-compare-include-comparelist-dropdown'}
                        {include file='snippets/comparelist_dropdown.tpl'}
                    {/block}
                </div>
            </div>
        {/block}
    </div>
{/block}
