templates/blocks/custom_slider.html.twig line 1

Open in your IDE?
  1. {#
  2.     {
  3.         "key": "custom_slider",
  4.         "category": "Framework",
  5.         "label": "Carousel voor producten",
  6.         "description": "",
  7.         "allowMove": true,
  8.         "blocks": [
  9.             {
  10.                 "key": "block-0",
  11.                 "size": 12,
  12.                 "buttons": true,
  13.                 "multiple": true,
  14.                 "minimum": 1,
  15.                 "required": "media",
  16.                 "fields": [
  17.                     {
  18.                         "key": "title",
  19.                         "type": "textarea",
  20.                         "label": "Tekst links"
  21.                     },
  22.                     {
  23.                         "key": "content",
  24.                         "type": "textarea",
  25.                         "label": "Tekst rechts"
  26.                     }
  27.                 ]
  28.             }
  29.         ]
  30.     }
  31. #}
  32. <section id="{{wrapper.cssId is defined ? wrapper.cssId : ''}}" class="products-slider {{wrapper.cssClass is defined ? wrapper.cssClass : ''}}" style="{% if wrapper.bgColor %}background-color: {{wrapper.bgColor}};{% endif %}">
  33.   <div class="container">
  34.     <div class="row">
  35.       <div class="col-12">
  36.         {% if wrapper.label or wrapper.intro is not empty %}
  37.           <div class="introblock d-none d-lg-block">
  38.             {% if wrapper.label is not empty %}
  39.               <div class="introtitle">
  40.                 {{wrapper.label|raw}}
  41.               </div>
  42.             {% endif %}
  43.             {% if wrapper.intro is not empty %}
  44.               <div class="introtext">
  45.                 {{wrapper.intro|raw}}
  46.               </div>
  47.             {% endif %}
  48.           </div>
  49.         {% endif %}
  50.       </div>
  51.     </div>
  52.     <div class="slides">
  53.       {% for b in wrapper.blocks %}
  54.       <div class="slide">
  55.         <div class="row align-items-center">
  56.             <div class="col-12 col-lg-4 content-left text-center text-lg-right">
  57.               {{b.config.title|raw}}
  58.               {% if b.config.buttons is defined %}
  59.                 <div class="btns d-none d-lg-block">
  60.                   {% for button in b.config.buttons %}
  61.                     <a href="{{button.url}}" {% if button.target is defined and button.target != "null" %} target="{{button.target}}" {% endif %} class="btn btn-blank {{button.class}}">
  62.                       {{button.label}}
  63.                       <i class="fa fa-angle-right"></i>
  64.                     </a>
  65.                   {% endfor %}
  66.                 </div>
  67.               {% endif %}
  68.             </div>
  69.             <div class="col-12 col-lg-4 content-center  text-center text-lg-left">
  70.               {% if b.media is not empty %}
  71.                 <img src="/{{b.media.getWebPath}}" alt="">
  72.               {% endif %}
  73.               {% if b.config.buttons is defined %}
  74.                 <div class="btns d-lg-none">
  75.                   {% for button in b.config.buttons %}
  76.                     <a href="{{button.url}}" {% if button.target is defined and button.target != "null" %} target="{{button.target}}" {% endif %} class="btn btn-blank {{button.class}}">
  77.                       {{button.label}}
  78.                       <i class="fa fa-angle-right"></i>
  79.                     </a>
  80.                   {% endfor %}
  81.                 </div>
  82.               {% endif %}
  83.             </div>
  84.             <div class="col-12 col-lg-4 content-right {# d-none d-lg-block #}">
  85.               {{b.config.content|raw}}
  86.             </div>
  87.           </div>
  88.       </div>
  89.       {% endfor %}
  90.     </div>
  91.   </div>
  92. </section>