{% if rightmodules | length > 0 %}
<div class="cleaner"> </div>
{% endif %}
{# eerst enkel de modules met tekst en titel #}
{% for module in rightmodules %}
{% if module.module is defined and module.module.type is defined %}
{% else %}
{% if module.title != '' or module.text != ''%}
<div class="o-box u-padding-small u-bg-black-10 u-margin-top-large">
{% if module.title != '' %}
<p><b>{{ module.title }}</b></p>
{% endif %}
{% if module.text != '' %}
<div>
{{ module.text | raw }}
</div>
{% if module.asset is not null and module.asset.assetLinks | length > 0 %}
{% for link in module.asset.assetLinks %}
<p><a class="more" href="{{ link.link.url }}" {% if link.link.newWindow %}target="_blank"{% endif %}>{{ link.link.title }}</a></p>
{% endfor %}
{% endif %}
{% endif %}
</div>
{% endif %}
{% endif %}
{% endfor %}
{# speciale types #}
<div class="o-layout c-links o-layout--flush u-padding-top-large">
{% if extras is defined %}
{% for extra in extras %}
{% set linkpath = '#' %}
{% set target = '' %}
{% set copy = '' %}
{% set icon = '' %}
{% if extra == 'link_publication' %}
{% if locale == 'nl' %}
{% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': subsite.slug}) %}
{% else %}
{% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': subsite.slug}) %}
{% endif %}
{% set icon = '/assets/images/icons/icon-publications.svg' %}
{% elseif extra == 'link_glossary' %}
{% set linkpath = path('notaris_frontend_glossary') %}
{% set icon = '' %}
{% elseif extra == 'link_faq' %}
{% set linkpath = path('notaris_frontend_faq_subsite', { 'subsiteSlug': subsite.slug}) %}
{% set icon = '' %}
{% elseif extra == 'link_mysprl' %}
{% set target = '_blank' %}
{% set linkpath = 'md_societes_link' | trans %}
{% set icon = '/assets/images/icons/icon-externallink.svg' %}
{% endif %}
<div class="o-layout__item u-1/1 u-1/2@tablet u-padding-right-tiny@tablet">
<a href="{{ linkpath }}" target="{{ target }}" class="c-links__item c-btn c-btn--full u-bg-black-20 u-text-left u-margin-bottom-tiny js-fednotlink" data-type="0">
<span class="u-h4 u-color-white u-text-bold">{{ extra | trans | raw }}</span>
{% if icon %}
<img src="{{ icon }}" alt="{{ extra | trans | raw }}">
{% endif %}
</a>
</div>
{% endfor %}
{% endif %}
{% for module in rightmodules %}
{% if module.module is defined and module.module.type is defined %}
{% set linkpath = '#' %}
{% set target = '' %}
{% set copy = '' %}
{% set icon = '' %}
{% if module.module.type == 'cal_gen' or module.module.type == 'calculate_don_subsite' %}
{% set copy = 'link_calculate' %}
{% set icon = '/assets/images/icons/icon-calculate-white.svg' %}
{% set target = '_blank' %}
{% set linkpath = path('notaris_frontend_calculate', {source: 'rm_schenking' | trans}) %}
{% elseif module.module.type == 'cal_purch' or module.module.type == 'calculate_purch_subsite'%}
{% set copy = 'link_calculate' %}
{% set target = '_blank' %}
{% set icon = '/assets/images/icons/icon-calculate-white.svg' %}
{% set linkpath = path('notaris_frontend_calculate', {source:'rm_aankoop' | trans}) %}
{% elseif module.module.type == 'cal_cred' or module.module.type == 'calculate_cred_subsite'%}
{% set copy = 'link_calculate' %}
{% set icon = '/assets/images/icons/icon-calculate-white.svg' %}
{% set target = '_blank' %}
{% set linkpath = path('notaris_frontend_calculate', {source: 'rm_krediet' | trans}) %}
{% elseif module.module.type == 'calculate_doorhaling_subsite'%}
{% set copy = 'link_calculate' %}
{% set icon = '/assets/images/icons/icon-calculate-white.svg' %}
{% set target = '_blank' %}
{% set linkpath = path('notaris_frontend_calculate', {source: 'rm_doorhaling' | trans}) %}
{% elseif module.module.type == 'calculate_mand_subsite'%}
{% set copy = 'link_calculate' %}
{% set target = '_blank' %}
{% set icon = '/assets/images/icons/icon-calculate-white.svg' %}
{% set linkpath = path('notaris_frontend_calculate', {source: 'rm_mandaat' | trans}) %}
{% elseif module.module.type == 'cal_don' %}
{% set copy = 'link_calculate' %}
{% set icon = '/assets/images/icons/icon-calculate-white.svg' %}
{# todo[next] rekenmodule openen #}
{% elseif module.module.type == 'jobs' %}
{% set linkpath = path('notaris_frontend_job') %}
{% set copy = 'link_jobs' %}
{% set icon = '/assets/images/icons/icon-vacancies.svg' %}
{% elseif module.module.type == 'immo' %}
{% set linkpath = 'sv_immo_main_link' | trans %}
{% set target = '_blank' %}
{% set copy = 'link_immo' %}
{% set icon = '/assets/images/icons/icon-immo.svg' %}
{% elseif module.module.type == 'publi_gen' %}
{% if locale == 'nl' %}
{% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': 'nieuws-pers'}) %}
{% else %}
{% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': 'nouveautes'}) %}
{% endif %}
{% set copy = 'link_publication' %}
{% set icon = '/assets/images/icons/icon-publications.svg' %}
{% elseif module.module.type == 'publi_subsite' %}
{% if locale == 'nl' %}
{% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': subsite.slug}) %}
{% else %}
{% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': subsite.slug}) %}
{% endif %}
{% set copy = 'link_publication' %}
{% set icon = '/assets/images/icons/icon-publications.svg' %}
{% elseif module.module.type == 'glos_subsite' %}
{% set linkpath = path('notaris_frontend_glossary') %}
{% set copy = 'link_glossary' %}
{% elseif module.module.type == 'faq_subsite' %}
{% set linkpath = path('notaris_frontend_faq_subsite', { 'subsiteSlug': subsite.slug}) %}
{% set copy = 'link_faq' %}
{% set icon = '' %}
{% endif %}
<div class="o-layout__item u-1/1 u-1/2@tablet u-padding-right-tiny@tablet">
<!-- hier komt de integratie van _mod_fednot_link_column.html.twig die normaal in kolom 1 geïntegreerd wordt -->
<a href="{{ linkpath }}" target="{{ target }}" class="c-links__item c-btn c-btn--full u-bg-black-20 u-text-left u-margin-bottom-tiny js-fednotlink" data-type="0">
<span class="u-h4 u-color-white u-text-bold">{{ copy | trans | raw }}</span>
{% if icon %}
<img src="{{ icon }}" alt="{{ copy | trans | raw }}">
{% endif %}
</a>
</div>
{% endif %}
{% endfor %}
</div>