<div class="panel panel--collapse">
    <div class="collapse-toggle">
        <h6 class="top__title">
            {$lang.settings.section.general.custom_logo_url.title}
            {if isset($tooltips.settings.general.custom_logo_url.title)}
                {if isset($tooltips.settings.general.custom_logo_url.url) && $tooltips.settings.general.custom_logo_url.url != ""}
                    {assign var="popoverFooter" value="<a class='btn btn--secondary btn--xs' href='{$tooltips.settings.general.custom_logo_url.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.general.custom_logo_url.title}"
                    popoverFooter="{$popoverFooter}"
                }
            {/if}
        </h6>
        <label>
            <div class="switch" data-toggle="lu-collapse" data-target="#logo-url" aria-expanded="true">
                <input type="hidden" name="settings[show_logo_url]" value="0">
                <input class="switch__checkbox" name="settings[show_logo_url]" value="1" type="checkbox" {if isset($settings['show_logo_url']) && $settings['show_logo_url']} checked {/if}>
                <span class="switch__container">
                    <span class="switch__handle"></span>
                </span>
            </div>
        </label>
    </div>
    <div class="collapse {if isset($settings['show_logo_url']) && $settings['show_logo_url']} show {/if}" id="logo-url">
        <div class="form-group m-b-0x p-3x">
            <label class="form-label text-default">{$lang.settings.section.general.custom_logo_url.label}</label>
            <input value="{if isset($settings['logo_url'])}{$settings['logo_url']}{/if}" class="form-control " type="text" name="settings[logo_url]">
        </div>
    </div>
</div>