{% if smallsidenav is not defined %}
{% set smallsidenav = false %}
{% endif %}
<div class="u-hidden@mobile hideforsmartphone">
<!-- #### FLOATING LEFT COLUMN #### -->
<aside id="content-left" class="content-left-small">
{% if preview is defined and preview %}
{# NAV BIJ PREVIEW #}
<nav class="{{ subsite.stylesheet }}-nav c-sidebar-nav" data-route="{{app.request.get('_route')}}">
<ul class="u-margin-left-none u-padding-left-none">
{% for section in subsite.sections if section.parent is null and section.showNavigation %}
<li {% if currentslug is defined %}{% if currentslug == section.slug %}class="active"{% endif %}{% endif %}>
<div class='activestate'> </div>
<a href="{% if section.redirectUrl %}{{ section.redirectUrl }}{% else %}{{ path('notaris_admin_cms_section_preexample', {'slug': subsite.slug, 'slugdetail': section.slug }) }}{% endif %}" title="{{ section.navigation | raw }}">{{ section.navigation | raw }}</a>
{% if currentslug is defined %}
{% if currentslug == section.slug %}
<ul class="u-margin-left-none u-padding-left-none">
{% for children in section.children if children.showNavigation %}
<li {% if currentslug2 is defined and currentslug2 == children.slug %}class="active"{% endif %}>
<div class="activestate-niv2"> </div>
{% if 'notaris_frontend_tv' in app.request.get('_route') %}
<a href="{% if children.redirectUrl %}{{ children.redirectUrl }}{% else %}{{ path('notaris_frontend_tv_detail', {'slug': children.slug }) }}{% endif %}" title="{{ children.navigation | raw }}">{{ children.navigation | raw }}</a>
{% else %}
{% if currentslug == 'other-languages' or currentslug == 'other-languages-1' %}
<a href="{{ path('notaris_admin_cms_section_preexample', {'slug': subsite.slug, 'slugdetail': children.slug}) }}" title="{{ children.navigation | raw }}">{{ children.navigation | raw }}</a>
{% else %}
<a href="{% if children.redirectUrl %}{{ children.redirectUrl }}{% else %}{{ path('notaris_admin_cms_section_preexample', {'slug': subsite.slug, 'slugdetail': section.slug, 'slugdetail2': children.slug}) }}{% endif %}" title="{{ children.navigation | raw }}">{{ children.navigation | raw }}</a>
{% endif %}
{% endif %}
{% if currentslug2 is defined and currentslug2 == children.slug %}
<ul class="u-margin-left-none u-padding-left-none">
{% for subchildren in children.children if subchildren.showNavigation %}
<li {% if currentslug3 == subchildren.slug %}class="active"{% endif %}>
<div class="activestate-niv3" style="height: 43px;"> </div>
{% if currentslug == 'other-languages' or currentslug == 'other-languages-1' %}
<a href="{{ path('notaris_admin_cms_section_preexample', {'slug': subsite.slug, 'slugdetail': children.slug, 'slugdetail2': subchildren.slug}) }}" title="{{ subchildren.navigation | raw }}">{{ subchildren.navigation | raw }}</a>
{% else %}
<a href="{% if subchildren.redirectUrl %}{{ subchildren.redirectUrl }}{% else %}{{ path('notaris_admin_cms_section_preexample', {'slug': subsite.slug, 'slugdetail': section.slug, 'slugdetail2': children.slug, 'slugdetail3': subchildren.slug}) }}{% endif %}" title="{{ subchildren.navigation | raw }}">{{ subchildren.navigation | raw }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
</li>
{% endfor %}
{% set lastPart = '' %}
{% set hide = false %}
{% if getControllerName(app.request.attributes) == 'Faq' %}
{% if currentPath|split('/') | length > 2 %}
{% set lastPart = currentPath|split('/')[2] %}
{% if lastPart == 'slg_algemeen' | trans or lastPart == 'mybox' %}
{% set hide = true %}
{% endif %}
{% endif %}
{% endif %}
{% if currentslug is not defined %}
{% set currentslug = '' %}
{% endif %}
{% if not hide and currentslug != 'other-languages' and currentslug != 'other-languages-1' and subsite.slug != 'notarimmo' and subsite.slug != 'slg_nieuws' | trans and subsite.slug != 'slg_voorwaarden' | trans and subsite.slug != 'contact' and 'notaris_frontend_job' not in app.request.get('_route') and 'notaris_frontend_faq' != app.request.get('_route') and subsite.slug != 'rekenmodules' and subsite.slug != 'calcul_de_frais' %}
<li {% if 'notaris_admin_cms_news_preexample' in app.request.get('_route') %}class="active"{% endif %}>
<div class='activestate'> </div>
<a href="{{ path('notaris_admin_cms_news_preexample', {'subsiteslug': subsite.slug}) }}" title="{{ "sn_actueel" | trans | raw }}">{{ "sn_actueel" | trans | raw }}</a>
</li>
<li {% if 'notaris_frontend_faq_subsite' in app.request.get('_route') %}class="active"{% endif %}>
<div class='activestate'> </div>
<a href="{{ path('notaris_frontend_faq_subsite', {'subsiteSlug': subsite.slug}) }}" title="{{ "sn_vragenenantwoorden" | trans | raw }}">{{ "sn_vragenenantwoorden" | trans | raw }}</a>
</li>
<li {% if 'notaris_frontend_brochures' in app.request.get('_route') %}class="active"{% endif %}>
<div class='activestate'> </div>
<a href="{{ path('notaris_frontend_brochures', {'subsiteSlug': subsite.slug}) }}" title="{{ "md_publi" | trans | raw }}">{{ "md_publi" | trans | raw }}</a>
</li>
<li {% if 'notaris_frontend_tv_detail' in app.request.get('_route') %}class="active"{% endif %}>
<div class='activestate'> </div>
<a href="{{ path('notaris_frontend_tv_detail', {'slug': subsite.slug}) }}" title="{{ "sv_notaristv" | trans | raw }}">{{ "sv_notaristv" | trans | raw }}</a>
</li>
{% endif %}
</ul>
</nav>
{% else %}
{# ------- LIVE NAV ----------- #}
<nav class="{{ subsite.stylesheet }}-nav c-sidebar-nav" data-route="{{app.request.get('_route')}}">
<ul class="u-margin-left-none u-padding-left-none">
{% for section in subsite.sections if section.parent is null and section.isActive and section.showNavigation and not (notaryId is not defined and (
(subsite.slug == 'gebruiksvoorwaarden' and section.slug == 'gdpr-gedragscode') or
(subsite.slug == 'conditions-dutilisation' and section.slug == 'code-de-conduite-rgpd')
)) %}
<li {% if currentslug is defined %}{% if currentslug == section.slug %}class="active"{% endif %}{% endif %}>
<div class='activestate'> </div>
{% if section.redirectUrl and ('rekenmodule' in section.redirectUrl or 'calcul' in section.redirectUrl) %}
{% set rekenmodule = "rekenmodule" %}
{% else %}
{% set rekenmodule = '' %}
{% endif %}
<a href="{% if section.redirectUrl %}{{ section.redirectUrl }}{% else %}{{ path('notaris_frontend_subsite_detail', {'slug': subsite.slug, 'slugdetail': section.slug }) }}{% endif %}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ section.navigation | raw }}">{{ section.navigation | raw }}</a>
{% if currentslug is defined %}
{% if currentslug == section.slug %}
<ul class="u-margin-left-none u-padding-left-none">
{% for children in section.children if children.isActive and children.showNavigation %}
<li {% if currentslug2 is defined and currentslug2 == children.slug %}class="active"{% endif %}>
<div class="activestate-niv2"> </div>
{% if children.redirectUrl and ('rekenmodule' in children.redirectUrl or 'calcul' in children.redirectUrl) %}
{% set rekenmodule = "rekenmodule" %}
{% else %}
{% set rekenmodule = '' %}
{% endif %}
{% if 'notaris_frontend_tv' in app.request.get('_route') %}
<a href="{% if children.redirectUrl %}{{ children.redirectUrl }}{% else %}{{ path('notaris_frontend_tv_detail', {'slug': children.slug }) }}{% endif %}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ children.navigation | raw }}">{{ children.navigation | raw }}</a>
{% else %}
{% if currentslug == 'other-languages' or currentslug == 'other-languages-1' %}
<a href="{{ path('notaris_frontend_subsite_detail', {'slug': subsite.slug, 'slugdetail': children.slug}) }}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ children.navigation | raw }}">{{ children.navigation | raw }}</a>
{% else %}
<a href="{% if children.redirectUrl %}{{ children.redirectUrl }}{% else %}{{ path('notaris_frontend_subsite_detail2', {'slug': subsite.slug, 'slugdetail': section.slug, 'slugdetail2': children.slug}) }}{% endif %}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ children.navigation | raw }}">{{ children.navigation | raw }}</a>
{% endif %}
{% endif %}
{% if currentslug2 is defined and currentslug2 == children.slug %}
<ul class="u-margin-left-none u-padding-left-none">
{% for subchildren in children.children if subchildren.isActive and subchildren.showNavigation %}
<li {% if currentslug3 == subchildren.slug %}class="active"{% endif %}>
<div class="activestate-niv3" style="height: 43px;"> </div>
{% if subchildren.redirectUrl and ('rekenmodule' in subchildren.redirectUrl or 'calcul' in subchildren.redirectUrl) %}
{% set rekenmodule = "rekenmodule" %}
{% else %}
{% set rekenmodule = '' %}
{% endif %}
{% if currentslug == 'other-languages' or currentslug == 'other-languages-1' %}
<a href="{{ path('notaris_frontend_subsite_detail2', {'slug': subsite.slug, 'slugdetail': children.slug, 'slugdetail2': subchildren.slug}) }}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ subchildren.navigation | raw }}">{{ subchildren.navigation | raw }}</a>
{% else %}
<a href="{% if subchildren.redirectUrl %}{{ subchildren.redirectUrl }}{% else %}{{ path('notaris_frontend_subsite_detail3', {'slug': subsite.slug, 'slugdetail': section.slug, 'slugdetail2': children.slug, 'slugdetail3': subchildren.slug}) }}{% endif %}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ subchildren.navigation | raw }}">{{ subchildren.navigation | raw }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
</li>
{% endfor %}
{% set lastPart = '' %}
{% set hide = false %}
{% if getControllerName(app.request.attributes) == 'Faq' %}
{% if currentPath|split('/') | length > 2 %}
{% set lastPart = currentPath|split('/')[2] %}
{% if lastPart == 'slg_algemeen' | trans or lastPart == 'mybox' %}
{% set hide = true %}
{% endif %}
{% endif %}
{% endif %}
{% if currentslug is not defined %}
{% set currentslug = '' %}
{% endif %}
{% if not hide and currentslug != 'other-languages' and currentslug != 'other-languages-1' and subsite.slug != 'notarimmo' and subsite.slug != 'slg_nieuws' | trans and subsite.slug != 'slg_voorwaarden' | trans and subsite.slug != 'contact' and 'notaris_frontend_job' not in app.request.get('_route') and 'notaris_frontend_faq' != app.request.get('_route') and subsite.slug != 'rekenmodules' and subsite.slug != 'calcul_de_frais' and subsite.slug != 'naban_slug' | trans %}
<li {% if 'notaris_frontend_subsite_news' in app.request.get('_route') %}class="active"{% endif %}>
<div class='activestate'> </div>
<a href="{{ path('notaris_frontend_subsite_news', {'subsiteslug': subsite.slug}) }}" title="{{ "sn_actueel" | trans | raw }}">{{ "sn_actueel" | trans | raw }}</a>
</li>
<li {% if 'notaris_frontend_faq_subsite' in app.request.get('_route') %}class="active"{% endif %}>
<div class='activestate'> </div>
<a href="{{ path('notaris_frontend_faq_subsite', {'subsiteSlug': subsite.slug}) }}" title="{{ "sn_vragenenantwoorden" | trans | raw }}">{{ "sn_vragenenantwoorden" | trans | raw }}</a>
</li>
<li {% if 'notaris_frontend_brochures' in app.request.get('_route') %}class="active"{% endif %}>
<div class='activestate'> </div>
<a href="{{ path('notaris_frontend_brochures', {'subsiteSlug': subsite.slug}) }}" title="{{ "md_publi" | trans | raw }}">{{ "md_publi" | trans | raw }}</a>
</li>
<li {% if 'notaris_frontend_tv_detail' in app.request.get('_route') %}class="active"{% endif %}>
<div class='activestate'> </div>
<a href="{{ path('notaris_frontend_tv_detail', {'slug': subsite.slug}) }}" title="{{ "sv_notaristv" | trans | raw }}">{{ "sv_notaristv" | trans | raw }}</a>
</li>
{% endif %}
</ul>
</nav>
{% endif %}
{#<script>
$(document).ready(function(e){
if( $('.u-hidden@mobile .c-sidebar-nav ul li').length == 1){
$('.c-sidebar-nav ul li').addClass('active')
{% if 'notaris_frontend_news' in app.request.get('_route') %}
}else{
if( $('.u-hidden@mobile .c-sidebar-nav ul li.active').length == 0){
$('.c-sidebar-nav ul li').first().addClass('active')
}
{% endif %}
}
})
</script>#}
{#<script>
$(document).ready(function(e){
if( $('.hidesmartphone aside nav ul li').length == 1){
$('aside nav ul li').addClass('active')
{% if 'notaris_frontend_news' in app.request.get('_route') %}
}else{
if( $('.u-hidden@mobile aside nav ul li.active').length == 0){
$('aside nav ul li').first().addClass('active')
}
{% endif %}
}
});
</script>#}
</aside>
</div>