templates/blocks/framework_empty.html.twig line 1

Open in your IDE?
  1. {#
  2.   {
  3.     "key": "framework_empty",
  4.     "label": "Lege sectie",
  5.     "description": "Lege sectie.",
  6.     "allowMove": true,
  7.     "category": "empty",
  8.     "blocks": [
  9.       {
  10.         "key": "block-0",
  11.         "size": 12,
  12.         "required": "",
  13.         "buttons": true,
  14.         "multiple": true,
  15.         "fields": []
  16.       }
  17.     ]
  18.   }
  19. #}
  20. <section id="{{wrapper.cssId is defined ? wrapper.cssId : ''}}" class="empty {{wrapper.cssClass is defined ? wrapper.cssClass : ''}}">
  21.   <div class="container {{firstBlock.config.class is not empty ? firstBlock.config.class : ''}}">
  22.     {% if wrapper.label or wrapper.intro is not empty %}
  23.       <div class="introblock">
  24.         {% if wrapper.label is not empty %}
  25.           <div class="introtitle">
  26.             {{wrapper.label|raw}}
  27.           </div>
  28.         {% endif %}
  29.         {% if wrapper.intro is not empty %}
  30.           <div class="introtext">
  31.             {{wrapper.intro|raw}}
  32.           </div>
  33.         {% endif %}
  34.       </div>
  35.     {% endif %}
  36.     <div class="row">
  37.       {% for b in wrapper.blocks %}
  38.         <div class="col-sm-12 col-md-12 col-lg-{{b.width}} {{b.offset('offset-lg-')}} {{b.config.class}}" id="{{b.config.id}}">
  39.           <div class="block">
  40.             {% if b.data.type is defined and b.data.type == 'video' %}
  41.               <div class="responsive-wrapper">
  42.                 {{b.video|raw}}
  43.               </div>
  44.             {% elseif b.media is not empty %}
  45.               <picture>
  46.                 {% if b.media.hasWebp() %}
  47.                 <source srcset="/{{b.media.getWebpPath}}" type="image/webp">
  48.                 {% endif %}
  49.                 <source srcset="/{{b.media.getWebPath}}" type="{{b.media.mime}}">
  50.                 <img alt="{{b.media.description_alt}}"/>
  51.               </picture>
  52.             {% else %}
  53.               {{b.content|raw}}
  54.             {% endif %}
  55.             {% if b.config.buttons is defined %}
  56.               <div class="btns">
  57.                 {% for button in b.config.buttons %}
  58.                   <a href="{{button.url}}" {% if button.target is defined and button.target != "null" %} target="{{button.target}}" {% endif %} class="btn {{button.class}}">
  59.                     {{button.label}}
  60.                     <i class="fa fa-angle-right"></i>
  61.                   </a>
  62.                 {% endfor %}
  63.               </div>
  64.             {% endif %}
  65.           </div>
  66.         </div>
  67.       {% endfor %}
  68.     </div>
  69.   </div>
  70. </section>