{% if editmode %}
{{ include('includes/backend-kopf.html.twig') }}
{% set tabContentArray = {1: 'Optional', 2: 'Content'} %}
{% set tab = 1 %}
<div id="content">
{% if tabContentArray is defined and tab in tabContentArray|keys %}
{{ admin_tabs(tab, tabContentArray) | raw }}
{% endif %}
<section class="tabContent">
<p class="hl">Optionale Einstellung:</p>
{% set element = 'artikel' %}
<div id="{{ element }} ">
{{ pimcore_multiselect(element, {
'width': 200,
'height': 100,
'store': [
['abstand-top', 'Abstand nach oben'],
['abstand-bottom', 'Abstand nach unten']
]
}) }}
</div>
</section>
{% if tabContentArray is defined and 2 in tabContentArray|keys %}
{{ admin_tabs(2, tabContentArray) | raw }}
<section class="tabContent">
<div style="100%;height: 35px;">
<div style="width: calc(100% - 20px);background-color:#f193f8; border:1px solid #cc21c1; padding:10px;">
<strong>Achtung!</strong><br/><br/>
Dieses Snippet muss eine Property Namens 'theme_doc' besitzen.<br/>
Der zugewiesene Wert muss je nach Thema 'homes' oder 'shops' sein.
</div>
</div>
<div style="margin-top: 100px;"><p class="hl">Hintergrundbild: (Breite 2400 x Höhe 480 Pixel)</p></div>
<div class="dragdrop"><span class="parentbox">
{{ pimcore_image("bg", {
"title" : "Bild hier hereinziehen",
"width": 600,
"height": 90,
"hidetext": true,
"thumbnail": "background-image-page-edm"
}) }}
</span></div>
</section>
{% endif %}
</div>
{{ include('includes/backend-fuss.html.twig') }}
{% else %}
{% set abstand_top_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-top') == true)? ' abstand-top' : '' %}
{% set abstand_bottom_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-bottom') == true)? ' abstand-bottom' : '' %}
{% set abstandClasses = abstand_top_class ~ abstand_bottom_class %}
{% set randomID = random() %}
{% set image_path = pimcore_image("bg").getSrc() %}
<div class="{{ abstandClasses }}">
{% set lang = app.request.getLocale() %}
{% if image_path is not empty %}
{{ imageResponsive({"src": image_path,
"ausgabeformat": "div",
"endtag": false,
"class": "experten-bg",
"language": lang }) | raw }}
{% else %}
<div class="quote-bg">
{% endif %}
<div class="owl-carousel owl-theme no-underline constrainer-inner" data-slider="{{ randomID }}">
{% for quote in feedback %}
<div class="quote-item">
<div class="copy font-light" style="padding-top: 25px;">
{# <figure><img class="quote" src="/bundles/app/static/frontend/images/icons/quote.svg"/></figure> #}
<div>
<img class="quote" style="width:40px!important;display: inline-block;margin-right: 1em;margin-top:-15px" src="/bundles/app/static/frontend/images/icons/quote.svg"/>
{{ quote }}
<img class="quote" style="transform: rotate(180deg);width:40px!important;display: inline-block;margin-left: 1em;margin-bottom:0px" src="/bundles/app/static/frontend/images/icons/quote.svg"/>
</div>
</div>
</div>
{% endfor %}
</div>
{% if image_path is empty %}
</div>
{% endif %}
</div>
<script type="text/javascript">
(function () {
var moduleName = 'quotes_slider_{{ randomID }}_module'; // naming convention XXX_module
if (typeof selt === 'undefined') {
selt = {
modules: {}
};
} else if (!selt.modules) {
selt.modules = {};
}
selt.modules[moduleName] = {
name: moduleName,
init: function () {
init();
}
};
function init() {
galleryEl = $('[data-slider="{{ randomID }}"]');
galleryEl.owlCarousel({
loop: true,
items: 1,
margin: 0,
nav: true,
autoplay:false,
dots:false,
autoplayTimeout:10000,
autoplayHoverPause:true,
autoplaySpeed: 1500,
navText: [
'<svg class="no-theme" viewBox="0 0 27.2 105.2" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><polygon points="25.4,105.2 0,52 25.4,0 27.2,0.9 2.2,52 27.2,104.3"/></svg>',
'<svg class="no-theme" viewBox="0 0 27.2 105.2" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><polygon points="25.4,105.2 0,52 25.4,0 27.2,0.9 2.2,52 27.2,104.3"/></svg>'
]
});
}
}());//EOS
</script>
{% endif %}