{% if editmode %}
<div class="edit-box">
<h1>KONFIGURATIONEN FÜR DEN AREABRICK:</h1>
<div class="flex gap-20">
<div class="content flex column gap-20">
<div class="content-box">
<p class="edit-p">H1 HEADLINE TEXT:</p>
{{ pimcore_input('h1', {'placeholder':'H1 HEADLINE' }) }}
</div>
<div class="content-box flex gap-20">
<div class="item">
<p class="edit-p">Texttyp wählen:</p>
{{ pimcore_select("TextType", {
"reload": true,
"store": [
["lead", "Lead Text"],
["basic", "Fliess Text"]
],
"defaultValue" : "lead"
}) }}
</div>
<div class="item">
<p class="edit-p">Text breite:</p>
{{ pimcore_select("TextWidth", {
"reload": true,
"store": [
["full-width", "Voll"],
[" ", "Standard"]
],
"defaultValue" : " "
}) }}
</div>
<div class="item">
<p class="edit-p">Buttons einfügen:</p>
{{ pimcore_select("ButtonsRow", {
"reload": true,
"store": [
["true", "Mit Buttons"],
["false", "Ohne Buttons"]
],
"defaultValue" : "false"
}) }}
</div>
<div class="item">
<p class="edit-p">Meilensteine einfügen:</p>
{{ pimcore_select("Milestones", {
"reload": true,
"store": [
["true", "Mit Meilensteine"],
["false", "Ohne Meilensteine"],
],
"defaultValue" : "false"
}) }}
</div>
<div class="item">
<p class="edit-p">Accordion einfügen:</p>
{{ pimcore_select("Accordion", {
"reload": true,
"store": [
["true", "Mit Jobs"],
["false", "Ohne Jobs"],
],
"defaultValue" : "false"
}) }}
</div>
<div class="item">
<p class="edit-p">Abstände oben und unten:</p>
{{ pimcore_select("Padding", {
"reload": true,
"store": [
["small", "Klein"],
["default", "Normal"]
],
"defaultValue" : "default"
}) }}
</div>
<div class="item">
<p class="edit-p">Hintergrund:</p>
{{ pimcore_select("Background", {
"reload": true,
"store": [
["bg-default", "Standard"],
["transparent", "Ohne"]
],
"defaultValue" : "bg-default"
}) }}
</div>
<div class="item">
<p class="edit-p">Team einfügen:</p>
{{ pimcore_select("Team", {
"reload": true,
"store": [
["true", "Mit Team"],
["false", "Ohne Team"],
],
"defaultValue" : "false"
}) }}
</div>
<div class="item">
<p class="edit-p">Video einfügen:</p>
{{ pimcore_select("VideoSelect", {
"reload": true,
"store": [
["true", "Mit Video"],
["false", "Ohne Video"],
],
"defaultValue" : "false"
}) }}
</div>
<div class="item">
<p class="edit-p">Anker Text:</p>
{{ pimcore_input('anchor',{'placeholder':'Anker Text','width':300}) }}
</div>
</div>
</div>
<div class="content flex column gap-20">
<div class="content-box">
<div class="item">
<p class="edit-p">Hintergrundbild ablegen:</p>
{{ pimcore_relation("Image",{
"reload": true,
"types": ["asset"],
"subtypes": {
"asset": ["image"]
}
}) }}
</div>
</div>
<div class="content-box">
<div class="item">
<p class="edit-p">Schattenbild oben ablegen:</p>
{{ pimcore_relation("ShadowImage",{
"reload": false,
"types": ["asset"],
"subtypes": {
"asset": ["image"]
}
}) }}
</div>
<div class="item">
<p class="edit-p">Schattenbild unten ablegen:</p>
{{ pimcore_relation("ShadowImage2",{
"reload": false,
"types": ["asset"],
"subtypes": {
"asset": ["image"]
}
}) }}
</div>
</div>
{% if pimcore_select("VideoSelect").getData() == "true" %}
<div class="content-box">
<div class="item">
<p class="edit-p">Video Vorschaubild ablegen:</p>
{{ pimcore_relation("VideoPosterImage",{
"reload": true,
"types": ["asset"],
"subtypes": {
"asset": ["image"]
}
}) }}
</div>
<br>
<div class="item">
<p class="edit-p">YouTube Link eintragen:</p>
{{ pimcore_input("YouTubeLink") }}
</div>
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
<section class="{% if pimcore_select("Team").getData() == "true" %}team-section {% endif %} {% if pimcore_select("Accordion").getData() == "true" %} accordion {% endif %} headline-text {% if not pimcore_relation("Image").isEmpty() %} light {% else %} light-beige {% endif %} {{ pimcore_select("Padding").getData() }} {{ pimcore_select("Background").getData() }}" {% if not pimcore_input('anchor').isEmpty() %}id="{{ pimcore_input('anchor').getData() }}"{% endif %}>
{% if not pimcore_relation("ShadowImage").isEmpty() and not editmode %}
<div class="shadow-image-con multi-area-shadow shadow-container">
{{ pimcore_relation("ShadowImage").getElement().getThumbnail('ShadowImage').html({
imgAttributes: {
"class": "shadow-image"
}
}) | raw }}
</div>
{% endif %}
{% if not pimcore_relation("ShadowImage2").isEmpty() and not editmode %}
<div class="shadow-image-con multi-area-shadow multi-area-shadow-2">
{{ pimcore_relation("ShadowImage2").getElement().getThumbnail('ShadowImage').html({
imgAttributes: {
"class": "shadow-image"
}
}) | raw }}
</div>
{% endif %}
{% if not pimcore_relation("Image").isEmpty() %}
{{ pimcore_relation("Image").getElement().getThumbnail('FullHD').html({
imgAttributes: {
"class": "bg-image"
}
}) | raw }}
{% endif %}
{% if not pimcore_input('h1').isEmpty() and pimcore_select("VideoSelect").getData() == "false" %}
<h1 class="vertical">{{ pimcore_input('h1').getData() }}</h1>
{% endif %}
{% if pimcore_select("VideoSelect").getData() == "true" %}
<div class="video-section-container" style="position: relative;">
{% endif %}
<div class="container">
{% if not pimcore_input('h1').isEmpty() and pimcore_select("VideoSelect").getData() == "true" %}
<h1 class="vertical video-h1">{{ pimcore_input('h1').getData() }}</h1>
{% endif %}
{% if editmode %}
<h2>
{{ pimcore_textarea("h2",{
"nl2br": true,
"height": 120,
"placeholder": "H2 Headline Text"
}) }}
</h2>
{% if pimcore_select("Milestones").getData() == "false" %}
<div class="{{ pimcore_select("TextType").getData() }} {{ pimcore_select("TextWidth").getData() }}">
{{ pimcore_wysiwyg('Content', {
height: 200,
customConfig: '/assets/js/editmode/config.js'
}) }}
</div>
{% endif %}
{% endif %}
{% if pimcore_select("Team").getData() == "true" %}
<div class="content-container">
{% endif %}
{% if not editmode and not pimcore_textarea("h2").isEmpty() %}
<h2>{{ pimcore_textarea("h2").getData() | nl2br }}</h2>
{% endif %}
{% if not editmode and not pimcore_wysiwyg('Content').isEmpty() %}
<div
class="{{ pimcore_select("TextType").getData() }} {{ pimcore_select("TextWidth").getData() }} {% if not pimcore_textarea("h2").isEmpty() %}with-headline{% endif %}">
{{ pimcore_wysiwyg('Content').getData() | raw }}
</div>
{% endif %}
{{ pimcore_areablock('AreablockContent', {
'allowed': [
'text',
]
}) }}
{% if pimcore_select("Team").getData() == "true" %}
</div>
{% endif %}
{% if pimcore_select("ButtonsRow").getData() == "true" %}
{% if pimcore_select("Milestones").getData() == "false" %}
<div class="buttons-row flex {{ pimcore_select("TextWidth").getData() }} {% if not pimcore_relation("Image").isEmpty() %} negativ{% else %} default{% endif %}">
{% for i in pimcore_block('linkblock').iterator %}
<button class="primary">
{{ pimcore_link('Link') }}
<svg width="15.708" height="10.709" viewBox="0 0 15.708 10.709">
<g transform="translate(0 0.354)">
<g transform="translate(0)">
<path class="line" d="M7.5,18h15" transform="translate(-7.5 -13)" fill="none" stroke="#b76e2b" stroke-linejoin="round" stroke-width="1"/>
<path class="arrow" d="M18,7.5l5.026,5L18,17.5" transform="translate(-8.027 -7.5)" fill="none" stroke="#b76e2b" stroke-width="1"/>
</g>
</g>
</svg>
</button>
{% endfor %}
</div>
{% endif %}
{% endif %}
{% if pimcore_select("Milestones").getData() == "true" %}
<div class="milestones flex column">
{% for i in pimcore_block('milestones-block').iterator %}
<div class="stone">
<p class="year">{{ pimcore_input('year', {'placeholder':'2000 - 2023', 'width': 200}) }}</p>
<p class="content">{{ pimcore_input('content', {'placeholder':'Felix Hodel Gartenbau gründet seine Einzelfirma im Grabenhof, Kriens'}) }}</p>
</div>
{% endfor %}
</div>
{% endif %}
{% if pimcore_select("Accordion").getData() == "true" %}
<div class="accordion-items flex column benefits">
<div class="content-container">
<div class="block">
{% if editmode %}
{{ pimcore_relations("JobRelations", {
"title": "Jobs Objekte ablegen:",
"types": ["object"],
"subtypes": {
"object": ["object"]
},
"classes": ["Job"]
}) }}
{% else %}
{% for job in pimcore_relations("JobRelations") %}
<div class="parent block-accordion">
<input type="radio" name="item"
id="{{ pimcore_relations("JobRelations").current() }}" hidden/>
<label for="{{ pimcore_relations("JobRelations").current() }}">
<span class="headline">{{ job.headline | nl2br }}</span>
<span class="text-intro">{{ job.intro | nl2br }}</span>
</label>
<div>
{#{% if job.image %}
{{ job.image.thumbnail('JobAccordion').getHtml({
imgAttributes : {
'class':'job-acc-image'
}
}) | raw }}
<br>
<br>
{% endif %}#}
{{ job.text | raw }}
</div>
</div>
{% endfor %}
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
{% if pimcore_select("VideoSelect").getData() == "true" %}
</div>
{% endif %}
{% if pimcore_select("VideoSelect").getData() == "true" and not pimcore_relation("VideoPosterImage").isEmpty() %}
<div class="video-section">
{{ pimcore_relation("VideoPosterImage").getElement().getThumbnail('VideoPosterImage').getHtml() | raw }}
<button class="play">
<a href="{{ pimcore_input("YouTubeLink").getData() }}" target="_blank">
<svg width="165.583" height="165.583" viewBox="0 0 165.583 165.583">
<path id="Icon_ionic-ios-play-circle" data-name="Icon ionic-ios-play-circle"
d="M86.166,3.375a82.791,82.791,0,1,0,82.792,82.791A82.779,82.779,0,0,0,86.166,3.375Zm33.355,84.344L64.911,120.756a1.771,1.771,0,0,1-2.667-1.552V53.13a1.764,1.764,0,0,1,2.667-1.552l54.611,33.037A1.825,1.825,0,0,1,119.522,87.719Z"
transform="translate(-3.375 -3.375)" fill="#fff" opacity="0.6"/>
</svg>
</a>
</button>
</div>
<div class="container">
{{ pimcore_areablock('AreablockVideo', {
'allowed': [
'text',
]
}) }}
</div>
{% endif %}
{% if pimcore_select("Team").getData() == "true" %}
{% if editmode %}
<div class="container">
{{ pimcore_relations("Categories", {
"title": "Team Kategorie Objekte ablegen",
"types": ["object"],
"subtypes": {
"object": ["object"]
},
"classes": ["Category"]
}) }}
<br>
<br>
{{ pimcore_relations("teamPerson", {
"title": "Team Objekte ablegen",
"types": ["object"],
"subtypes": {
"object": ["object"]
},
"classes": ["teamPerson"]
}) }}
</div>
{% else %}
<div class="container">
<div id="filters" class="toolbar {% if pimcore_relations("Categories") | length >= 5 %}big{% endif %}">
<div class="flex space-between all-items">
<button class="filter active all-btn"
data-filter="grid-item">{{ 'Alle_filter' | trans }}</button>
<span class="open-filter" id="open-filter"></span>
</div>
{% for category in pimcore_relations("Categories") %}
{% set categoryName = category.name | lower | replace({" ": "","/":"","-":"","&":"",",":"",".":"","(":"",")":"","+":""}) %}
<button class="filter" data-rel="{{ categoryName }}" data-filter="{{ categoryName }}">{{ category.name }}</button>
{% endfor %}
</div>
</div>
<div class="grid" id="portfolio">
{% for teamPerson in pimcore_relations("teamPerson") %}
<div class="grid-item {% if teamPerson.plant == true %} plant {% endif %} {% for teamCategory in teamPerson.getCategory() %}{{ teamCategory.name | lower | replace({" ": "","/":"","-":"","&":"",",":"",".":"","(":"",")":"","+":""}) }} {% endfor %} {{ teamPerson.teaserSize }}">
<div class="container">
{% if teamPerson.filter %}
{{ teamPerson.portraitimage.thumbnail('TeamOverview').getHtml({
imgAttributes : {
'class':'filter'
}
}) | raw }}
{% else %}
{{ teamPerson.portraitimage.thumbnail('TeamOverview').getHtml({
imgAttributes : {
'class':'no-filter'
}
}) | raw }}
{% endif %}
{% if not teamPerson.plant == true %}
<div class="name">
<p>{{ teamPerson.name }}</p>
</div>
<div class="close-btn">
<button>
<svg x="0px" y="0px" viewBox="0 0 55 55">
<g>
<path d="M49,8.5v-8H0v47h7v7h48v-46H49z M2,45.5v-43h45v6H7v37H2z M53,52.5H9v-5v-37h40h4V52.5z"/>
<path d="M39.485,23.015c-0.391-0.391-1.023-0.391-1.414,0L31,30.086l-7.071-7.071c-0.391-0.391-1.023-0.391-1.414,0
s-0.391,1.023,0,1.414l7.071,7.071l-7.071,7.071c-0.391,0.391-0.391,1.023,0,1.414c0.195,0.195,0.451,0.293,0.707,0.293
s0.512-0.098,0.707-0.293L31,32.914l7.071,7.071c0.195,0.195,0.451,0.293,0.707,0.293s0.512-0.098,0.707-0.293
c0.391-0.391,0.391-1.023,0-1.414L32.414,31.5l7.071-7.071C39.876,24.038,39.876,23.405,39.485,23.015z"/>
</g>
</svg>
</button>
</div>
<div class="description">
{% if teamPerson.name %}
<p class="name-label">{{ teamPerson.name }}</p>
{% endif %}
{% if teamPerson.function %}
<p class="function">{{ teamPerson.function }}</p>
{% endif %}
{% if teamPerson.text %}
<div class="desc-text">
{{ teamPerson.text | raw }}
</div>
{% endif %}
{% if teamPerson.phone %}
<a class="link-item" href="tel:{{ teamPerson.phone }}">{{ teamPerson.phone }}</a>
{% endif %}
{% if teamPerson.email %}
<a class="link-item" href="mailto:{{ teamPerson.email }}">{{ teamPerson.email }}</a>
{% endif %}
</div>
{% endif %}
</div>
</div>
{% endfor %}
</div>
{% endif %}
{% endif %}
</section>
{#
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.1/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.1/ScrollTrigger.min.js"></script>
<script>
gsap.from('#headline-text-h1', {
scrollTrigger : {
scrub: true
},
x: -90
})
</script>
#}