<div class="et-menu-item et-menu-sitemap col-auto{if $et_MenuSitemap.alignRight} et-menu-item-align-right{/if}{if $et_BaseWidget.cssClass !== ''} {$et_BaseWidget.cssClass}{/if}" id="et-menu-main-item-{$et_BaseWidget.id}" data-menu-size="{$et_MenuSitemap.size}" data-menu-navigate="false" role="menuitem" aria-expanded="false" role="menuitem" tabindex="0"{if !empty($et_MenuSitemap.image.src)} style="background-image: url('{if !empty($et_MenuSitemap.image.srcWebP)}{$et_MenuSitemap.image.srcWebP}{else}{$et_MenuSitemap.image.src}{/if}');"{/if}>
    {block name='et-menu-sitemap-main-link'}
        <a class="et-menu-item-link no-style">
            <div class="et-menu-item-title">
                {if empty($et_MenuSitemap.label.value)}
                    {if !empty($et_MenuSitemap.icon)}<i class="{$et_MenuSitemap.icon}"></i>{/if}<span>{lang key="sitemap" section="global"}</span>
                {else}
                    {if !empty($et_MenuSitemap.icon)}<i class="{$et_MenuSitemap.icon}"></i>{/if}{include file="widgets/base/textfield.tpl" value=$et_MenuSitemap.label type="span"}
                {/if}
            </div>
        </a>
    {/block}
    {if $et_MenuSitemap.loadAsync && !$et_MenuSitemap.isAjax}
        {block name='et-menu-sitemap-main-content-loader'}
            <div class="et-menu-item-content et-menu-sitemap-main-content d-none" data-et-menu-async-load="{$et_BaseWidget.id}">
                <div class="et-menu-async-loader"><i class="et-icon-spin {et_getIcon key="loading"}"></i></div>
            </div>
        {/block}
    {else}
        {block name='et-menu-sitemap-main-content'}
            <div class="et-menu-item-content et-menu-sitemap-main-content d-none">
                {et_isShopVersionAtLeast value="5.2.0-beta" assign='shopIsAtLeast52'}
                <div class="row">
                    <div class="col">
                        {* Link Groups *}
                        <div class="et-menu-sitemap-link-groups">
                            <div class="h4">{lang key='sitemapSites'}</div>
                            <div class="row">
                                {foreach $linkgroups as $linkGroup}
                                    {if !empty($linkGroup) && !empty($linkGroup->getName()) && !in_array($linkGroup->getName(), ['hidden', 'megamenu', 'staticroutes', 'specialpages', 'unassigned']) && !empty($linkGroup->getLinks()) && !$linkGroup->getLinks()->isEmpty()}
                                        <div class="col-12 col-md-4 col-lg-3">
                                            <div class="et-menu-sitemap-link-group">
                                            <div class="et-menu-sitemap-link-group-name">{$linkGroup->getName()}</div>
                                                <div class="et-menu-sitemap-link-group-links">
                                                    {foreach $linkGroup->getLinks() as $link}
                                                        <div class="et-menu-sitemap-link-group-link">
                                                            <a class="link-discreet" href="{$link->getURL()}" rel="{if $link->getNoFollow()}nofollow{/if}" title="{$link->getName()|strip_tags|escape:'html'}">{$link->getName()}</a>
                                                        </div>
                                                    {/foreach}
                                                </div>
                                            </div>
                                        </div>
                                    {/if}
                                {/foreach}
                            </div>
                        </div>
                        {* Manufacturers *}
                        {if count($et_MenuSitemap.manufacturers) > 0}
                            <div class="et-menu-sitemap-manufacturers">
                                <div class="h4">{lang key='sitemapNanufacturer'}</div>
                                <div class="row">
                                    {foreach $et_MenuSitemap.manufacturers as $manufacturer}
                                        <div class="col col-12 col-md-4 col-lg-3">
                                            {if $shopIsAtLeast52}
                                                <a href="{$manufacturer->getURL()}" class="link-discreet" title="{$manufacturer->getName()|strip_tags|escape:'html'}">{$manufacturer->getName()}</a>
                                            {else}
                                                <a href="{$manufacturer->cURL}" class="link-discreet" title="{$manufacturer->cName|strip_tags|escape:'html'}">{$manufacturer->cName}</a>
                                            {/if}
                                        </div>
                                    {/foreach}
                                </div>
                            </div>
                        {/if}
                    </div>
                </div>
            </div>
        {/block}
    {/if}
</div>