{% set spacingSelect %}
{{ pimcore_checkbox("checkSpacing", {
"reload": true
}) }}
{% endset %}
{% set noSpacingTop = '' %}
{% set brickAnchorId = '' %}
{% if pimcore_checkbox('checkSpacing').isChecked() %}
{% set noSpacingTop = 'no-offset-top' %}
{% endif %}
{% set UID = uniqid() %}
{% if pimcore_input("brickAnchorIdInput") is not empty %}
{% set brickAnchorId = pimcore_input("brickAnchorIdInput")|lowercase %}
{% endif %}
{% set imageAttributes = {
"attributes" : {
"data-speed": "-1"
}
} %}
{% if editmode %}
<div class="flex-col offset-bottom-single">
<div class="col xs-12 m-6 l-3">
<span class="hint">{{ 'admin.brick.hint.anchorId' |trans }}</span>
{{ pimcore_input("brickAnchorIdInput") }}
</div>
<div class="col xs-12 m-6 l-3">
<div class="select-items">
<div class="hint">
{{ 'admin.brick.hint.paddingTop' |trans }}
</div>
{{ spacingSelect }}
</div>
</div>
</div>
<div class="flex-col offset-bottom-single">
<div class="col xs-12 m-6 l-6">
<span class="hint">{{ 'admin.brick.hint.addBackgroundimage' }}</span>
{{ pimcore_image("teaserText3ColBackground", {
"title": "Drag your image here",
"width": 400,
"thumbnail": "teaserText3ColBackground" ~ bundleName,
"reload": true
}) }}
</div>
</div>
{% endif %}
<div id="{{ 'uid' ~ UID |raw }}" class="section">
<div class="text-image has-background-image js ">
<div class="flex-column box-center">
<div class="background-image">
<div class="image">
{% set teaserTextBackgroundImage = pimcore_image("teaserText3ColBackground").getThumbnail("teaserText3ColBackground" ~ bundleName) %}
{% if teaserTextBackgroundImage is not empty %}
{{ teaserTextBackgroundImage.getHTML(imageAttributes) |raw }}
{#IE Fix for thumbnails rendering start#}
<script type='text/javascript'>
var waitForJQuery = setInterval(function () {
if (typeof $ != 'undefined') {
$(function() {
if (navigator.userAgent.match(/msie/i) || navigator.userAgent.match(/trident/i) ){
$(".text-image.has-background-image .background-image .image").css({
position: "absolute",
width: "100%",
height: "100%",
background: "url( {{ pimcore_image("teaserSpecificBackground").getSrc() }} ) center right 100%/cover no-repeat"
});
$(".text-image.has-background-image .background-image img").hide();
}
});
clearInterval(waitForJQuery);
}
}, 50);
</script>
{#IE Fix for thumbnails rendering end#}
{% endif %}
</div>
</div>
<div class="content-container">
<div class="main-content flex-col box-center box-align-center text-center offset">
<div class="col xs-12 m-10">
<div class="text-only">
<div class="headline">
<h2>{{ pimcore_input("teaserText3ColBackgroundHeadline", {
"placeholder": 'Headline'
})|trademark }}
</h2>
</div>
</div>
</div>
<div class="xs-12 flex-col box-center content-image">
<div class="col xs-12 s-6 l-3 flex-column box-center box-align-center">
<div class="image">
{{ pimcore_image("teaserText3ColSublineIcon1", {
"title": "Drag your image here",
"width": 50,
"height": 60,
"thumbnail": "teaserText3ColSublineIcon1" ~ bundleName,
"reload": true
}) }}
</div>
<div class="text-only">
<h4>{{ pimcore_input("teaserText3ColBackgroundHeadlinePart1") }}</h4>
</div>
</div>
<div class="col xs-12 s-6 l-3 flex-column box-center box-align-center">
<div class="image">
{{ pimcore_image("teaserText3ColSublineIcon2", {
"title": "Drag your image here",
"width": 50,
"height": 60,
"thumbnail": "teaserText3ColSublineIcon2" ~ bundleName,
"reload": true
}) }}
</div>
<div class="text-only">
<h4>{{ pimcore_input("teaserText3ColBackgroundHeadlinePart2") }}</h4>
</div>
</div>
<div class="col xs-12 s-6 l-3 flex-column box-center box-align-center">
<div class="image">
{{ pimcore_image("teaserText3ColSublineIcon3", {
"title": "Drag your image here",
"width": 50,
"height": 60,
"thumbnail": "teaserText3ColSublineIcon3" ~ bundleName,
"reload": true
}) }}
</div>
<div class="text-only">
<h4>{{ pimcore_input("teaserText3ColBackgroundHeadlinePart3")|trademark }}</h4>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>