{% sw_extends '@Storefront/storefront/section/cms-section-sidebar.html.twig' %}
{% block section_sidebar_content %}
{% set config = config('S360Experts.config') %}
{% set showExpert = false %}
{% if page.hasExtension('s360_experts') and config.showInSidebar is same as(true) and sidebarBlocks %}
{% set showExpert = true %}
{% endif %}
<div class="cms-section-sidebar-sidebar-content col-lg-4 col-xl-3">
{% if showExpert and config.showInSidebar and config.whereInSidebar is same as('insidebar_above') %}
{% sw_include '@Storefront/solution360/s360experts/category-sidebar.html.twig' with { 'position': 'top' } %}
{% endif %}
{% for block in sidebarBlocks %}
{% block section_sidebar_content_block %}
{{ parent() }}
{% endblock %}
{% endfor %}
{% if showExpert and config.showInSidebar and config.whereInSidebar is same as('insidebar_below') %}
{% sw_include '@Storefront/solution360/s360experts/category-sidebar.html.twig' with { 'position': 'bottom' } %}
{% endif %}
</div>
{% endblock %}