src/Notaris/FrontendBundle/Resources/views/module/_mod_fednot_link_column.html.twig line 1

Open in your IDE?
  1. {% for link in links %}
  2.     {% if positions is empty or link.position in positions %}
  3.     {% set count_type = 'fednotLinks' %}
  4.     {% set linkpath = '#' %}
  5.     {% set target = '' %}
  6.     {% set backgroundColorSven = 'u-bg-grey-lighter' %}
  7.     {% set backgroundColor = 'u-bg-primary' %}
  8.     {% set hover = '' %}
  9.     {% if link.link.type == "link_calculate" %}
  10.         {% set count_type = 'rekenmodule' %}
  11.         {# todo[next] rekenmodule openen #}
  12.         {% set linkpath = path('notaris_frontend_calculate') %}
  13.         {% if positions is not empty and positions|length == 1  %}
  14.             {% set backgroundColor = 'u-bg-grey-lighter' %}
  15.         {% endif %}
  16.         {% if positions is empty and not onSven  %}
  17.             {% set backgroundColorSven = 'u-bg-primary' %}
  18.         {% endif %}
  19.     {% elseif link.link.type == "link_publication" %}
  20.         {% if locale == 'nl' %}
  21.             {% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': 'nieuws-pers'}) %}
  22.         {% else %}
  23.             {% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': 'nouveautes'}) %}
  24.         {% endif %}
  25.         {% set backgroundColor = 'u-bg-grey-lighter' %}
  26.     {% elseif link.link.type == "link_tv" %}
  27.         {% set linkpath = path('notaris_frontend_tv') %}
  28.     {% elseif link.link.type == "link_news" %}
  29.         {% set linkpath = path('notaris_frontend_news') %}
  30.     {% elseif link.link.type == "link_mysprl" %}
  31.         {% set target = '_blank' %}
  32.         {% set linkpath = 'md_societes_link' | trans %}
  33.         {% set backgroundColorSven = 'u-bg-primary' %}
  34.         {#        {% set backgroundColorSven = 'u-bg-black-20' %}#}
  35. {#        {% set backgroundColor = 'u-bg-primary-light' %}#}
  36.     {% elseif link.link.type == "link_adressbook" %}
  37.         {% set linkpath = path('notaris_frontend_addressbook') %}
  38.         {% if positions is empty and not onSven  %}
  39.             {% set backgroundColorSven = 'u-bg-primary' %}
  40.         {% endif %}
  41.     {% elseif link.link.type == "link_adressbook_deed" %}
  42.         {% set linkpath = 'link_naban_path' | trans %}
  43.     {% elseif link.link.type == "link_glossary" %}
  44.         {% set linkpath = path('notaris_frontend_glossary') %}
  45.     {% elseif link.link.type == "link_faq" %}
  46.         {% set linkpath = path('notaris_frontend_faq') %}
  47.     {% elseif link.link.type == "link_jobs" %}
  48.         {% if locale == 'nl' %}
  49.             {% set linkpath = 'https://notaris.jobs' %}
  50.         {% else %}
  51.             {% set linkpath = 'https://notaire.jobs' %}
  52.         {% endif %}
  53.         {% set target = '_blank' %}
  54.         {% if positions is not empty %}
  55.             {% set backgroundColorSven = 'u-bg-primary' %}
  56.         {% endif %}
  57.     {% elseif link.link.type == "link_home" %}
  58.         {% set linkpath = path('notaris_frontend_homepage') %}
  59.     {% elseif link.link.type == "link_algemeen" %}
  60.         {% if locale == 'nl' %}
  61.             {% set notarisslug = 'de-notaris' %}
  62.         {% else %}
  63.             {% set notarisslug = 'le-notaire' %}
  64.         {% endif %}
  65.         {% set linkpath = path('notaris_frontend_subsite', {'slug': notarisslug}) %}
  66.     {% elseif link.link.type == "link_immo" %}
  67.         {% set linkpath = 'sv_immo_main_link' | trans %}
  68.         {% set backgroundColorSven = 'u-bg-primary' %}
  69.     {% elseif link.link.type == "link_skedify" %}
  70.         {% set linkpath = path("notaris_frontend_skedify") %}
  71.     {% elseif link.link.type == "link_naban" %}
  72.         {% set linkpath = 'link_naban_path' | trans %}
  73.         {#{% set hover = 'link_naban_hover' %}#}
  74.         {% set backgroundColorSven = 'u-bg-black-20' %}
  75.         {% set backgroundColor = 'u-bg-black-20' %}
  76.     {% elseif link.link.type == "link_izimi" %}
  77.         {% set linkpath = 'link_izimi_path' | trans %}
  78.         {% set target = '_blank' %}
  79.         {% set backgroundColorSven = 'u-bg-primary' %}
  80.         {#{% set hover = 'link_naban_hover' %}#}
  81.     {% elseif link.link.type == "link_barometer" %}
  82.         {% set linkpath = path('notaris_frontend_barometer') %}
  83.         {% set target = '_blank' %}
  84.         {% set backgroundColorSven = 'u-bg-primary' %}
  85.     {% endif %}
  86.     <a href="{{ linkpath }}"
  87.         target="{{ target }}"
  88.         class="c-links__item c-btn c-btn--full u-text-left
  89.             {% if onSven %}
  90.                 {{backgroundColorSven}}
  91.             {% else %}
  92.                 {{backgroundColor}} o-tabpannel--themed
  93.             {% endif %} u-margin-bottom-tiny js-fednotlink
  94.         {#{% if link.link.type =="link_naban" %} c-btn--change-text{% endif %}#}"
  95. {#        {% if link.link.type == "link_izimi" %} style="background-color: #D7601E !important;"{% endif %}#}
  96. {#        {% if link.link.type == "link_mysprl" %} style="background-color: #2A4551 !important;"{% endif %}#}
  97.         data-type="{{ count_type }}">
  98.         <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>
  99.         {% if link.link.type == "link_calculate" %}
  100.             <img src="/assets/images/icons/icon-calculate-white.svg" alt="{{ link.link.type | trans | raw }}">
  101.         {% elseif link.link.type == "link_publication" %}
  102.             <img src="/assets/images/icons/icon-publications.svg" alt="{{ link.link.type | trans | raw }}">
  103.         {% elseif link.link.type == "link_tv" %}
  104.             <img src="/assets/images/icons/icon-teevee.svg" alt="{{ link.link.type | trans | raw }}">
  105.         {% elseif link.link.type == "link_news" %}
  106.             <img src="/assets/images/icons/icon-news.svg" alt="{{ link.link.type | trans | raw }}">
  107.         {% elseif link.link.type == "link_mysprl" %}
  108.             <img src="/assets/images/icons/icon-startmybusiness.svg" alt="{{ link.link.type | trans | raw }}">
  109.         {% elseif link.link.type == "link_adressbook" %}
  110.             <img src="/assets/images/icons/icon-adressbook.svg" alt="{{ link.link.type | trans | raw }}">
  111.         {% elseif link.link.type == "link_jobs" %}
  112.             <img src="/assets/images/icons/icon-vacancies.svg" alt="{{ link.link.type | trans | raw }}">
  113.         {% elseif link.link.type == "link_immo" %}
  114.             <img src="/assets/images/icons/icon-immo.svg" alt="{{ link.link.type | trans | raw }}">
  115.         {% elseif link.link.type == "link_naban" %}
  116.             <img src="/assets/images/icons/icon-naban.png" alt="{{ link.link.type | trans | raw }}">
  117.         {% elseif link.link.type == "link_izimi" %}
  118.             <img src="/assets/images/icons/icon-izimi.svg" alt="{{ link.link.type | trans | raw }}">
  119.         {% elseif link.link.type == "link_barometer" %}
  120.             <img src="/assets/images/icons/icon-vastgoedbarometer.svg" alt="{{ link.link.type | trans | raw }}">
  121.         {% endif %}
  122.     </a>
  123.     {% endif %}
  124. {% endfor %}