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

Open in your IDE?
  1. {% if rightmodules | length > 0 %}
  2.     <div class="cleaner">&nbsp;</div>
  3. {% endif %}
  4. {# eerst enkel de modules met tekst en titel #}
  5. {% for module in rightmodules %}
  6.     {% if module.module is defined and module.module.type is defined %}
  7.     {% else %}
  8.         {% if module.title != '' or module.text != ''%}
  9.             <div class="o-box u-padding-small u-bg-black-10 u-margin-top-large">
  10.                 {% if module.title != '' %}
  11.                     <p><b>{{ module.title }}</b></p>
  12.                 {% endif %}
  13.                 {% if module.text != '' %}
  14.                     <div>
  15.                         {{ module.text | raw }}
  16.                     </div>
  17.                     {% if module.asset is not null and module.asset.assetLinks | length > 0 %}
  18.                         {% for link in module.asset.assetLinks %}
  19.                             <p><a class="more" href="{{ link.link.url }}" {% if link.link.newWindow %}target="_blank"{% endif %}>{{ link.link.title }}</a></p>
  20.                         {% endfor %}
  21.                     {% endif %}
  22.                 {% endif %}
  23.             </div>
  24.         {% endif %}
  25.     {% endif %}
  26. {% endfor %}
  27. {# speciale types #}
  28. <div class="o-layout c-links o-layout--flush u-padding-top-large">
  29.     {% if extras is defined %}
  30.         {% for extra in extras %}
  31.             {% set linkpath = '#' %}
  32.             {% set target = '' %}
  33.             {% set copy = '' %}
  34.             {% set icon = '' %}
  35.             {% if extra == 'link_publication' %}
  36.                 {% if locale == 'nl' %}
  37.                     {% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': subsite.slug}) %}
  38.                 {% else %}
  39.                     {% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': subsite.slug}) %}
  40.                 {% endif %}
  41.                 {% set icon = '/assets/images/icons/icon-publications.svg' %}
  42.             {% elseif extra == 'link_glossary' %}
  43.                 {% set linkpath = path('notaris_frontend_glossary') %}
  44.                 {% set icon = '' %}
  45.             {% elseif extra == 'link_faq' %}
  46.                 {% set linkpath = path('notaris_frontend_faq_subsite', { 'subsiteSlug': subsite.slug}) %}
  47.                 {% set icon = '' %}
  48.             {% elseif extra == 'link_mysprl' %}
  49.                 {% set target = '_blank' %}
  50.                 {% set linkpath = 'md_societes_link' | trans %}
  51.                 {% set icon = '/assets/images/icons/icon-externallink.svg' %}
  52.             {% endif %}
  53.             <div class="o-layout__item u-1/1 u-1/2@tablet u-padding-right-tiny@tablet">
  54.                 <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">
  55.                     <span class="u-h4 u-color-white u-text-bold">{{ extra | trans | raw }}</span>
  56.                     {% if icon %}
  57.                         <img src="{{ icon }}" alt="{{ extra | trans | raw }}">
  58.                     {% endif %}
  59.                 </a>
  60.             </div>
  61.         {% endfor %}
  62.     {% endif %}
  63.     {% for module in rightmodules %}
  64.         {% if module.module is defined and module.module.type is defined %}
  65.             {% set linkpath = '#' %}
  66.             {% set target = '' %}
  67.             {% set copy = '' %}
  68.             {% set icon = '' %}
  69.             {% if module.module.type == 'cal_gen' or module.module.type == 'calculate_don_subsite' %}
  70.                 {% set copy = 'link_calculate' %}
  71.                 {% set icon = '/assets/images/icons/icon-calculate-white.svg' %}
  72.                 {% set target = '_blank' %}
  73.                 {% set linkpath = path('notaris_frontend_calculate',  {source: 'rm_schenking' | trans}) %}
  74.             {% elseif module.module.type == 'cal_purch' or module.module.type ==  'calculate_purch_subsite'%}
  75.                 {% set copy = 'link_calculate' %}
  76.                 {% set target = '_blank' %}
  77.                 {% set icon = '/assets/images/icons/icon-calculate-white.svg' %}
  78.                 {% set linkpath = path('notaris_frontend_calculate',  {source:'rm_aankoop' | trans}) %}
  79.             {% elseif module.module.type == 'cal_cred' or module.module.type ==  'calculate_cred_subsite'%}
  80.                 {% set copy = 'link_calculate' %}
  81.                 {% set icon = '/assets/images/icons/icon-calculate-white.svg' %}
  82.                 {% set target = '_blank' %}
  83.                 {% set linkpath = path('notaris_frontend_calculate', {source: 'rm_krediet' | trans}) %}
  84.             {% elseif module.module.type ==  'calculate_doorhaling_subsite'%}
  85.                 {% set copy = 'link_calculate' %}
  86.                 {% set icon = '/assets/images/icons/icon-calculate-white.svg' %}
  87.                 {% set target = '_blank' %}
  88.                 {% set linkpath = path('notaris_frontend_calculate', {source: 'rm_doorhaling' | trans}) %}
  89.             {% elseif module.module.type ==  'calculate_mand_subsite'%}
  90.                 {% set copy = 'link_calculate' %}
  91.                 {% set target = '_blank' %}
  92.                 {% set icon = '/assets/images/icons/icon-calculate-white.svg' %}
  93.                 {% set linkpath = path('notaris_frontend_calculate', {source: 'rm_mandaat' | trans}) %}
  94.             {% elseif module.module.type == 'cal_don' %}
  95.                 {% set copy = 'link_calculate' %}
  96.                 {% set icon = '/assets/images/icons/icon-calculate-white.svg' %}
  97.                 {# todo[next] rekenmodule openen #}
  98.             {% elseif module.module.type == 'jobs' %}
  99.                 {% set linkpath = path('notaris_frontend_job') %}
  100.                 {% set copy = 'link_jobs' %}
  101.                 {% set icon = '/assets/images/icons/icon-vacancies.svg' %}
  102.             {% elseif module.module.type == 'immo' %}
  103.                 {% set linkpath = 'sv_immo_main_link' | trans %}
  104.                 {% set target = '_blank' %}
  105.                 {% set copy = 'link_immo' %}
  106.                 {% set icon = '/assets/images/icons/icon-immo.svg' %}
  107.             {% elseif module.module.type == 'publi_gen' %}
  108.                 {% if locale == 'nl' %}
  109.                     {% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': 'nieuws-pers'}) %}
  110.                 {% else %}
  111.                     {% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': 'nouveautes'}) %}
  112.                 {% endif %}
  113.                 {% set copy = 'link_publication' %}
  114.                 {% set icon = '/assets/images/icons/icon-publications.svg' %}
  115.             {% elseif module.module.type == 'publi_subsite' %}
  116.                 {% if locale == 'nl' %}
  117.                     {% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': subsite.slug}) %}
  118.                 {% else %}
  119.                     {% set linkpath = path('notaris_frontend_brochures', { 'subsiteSlug': subsite.slug}) %}
  120.                 {% endif %}
  121.                 {% set copy = 'link_publication' %}
  122.                 {% set icon = '/assets/images/icons/icon-publications.svg' %}
  123.             {% elseif module.module.type == 'glos_subsite' %}
  124.                 {% set linkpath = path('notaris_frontend_glossary') %}
  125.                 {% set copy = 'link_glossary' %}
  126.             {% elseif module.module.type == 'faq_subsite' %}
  127.                 {% set linkpath = path('notaris_frontend_faq_subsite', { 'subsiteSlug': subsite.slug}) %}
  128.                 {% set copy = 'link_faq' %}
  129.                 {% set icon = '' %}
  130.             {% endif %}
  131.             <div class="o-layout__item u-1/1 u-1/2@tablet u-padding-right-tiny@tablet">
  132.                 <!-- hier komt de integratie van _mod_fednot_link_column.html.twig die normaal in kolom 1 geïntegreerd wordt -->
  133.                 <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">
  134.                     <span class="u-h4 u-color-white u-text-bold">{{ copy | trans | raw }}</span>
  135.                     {% if icon %}
  136.                         <img src="{{ icon }}" alt="{{ copy | trans | raw }}">
  137.                     {% endif %}
  138.                 </a>
  139.             </div>
  140.         {% endif %}
  141.     {% endfor %}
  142. </div>