<div class="panel panel--collapse">
    <div class="collapse-toggle">
        <h6 class="top__title">
            {$lang.settings.section.layout.affixed_navigation.title}
            {if isset($tooltips.settings.layout.affixed_navigation.title)}
                {if isset($tooltips.settings.layout.affixed_navigation.url) && $tooltips.settings.layout.affixed_navigation.url != ""}
                    {assign var="popoverFooter" value="<a class='btn btn--secondary btn--xs' href='{$tooltips.settings.layout.affixed_navigation.url}' target='_blank'>Learn More</a>"}
                {else}
                    {assign var="popoverFooter" value=false}
                {/if}
                {include 
                    file="adminarea/includes/helpers/popover.tpl" 
                    popoverClasses="notification__popover notification__popover--sm"
                    popoverBody="{$tooltips.settings.layout.affixed_navigation.title}"
                    popoverFooter="{$popoverFooter}"
                }
            {/if}
        </h6>
        <label>
            <div class="switch" data-toggle="lu-collapse" data-target="#affixed_navigation_box">
                <input type="hidden" name="settings[show_affixed_navigation]" value="disabled"/>
                <input class="switch__checkbox"
                        name="settings[show_affixed_navigation]" value="enabled"
                        type="checkbox" {if $settings['show_affixed_navigation'] == "enabled"} checked="checked" {/if}>
                <span class="switch__container">
                    <span class="switch__handle"></span>
                </span>
            </div>
        </label>
    </div>
    <div class="collapse {if $settings['show_affixed_navigation'] == "enabled"} show {/if}" id="affixed_navigation_box">
        <div class="form-group m-b-0x p-3x">
            <label class="form-label">
                {$lang.settings.section.layout.affixed_navigation.label}
                {if isset($tooltips.settings.layout.affixed_navigation.type.title)}
                {if isset($tooltips.settings.layout.affixed_navigation.type.url) && $tooltips.settings.layout.affixed_navigation.type.url != ""}
                    {assign var="popoverFooter" value="<a class='btn btn--secondary btn--xs' href='{$tooltips.settings.layout.affixed_navigation.type.url}' target='_blank'>Learn More</a>"}
                {else}
                    {assign var="popoverFooter" value=false}
                {/if}
                {include 
                    file="adminarea/includes/helpers/popover.tpl" 
                    popoverClasses="notification__popover"
                    popoverBody="{$tooltips.settings.layout.affixed_navigation.type.title}"
                    popoverFooter="{$popoverFooter}"
                }
            {/if}
            </label>
            <select class="form-control" name="settings[affixed_navigation_type]">
                <option value="dynamic">Dynamic</option>
                <option value="sticky" {if $settings['affixed_navigation_type'] == "sticky"}selected{/if}>Sticky</option>
            </select>
         </div>
    </div>        
</div>