templates/blocks/framework_empty.html.twig line 1

Open in your IDE?
  1. {#
  2.   {
  3.     "key": "framework_empty",
  4.     "category": "Framework",
  5.     "label": "Content / Media / Module",
  6.     "description": "...",
  7.     "allowMove": true,
  8.     "divider": true,
  9.     "priority": 1,
  10.     "blocks": [
  11.       {
  12.         "key": "block-0",
  13.         "size": 12,
  14.         "required": "",
  15.         "buttons": true,
  16.         "multiple": true,
  17.         "fields": []
  18.       }
  19.     ]
  20.   }
  21. #}
  22. <section
  23.   class="empty {{wrapper.cssClass is defined ? wrapper.cssClass : ''}}"
  24.   id="{{wrapper.cssId is defined ? wrapper.cssId : ''}}"
  25.   style="{% if wrapper.bgColor %}background-color: {{wrapper.bgColor}};{% endif %}"
  26. >
  27.   <div class="container">
  28.     {% if wrapper.label or wrapper.intro is not empty %}
  29.       <div class="introblock">
  30.         {% if wrapper.label is not empty %}
  31.           <div class="introtitle">
  32.             {{wrapper.label|raw}}
  33.           </div>
  34.         {% endif %}
  35.         {% if wrapper.intro is not empty %}
  36.           <div class="introtext">
  37.             {{wrapper.intro|raw}}
  38.           </div>
  39.         {% endif %}
  40.       </div>
  41.     {% endif %}
  42.     <div class="row">
  43.       {% for b in wrapper.blocks %}
  44.         <div class="col-sm-12 col-md-12 col-lg-{{b.width}} {{b.config.class}}" id="{{b.config.id}}">
  45.           <div class="block">
  46.             {% if b.data.type is defined and b.data.type == 'video' %}
  47.               <div class="responsive-wrapper">
  48.                 {{b.video|raw}}
  49.               </div>
  50.             {% elseif b.media is not empty %}
  51.               <img src="/{{b.media.getWebPath}}"/>
  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>