{% for link in links %} {% if positions is empty or link.position in positions %} {% set count_type = 'fednotLinks' %} {% set linkpath = '#' %} {% set target = '' %} {% set backgroundColorSven = 'u-bg-grey-lighter' %} {% set backgroundColor = 'u-bg-primary' %} {% set hover = '' %} {% if link.link.type == "link_calculate" %} {% set count_type = 'rekenmodule' %} {# todo[next] rekenmodule openen #} {% set linkpath = path('notaris_frontend_calculate') %} {% if positions is not empty and positions|length == 1 %} {% set backgroundColor = 'u-bg-grey-lighter' %} {% endif %} {% if positions is empty and not onSven %} {% set backgroundColorSven = 'u-bg-primary' %} {% endif %} {% elseif link.link.type == "link_publication" %} {% if locale == 'nl' %} {% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': 'nieuws-pers'}) %} {% else %} {% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': 'nouveautes'}) %} {% endif %} {% set backgroundColor = 'u-bg-grey-lighter' %} {% elseif link.link.type == "link_tv" %} {% set linkpath = path('notaris_frontend_tv') %} {% elseif link.link.type == "link_news" %} {% set linkpath = path('notaris_frontend_news') %} {% elseif link.link.type == "link_mysprl" %} {% set target = '_blank' %} {% set linkpath = 'md_societes_link' | trans %} {% set backgroundColorSven = 'u-bg-primary' %} {# {% set backgroundColorSven = 'u-bg-black-20' %}#}{# {% set backgroundColor = 'u-bg-primary-light' %}#} {% elseif link.link.type == "link_adressbook" %} {% set linkpath = path('notaris_frontend_addressbook') %} {% if positions is empty and not onSven %} {% set backgroundColorSven = 'u-bg-primary' %} {% endif %} {% elseif link.link.type == "link_adressbook_deed" %} {% set linkpath = 'link_naban_path' | trans %} {% elseif link.link.type == "link_glossary" %} {% set linkpath = path('notaris_frontend_glossary') %} {% elseif link.link.type == "link_faq" %} {% set linkpath = path('notaris_frontend_faq') %} {% elseif link.link.type == "link_jobs" %} {% if locale == 'nl' %} {% set linkpath = 'https://notaris.jobs' %} {% else %} {% set linkpath = 'https://notaire.jobs' %} {% endif %} {% set target = '_blank' %} {% if positions is not empty %} {% set backgroundColorSven = 'u-bg-primary' %} {% endif %} {% elseif link.link.type == "link_home" %} {% set linkpath = path('notaris_frontend_homepage') %} {% elseif link.link.type == "link_algemeen" %} {% if locale == 'nl' %} {% set notarisslug = 'de-notaris' %} {% else %} {% set notarisslug = 'le-notaire' %} {% endif %} {% set linkpath = path('notaris_frontend_subsite', {'slug': notarisslug}) %} {% elseif link.link.type == "link_immo" %} {% set linkpath = 'sv_immo_main_link' | trans %} {% set backgroundColorSven = 'u-bg-primary' %} {% elseif link.link.type == "link_skedify" %} {% set linkpath = path("notaris_frontend_skedify") %} {% elseif link.link.type == "link_naban" %} {% set linkpath = 'link_naban_path' | trans %} {#{% set hover = 'link_naban_hover' %}#} {% set backgroundColorSven = 'u-bg-black-20' %} {% set backgroundColor = 'u-bg-black-20' %} {% elseif link.link.type == "link_izimi" %} {% set linkpath = 'link_izimi_path' | trans %} {% set target = '_blank' %} {% set backgroundColorSven = 'u-bg-primary' %} {#{% set hover = 'link_naban_hover' %}#} {% elseif link.link.type == "link_barometer" %} {% set linkpath = path('notaris_frontend_barometer') %} {% set target = '_blank' %} {% set backgroundColorSven = 'u-bg-primary' %} {% endif %} <a href="{{ linkpath }}" target="{{ target }}" class="c-links__item c-btn c-btn--full u-text-left {% if onSven %} {{backgroundColorSven}} {% else %} {{backgroundColor}} o-tabpannel--themed {% endif %} u-margin-bottom-tiny js-fednotlink {#{% if link.link.type =="link_naban" %} c-btn--change-text{% endif %}#}"{# {% if link.link.type == "link_izimi" %} style="background-color: #D7601E !important;"{% endif %}#}{# {% if link.link.type == "link_mysprl" %} style="background-color: #2A4551 !important;"{% endif %}#} data-type="{{ count_type }}"> <span class="u-h4 u-color-white">{% if link.link.type =="link_naban" %}<span class="no-hover-text">{% endif %}{{ link.link.type | trans | raw }}{% if link.link.type =="link_naban" %}</span>{% endif %}<span class="hover-text">{{ hover | trans | raw }}</span></span> {% if link.link.type == "link_calculate" %} <img src="/assets/images/icons/icon-calculate-white.svg" alt="{{ link.link.type | trans | raw }}"> {% elseif link.link.type == "link_publication" %} <img src="/assets/images/icons/icon-publications.svg" alt="{{ link.link.type | trans | raw }}"> {% elseif link.link.type == "link_tv" %} <img src="/assets/images/icons/icon-teevee.svg" alt="{{ link.link.type | trans | raw }}"> {% elseif link.link.type == "link_news" %} <img src="/assets/images/icons/icon-news.svg" alt="{{ link.link.type | trans | raw }}"> {% elseif link.link.type == "link_mysprl" %} <img src="/assets/images/icons/icon-startmybusiness.svg" alt="{{ link.link.type | trans | raw }}"> {% elseif link.link.type == "link_adressbook" %} <img src="/assets/images/icons/icon-adressbook.svg" alt="{{ link.link.type | trans | raw }}"> {% elseif link.link.type == "link_jobs" %} <img src="/assets/images/icons/icon-vacancies.svg" alt="{{ link.link.type | trans | raw }}"> {% elseif link.link.type == "link_immo" %} <img src="/assets/images/icons/icon-immo.svg" alt="{{ link.link.type | trans | raw }}"> {% elseif link.link.type == "link_naban" %} <img src="/assets/images/icons/icon-naban.png" alt="{{ link.link.type | trans | raw }}"> {% elseif link.link.type == "link_izimi" %} <img src="/assets/images/icons/icon-izimi.svg" alt="{{ link.link.type | trans | raw }}"> {% elseif link.link.type == "link_barometer" %} <img src="/assets/images/icons/icon-vastgoedbarometer.svg" alt="{{ link.link.type | trans | raw }}"> {% endif %} </a> {% endif %}{% endfor %}