<div class="{% if pimcore_select("padding").getData() == "default" %} content-block {% elseif pimcore_select("padding").getData() == "no-top" %} content-block-no-top {% elseif pimcore_select("padding").getData() == "no-bottom" %} content-block-no-bottom {% endif %} content-block--bg-{{ pimcore_select('background').getData() ?? 'none' }}"> <div class="container-fluid"> <div class="row"> <div class="{% if pimcore_select("size").getData() == "default" %} col-lg-10 offset-lg-1 {% endif %}"> {% if editmode %} <div class="ntr-editor-bar"> <div class="row"> <div class="col-auto"> {{ pimcore_select("background", { "store": [ ["none", "Geen achtergrond"], ["light", "Lichte achtergrond"], ], "defaultValue" : "none", "reload": true }) }} </div> <div class="col-auto"> {{ pimcore_select("size", { "store": [ ["none", "Volledige breedte"], ["default", "Standaard"], ], "defaultValue" : "none", "reload": true }) }} </div> <div class="col-auto"> {{ pimcore_select("padding", { "store": [ ["default", "Grote spacing"], ["none", "geen spacing"], ["no-top", "geen spacing top"], ["no-bottom", "geen spacing bottom"], ], "defaultValue" : "default", "reload": true }) }} </div> </div> </div> {% endif %} {% set galleryBlocks = pimcore_block('galleryBlock', {'reload': false, 'manual': true}).start() %} <div class="row row--gallery"> <div class="row justify-content-center"> <div class="col-lg-10 px-md-0"> <h2 class="title">{{ pimcore_input('title', {'placeholder': 'Titel...'}) }}</h2> </div> </div> {% for i in galleryBlocks.iterator %} {% do galleryBlocks.blockConstruct() %} <div class="col--gallery col-md-{{ pimcore_select("width").getData() ?? 4 }}"> {% do galleryBlocks.blockStart() %} {% if editmode %} <div class="ntr-editor-bar"> {{ pimcore_select("width", { "store": [ ["3", "1/4 breedte"], ["4", "1/3 breedte"], ["6", "1/2 breedte"], ], "defaultValue" : "4", "reload": true }) }} </div> {% endif %} {% set thumbnail_number = pimcore_select("width").getData() ?? 4 %} {% set thumbnail = 'Gallery' ~ thumbnail_number ~ 'Thumbnail' %} <div class="img-wrapper"> {{ pimcore_image("image", { 'thumbnail': thumbnail, }) }} <h4 class="py-3" >{{ pimcore_input('title', {'placeholder': 'Titel...'}) }}</h4> {{ pimcore_wysiwyg("blockContent", { "height": 300, "placeholder": 'Your text...', "stylesSet": [ {name: 'Button (donker)', element: 'a', attributes: {'class': 'btn btn-dark'} }, {name: 'Button (licht)', element: 'a', attributes: {'class': 'btn btn-outline-dark'} } ] }) }} </div> {% do galleryBlocks.blockEnd() %} </div> {% do galleryBlocks.blockDestruct() %} {% endfor %} {% do galleryBlocks.end() %} </div><!--/ .row --> </div> </div><!--/ .row --> </div><!--/ .container-fluid --></div>