{% if hide_contact_cta is empty or section_menu|length > 0 and hide_section_menu is empty%}
    <div class="contentSidebar js_contentSidebar {{ class }}">

        <div class="innerSidebar">


            {% if section_menu|length > 0 and hide_section_menu is empty %}
                <div class="sidebarSection sidebarNavSection sectionDark">

                    {% if section.title is not empty %}
                        <h4 class="sidebarTitle">{{ section.title }}</h4>
                    {% endif %}

                    <div class="sidebarContent">

                        <nav class="sidebarMenu">
                            <ul>
                                {% for menu_item in section_menu %}
                                    <li{% if menu_item.active == 1 %} class="active"{% endif %}>
                                        <a href="{{ menu_item.link }}" title="{{ menu_item.title }}">
                                            {{ menu_item.title }}
                                        </a>
                                    </li>
                                {% endfor %}
                            </ul>
                        </nav>

                    </div> <!-- .sidebarContent -->

                </div> <!-- .sidebarSection -->
            {% endif %}


            {% if hide_contact_cta is empty %}

                {% set contact_sidebar = contact.pagedata['Sidebar Contact CTA'][0] %}

                {% if contact_sidebar['Title']['value'] is not empty %}
                    <div class="sidebarSection sidebarContactSection sectionDark">

                        <h4 class="sidebarTitle alwaysShow">{{ contact_sidebar['Title']['value'] }}</h4>

                        {% if contact_sidebar['Content']['value'] is not empty %}
                            <div class="sidebarContent">
                                {{ contact_sidebar['Content']['value']|raw }}
                            </div> <!-- .sidebarContent -->
                        {% endif %}

                        {% if contact_sidebar['Button Link']['value'] is not empty %}
                            <div class="buttonWrap">
                                <a class="button buttonAlt" href="{{ contact_sidebar['Button Link']['value'] }}">
                                    {{ contact_sidebar['Button Text']['value'] }}
                                </a>
                            </div>
                        {% endif %}

                    </div> <!-- .sidebarSection -->
                {% endif %}

            {% endif %}

        </div> <!-- .innerSidebar -->

    </div> <!-- .contentSidebarWrap -->
{% endif %}


