{#
{
"key": "custom_slider",
"category": "Framework",
"label": "Carousel voor producten",
"description": "",
"allowMove": true,
"blocks": [
{
"key": "block-0",
"size": 12,
"buttons": true,
"multiple": true,
"minimum": 1,
"required": "media",
"fields": [
{
"key": "title",
"type": "textarea",
"label": "Tekst links"
},
{
"key": "content",
"type": "textarea",
"label": "Tekst rechts"
}
]
}
]
}
#}
<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 %}">
<div class="container">
<div class="row">
<div class="col-12">
{% if wrapper.label or wrapper.intro is not empty %}
<div class="introblock d-none d-lg-block">
{% if wrapper.label is not empty %}
<div class="introtitle">
{{wrapper.label|raw}}
</div>
{% endif %}
{% if wrapper.intro is not empty %}
<div class="introtext">
{{wrapper.intro|raw}}
</div>
{% endif %}
</div>
{% endif %}
</div>
</div>
<div class="slides">
{% for b in wrapper.blocks %}
<div class="slide">
<div class="row align-items-center">
<div class="col-12 col-lg-4 content-left text-center text-lg-right">
{{b.config.title|raw}}
{% if b.config.buttons is defined %}
<div class="btns d-none d-lg-block">
{% for button in b.config.buttons %}
<a href="{{button.url}}" {% if button.target is defined and button.target != "null" %} target="{{button.target}}" {% endif %} class="btn btn-blank {{button.class}}">
{{button.label}}
<i class="fa fa-angle-right"></i>
</a>
{% endfor %}
</div>
{% endif %}
</div>
<div class="col-12 col-lg-4 content-center text-center text-lg-left">
{% if b.media is not empty %}
<img src="/{{b.media.getWebPath}}" alt="">
{% endif %}
{% if b.config.buttons is defined %}
<div class="btns d-lg-none">
{% for button in b.config.buttons %}
<a href="{{button.url}}" {% if button.target is defined and button.target != "null" %} target="{{button.target}}" {% endif %} class="btn btn-blank {{button.class}}">
{{button.label}}
<i class="fa fa-angle-right"></i>
</a>
{% endfor %}
</div>
{% endif %}
</div>
<div class="col-12 col-lg-4 content-right {# d-none d-lg-block #}">
{{b.config.content|raw}}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</section>