{#
{
"key": "framework_cards_mazda",
"category": "mazda",
"label": "clickable Cards mazda",
"description": "Toont een dynamisch aantal kaarten naast elkaar waar op je kan drukken",
"allowMove": true,
"blocks": [
{
"key": "block-0",
"size": 4,
"buttons": true,
"multiple": true,
"minimum": 3,
"required": "media",
"fields": [
{
"key": "title",
"type": "text",
"label": "Card title"
},
{
"key": "content",
"type": "textarea",
"label": "Tekst"
}
]
}
]
}
#}
<section id="{{wrapper.cssId is defined ? wrapper.cssId : ''}}" class="cards {{wrapper.cssClass is defined ? wrapper.cssClass : ''}}">
<div class="container">
{% if wrapper.label or wrapper.intro is not empty %}
<div class="introblock">
{% 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 class="row blocks">
{% for b in wrapper.blocks %}
<div class="col-sm-12 col-md-6 col-lg-{{wrapper.gridSize > 0 ? 12 / wrapper.gridSize : 4}}"
{% if b.config.link is not empty %}onclick="location.href='{{ b.config.link }}';" style="cursor: pointer;"{% endif %}>
<div class="card">
<div class="container overflow">
{% if b.media is not empty %}
<div class="image-wrapper">
<div class="image" style="background: url('/{{b.media.getWebPath() }}') no-repeat center; background-size: cover;">
</div>
</div>
{% endif %}
</div>
<div class="card-body card-content">
<h3 class="card-title">{{b.config.title}}</h3>
<p>
{{b.config.content|raw}}
</p>
{% if b.config.buttons is defined %}
<div class="btns">
{% 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 {{button.class}}">
{{button.label}}
<i class="fa fa-angle-right"></i>
</a>
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</section>