<section class="content-block container container-sm js-fade-in {{ styleModifier | default(null) }}
{{ not pimcore_input('anchorTitle').empty ? 'js-anchor-nav__item' : '' }}"
{% if not pimcore_input('anchorTitle').empty %}data-anchor-nav-title="{{ pimcore_input('anchorTitle').frontend }}"{% endif %}>
{% embed 'Includes/editmode-settings.html.twig' %}
{% block additionalInfo %}
{% endblock %}
{% endembed %}
{{ include('Includes/title-block-editable.html.twig', {
isCentered: true
}) }}
<div class="js-lightbox lightbox-item">
<button class="lightbox__zoom-btn">
<span class="icon icon-search" aria-hidden="true"></span>
</button>
{% do jsConfig().add('lightbox', true) %}
{% set lightBoxSrc = pimcore_image('facts-area', {
thumbnail: 'lightbox-facts-area',
path: true
}) %}
<a href="{{ lightBoxSrc.src }}"
class="js-lightbox__item facts-area__img-wrapper d-block">
{% if editmode %}
{{ pimcore_image('facts-area', {
thumbnail: 'facts-area',
class: 'js-lazy-img img-fluid facts-area__img',
lowQualityPlaceholder: true,
})|raw }}
{% elseif not pimcore_image('facts-area').empty %}
{% set description = getImageDescription(pimcore_image('facts-area').image) %}
{{ pimcore_image('facts-area').image.thumbnail('facts-area').html({
imgAttributes: {
class: 'js-lazy-img img-fluid facts-area__img',
title: description|default(''),
alt: description|default(''),
},
lowQualityPlaceholder: true,
})|raw }}
{% endif %}
</a>
</div>
<div class="row vertical-gutter--default justify-content-center">
{% for i in pimcore_iterate_block(pimcore_block('factsboxblock')) %}
<div class="{% if editmode %}col-md-12{% else %}col-md-6{% endif %} vertical-gutter__item ">
{% if editmode %}
<div class="editmode-box editmode-box--info">
<div class="editmode-box__heading">
Factbox
</div>
<div>
<label>Factbox color: </label>
{{ pimcore_select("factbox_color", {
"store": [
["primary-light", "Dark Green"],
["green", "Light Green"],
],
"defaultValue" : "primary-light"
}) }}
</div>
</div>
{% endif %}
<div class="facts-box facts-box--{{ pimcore_select("factbox_color").data }}">
<h3 class="facts-box__title">{{ pimcore_input('factbox_title') }}</h3>
<ul class="list-unstyled facts-box__list">
{% for i in pimcore_iterate_block(pimcore_block('factsblock')) %}
{% if editmode %}
<div class="editmode-box editmode-box--info">
<div>
<label>Icon</label>
{{ pimcore_select("fact_icon", {
"store": [
["route-start", "route start"],
["distance", "distance"],
["stage", "stage"],
["route-end", "route-end"],
["difficulty", "difficulty"],
],
"defaultValue" : "route-start"
}) }}<br>
<label>Fact Label: </label>
{{ pimcore_input('fact_label') }}<br>
<label>Fact Text: </label>
{{ pimcore_input('fact_text') }}
</div>
</div>
{% else %}
<li class="facts-box__list-item js-fade-in">
<span class="icon icon-{{ pimcore_select("fact_icon").data }} facts-box__icon" aria-hidden="true"></span>
{{ pimcore_input('fact_label').data }}: <strong class="ml-1">{{ pimcore_input('fact_text').data }}</strong>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
{% endfor %}
</div>
</section>