{% extends "layout.html.twig" %}
{#
{% use AppBundle/Helper/Apik %}
#}
{% block content %}
{{ pimcore_areablock("myAreablock") }}
<!-- #main -->
<main id="main" role="main">
{{ pimcore_areablock('contentTop') }}
<div class="apk-magnesium"><!-- start magnesium -->
{% if editmode %}<!-- start section 1 -->
<div class="uk-container apk-container-1400">
<div uk-alert>
<h1 class="uk-h1">Banner Magnésium</h1>
</div>
<ul uk-tab>
<li><a href="#">Configurations</a></li>
<li class="uk-active"><a href="#">Content Edit</a></li>
</ul>
<ul class="uk-switcher uk-margin">
<li class="apk-size-20 uk-grid-small" uk-grid>
<div class="uk-width-1-2@m" uk-margin>
<div>Afficher un scroll ?</div>
{{ pimcore_select("scroll", {
"store" : [
['', 'Aucun'],
['apk-scroll', 'SCROLL'],
['apk-top', 'TOP']
],
"defaultValue" : "apk-scroll"
}) }}
</div>
</li>
<li class="uk-active">
<div class="uk-margin-large-bottom">
<div class="uk-margin-small-bottom"><strong>Image de background</strong></div>
{{ pimcore_image('bg-image') }}
<div class="uk-margin"><strong>Titre de la banner</strong></div>
<h2 class="uk-h2">
{{ pimcore_textarea("content-title",{
"nl2br" : true
}) }}
</h2>
<div class="uk-margin"><strong>Texte de la banner</strong></div>
{{ pimcore_wysiwyg("content") }}
</div>
</li>
</ul>
</div>
{% else %}
<section class="apk-banner-magnesium">
<div class="uk-margin-medium-bottom">
<div class="uk-cover-container uk-flex uk-flex-middle">
{% if pimcore_image('bg-image').src %}
{{ pimcore_image('bg-image').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}
{% endif %}
<div class="uk-container apk-container-1400">
<div class="uk-position-relative uk-height-1-1">
<div class="uk-margin-left uk-margin-right">
<h1>{{ pimcore_textarea("content-title", {"nl2br" : true})|raw }}</h1>
<div class="apk-content">
{{ pimcore_wysiwyg("content") }}
</div>
</div>
</div>
</div>
</div>
{# Scroll géré dans le main.js #}
{% if pimcore_select("scroll").data == "apk-scroll" or pimcore_select("scroll").data == "apk-top" %}
<div class="apk-scroll-container">
<div class="uk-container apk-container-1400">
<div class="uk-position-relative">
{% if pimcore_select("scroll").data == "apk-scroll" %}
<div class="apk-scroll">
{{ "SCROLL"|trans }}
</div>
{% elseif pimcore_select("scroll").data == "apk-top" %}
<div class="apk-scroll apk-top">
{{ "TOP"|trans }}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</section>
{% endif %}<!-- end section 1 -->
<!-- start section 2 -->
<div class="apk-section-grid uk-margin-large-top uk-margin-large-bottom">
<div class="uk-container apk-container-1400 uk-text-center">
<h2 class="uk-margin-medium-top">{{ pimcore_textarea("sectiontwo-title", {"nl2br" : true})|raw }}</h2>
<h3>{{ pimcore_textarea("sectiontwo-subtitle", {"nl2br" : true})|raw }}</h3>
<div class="uk-child-width-1-4@m uk-child-width-1-2@s uk-text-center" uk-grid>
{% for i in pimcore_block('sectiontwo').iterator %}
<div class="apk-content-section-grid">
{{ pimcore_image('sectiontwo-image') }}
{{ pimcore_wysiwyg("sectiontwo-content") }}
</div>
{% endfor %}
</div>
<div class="apk-content-sentence uk-text-left uk-margin-large-top uk-margin-bottom">{{ pimcore_textarea("sectiontwo-sentence", {"nl2br" : true})|raw }}</div>
</div>
</div>
<!-- end section 2 -->
{% if editmode %}<!-- start section 3 -->
<div class="uk-container apk-container-1400">
<div uk-alert>
<h1 class="uk-h1">Section 3</h1>
</div>
<ul uk-tab>
<li><a href="#">Configurations</a></li>
<li class="uk-active"><a href="#">Content Edit</a></li>
</ul>
<ul class="uk-switcher uk-margin">
<li class="apk-size-20 uk-grid-small" uk-grid>
<div class="uk-width-1-2@m" uk-margin>
<div>Afficher un scroll ?</div>
{{ pimcore_select("scrolltwo", {
"store" : [
['', 'Aucun'],
['apk-scroll', 'SCROLL'],
['apk-top', 'TOP']
],
"defaultValue" : "apk-scroll"
}) }}
</div>
</li>
<li class="uk-active">
<div class="uk-margin-large-bottom">
<div class="uk-margin-small-bottom"><strong>Image de background</strong></div>
{{ pimcore_image('sectionthree-image') }}
<div class="uk-margin-small-bottom"><strong>Image de background (mobile)</strong></div>
{{ pimcore_image('sectionthree-image-mobile', {'width' : 200}) }}
<div class="uk-margin"><strong>Titre de la banner</strong></div>
<h2 class="uk-h2">
{{ pimcore_textarea("sectionthree-title",{
"nl2br" : true
}) }}
{{ pimcore_textarea("sectionthree-subtitle",{
"nl2br" : true
}) }}
</h2>
<div class="uk-margin"><strong>Texte de la banner</strong></div>
{{ pimcore_wysiwyg("sectionthree-content") }}
<div class="uk-margin"><strong>Petite phrase</strong></div>
{{ pimcore_textarea("sectionthree-sentence", {"nl2br" : true})|raw }}
</div>
</li>
</ul>
</div>
{% else %}
<section>
<div class="apk-section-wysiwyg">
<div class="uk-cover-container uk-flex uk-flex-middle">
{% if pimcore_image('sectionthree-image').src %}
{{ pimcore_image('sectionthree-image').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}
{% endif %}
{% if pimcore_image('sectionthree-image-mobile').src %}
{{ pimcore_image('sectionthree-image-mobile').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null, 'class': 'uk-hidden@m'}})|raw }}
{% endif %}
<div class="uk-container apk-container-1400">
<div class="uk-position-relative uk-height-1-1">
<div class="uk-child-width-1-2@m" uk-grid>
<div>
</div>
<div>
<h2 class="uk-margin-remove-bottom">{{ pimcore_textarea("sectionthree-title", {"nl2br" : true})|raw }}</h2>
<h2 class="uk-margin-small-top"><span>{{ pimcore_textarea("sectionthree-subtitle", {"nl2br" : true})|raw }}</span></h2>
<div class="uk-margin-large-top uk-margin-medium-bottom apk-content">
{{ pimcore_wysiwyg("sectionthree-content") }}
</div>
<div class="apk-content-sentence uk-margin-xlarge-top uk-text-left">{{ pimcore_textarea("sectionthree-sentence", {"nl2br" : true})|raw }}</div>
</div>
</div>
</div>
</div>
</div>
{# Scroll géré dans le main.js #}
{% if pimcore_select("scrolltwo").data == "apk-scroll" or pimcore_select("scroll").data == "apk-top" %}
<div class="apk-scroll-container">
<div class="uk-container apk-container-1400">
<div class="uk-position-relative">
{% if pimcore_select("scrolltwo").data == "apk-scroll" %}
<div class="apk-scroll">
{{ "SCROLL"|trans }}
</div>
{% elseif pimcore_select("scrolltwo").data == "apk-top" %}
<div class="apk-scroll apk-top">
{{ "TOP"|trans }}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</section>
{% endif %}<!-- end section 3 -->
<!-- start section 4 -->
<div class="apk-section-hexagone">
<div class="uk-container apk-container-1200">
<div class="apk-container-hexagone">
<div class="uk-child-width-1-2@m" uk-grid>
<div>
<h2 class="uk-margin-medium-top uk-margin-remove-bottom">{{ pimcore_textarea("sectionfour-title", {"nl2br" : true})|raw }}</h2>
<h2 class="uk-margin-small-top"><span>{{ pimcore_textarea("sectionfour-subtitle", {"nl2br" : true})|raw }}</span></h2>
<div class="uk-margin-top apk-content">
{{ pimcore_wysiwyg("sectionfour-content", {"nl2br" : true})|raw }}
</div>
<div class="apk-content-sentence uk-margin-large-top uk-text-left">{{ pimcore_textarea("sectionfour-sentence", {"nl2br" : true})|raw }}</div>
</div>
<div class="uk-background-contain uk-height-large uk-panel uk-flex uk-flex-center uk-flex-middle uk-padding-remove" style="background-image: url('/static/img/pictos/hexagone.svg');">
<div class="apk-section-hexagone-image">{{ pimcore_image('sectionfour-image') }}</div>
</div>
</div>
</div>
</div>
</div>
<!-- end section 4 -->
{% if editmode %}<!-- start section 5 -->
<div class="uk-container apk-container-1400">
<div uk-alert>
<h1 class="uk-h1">Section 5</h1>
</div>
<ul uk-tab>
<li><a href="#">Configurations</a></li>
<li class="uk-active"><a href="#">Content Edit</a></li>
</ul>
<ul class="uk-switcher uk-margin">
<li class="apk-size-20 uk-grid-small" uk-grid>
<div class="uk-width-1-2@m" uk-margin>
<div>Afficher un scroll ?</div>
{{ pimcore_select("scrollthree", {
"store" : [
['', 'Aucun'],
['apk-scroll', 'SCROLL'],
['apk-top', 'TOP']
],
"defaultValue" : "apk-scroll"
}) }}
</div>
</li>
<li class="uk-active">
<div class="uk-margin"><strong>Titre</strong></div>
<h2 class="uk-h2">
{{ pimcore_textarea("sectionfive-title",{
"nl2br" : true
}) }}
</h2>
{% for i in pimcore_block('sectionfive').iterator %}
<div class="uk-margin-large-bottom">
<div class="uk-margin-small-bottom"><strong>Image hexagonale</strong></div>
{{ pimcore_image('sectionfive-hexagone') }}
<div class="uk-margin"><strong>Sous-titre</strong></div>
<h3>
{{ pimcore_textarea("sectionfive-subtitle",{
"nl2br" : true
}) }}
</h3>
<div class="uk-margin-small-bottom"><strong>Image</strong></div>
{{ pimcore_image('sectionfive-image') }}
<div class="uk-margin"><strong>Texte</strong></div>
{{ pimcore_wysiwyg("sectionfive-content") }}
</div>
{% endfor %}
<div class="uk-margin"><strong>Petite phrase</strong></div>
{{ pimcore_textarea("sectionfive-sentence", {"nl2br" : true})|raw }}
</li>
</ul>
</div>
{% else %}
<section>
<div class="apk-section-grid-hexagone" uk-height-match="target: .apk-border-heading">
<div class="uk-container apk-container-1400">
<h2 class="uk-text-center">
{{ pimcore_textarea("sectionfive-title",{
"nl2br" : true
}) }}
</h2>
<div class="uk-grid-large uk-child-width-1-2@m uk-child-width-1-3@m uk-text-center" uk-grid uk-height-match="target: .apk-border">
{% for i in pimcore_block('sectionfive').iterator %}
<div class="apk-content">
<div class="apk-border uk-position-relative">
<div class="apk-hexagone-absolute">{{ pimcore_image('sectionfive-hexagone') }}</div>
<h3 class="apk-border-heading">
{{ pimcore_textarea("sectionfive-subtitle",{
"nl2br" : true
}) }}
</h3>
{{ pimcore_image('sectionfive-image') }}
{{ pimcore_wysiwyg("sectionfive-content") }}
</div>
</div>
{% endfor %}
</div>
<p class="apk-content-sentence uk-margin-medium-bottom">{{ pimcore_textarea("sectionfive-sentence", {"nl2br" : true})|raw }}</p>
</div>
{# Scroll géré dans le main.js #}
{% if pimcore_select("scrollthree").data == "apk-scroll" or pimcore_select("scrollthree").data == "apk-top" %}
<div class="apk-scroll-container">
<div class="uk-container apk-container-1400">
<div class="uk-position-relative">
{% if pimcore_select("scrollthree").data == "apk-scroll" %}
<div class="apk-scroll">
{{ "SCROLL"|trans }}
</div>
{% elseif pimcore_select("scrollthree").data == "apk-top" %}
<div class="apk-scroll apk-top">
{{ "TOP"|trans }}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</section>
{% endif %}<!-- end section 5 -->
{% if editmode %}<!-- start section 6 -->
<div class="uk-container apk-container-1400">
<div uk-alert>
<h1 class="uk-h1">Section 6</h1>
</div>
<ul uk-tab>
<li><a href="#">Configurations</a></li>
<li class="uk-active"><a href="#">Content Edit</a></li>
</ul>
<ul class="uk-switcher uk-margin">
<li class="apk-size-20 uk-grid-small" uk-grid>
<div class="uk-width-1-2@m" uk-margin>
<div>Afficher un scroll ?</div>
{{ pimcore_select("scrollsix", {
"store" : [
['', 'Aucun'],
['apk-scroll', 'SCROLL'],
['apk-top', 'TOP']
],
"defaultValue" : "apk-scroll"
}) }}
</div>
</li>
<li class="uk-active">
<div class="uk-margin"><strong>Titre</strong></div>
<div class="uk-margin-large-bottom">
<div class="uk-margin-small-bottom"><strong>Image</strong></div>
{{ pimcore_image('sectionsix-image') }}
<div class="uk-margin"><strong>Titre</strong></div>
<h2 class="uk-margin-medium-top uk-margin-remove-bottom">{{ pimcore_textarea("sectionsix-title", {"nl2br" : true})|raw }}</h2>
<hr>
<h2 class="uk-margin-small-top"><span>{{ pimcore_textarea("sectionsix-subtitle", {"nl2br" : true})|raw }}</span></h2>
<div class="uk-margin"><strong>Texte</strong></div>
{{ pimcore_wysiwyg("sectionsix-content") }}
<div class="uk-margin"><strong>Lien</strong></div>
{{ pimcore_link("sectionsix-link", {"class" : "uk-button"}) }}
</div>
</li>
</ul>
</div>
{% else %}
<section>
<div class="apk-section-grid-half">
<div class="uk-child-width-1-2@m apk-margin-section" uk-grid>
<div>
<div class="uk-container apk-container-700 uk-margin-medium-top">
<h2 class="uk-margin-large-top uk-margin-remove-bottom uk-visible@m">{{ pimcore_textarea("sectionsix-title", {"nl2br" : true})|raw }}</h2>
<h2 class="uk-margin-small-top uk-visible@m"><span>{{ pimcore_textarea("sectionsix-subtitle", {"nl2br" : true})|raw }}</span></h2>
<div class="uk-margin-medium-top apk-content">
{{ pimcore_wysiwyg("sectionsix-content", {"nl2br" : true})|raw }}
{{ pimcore_link("sectionsix-link", {"class" : "uk-button"}) }}
</div>
</div>
</div>
<div class="uk-flex-first uk-flex-last@m">
<div class="uk-background-cover uk-height-1-1 uk-panel uk-flex uk-flex-center uk-flex-middle uk-visible@m" style="background-image: url({{ pimcore_image('sectionsix-image').getSrc() }});">
</div>
<div class="uk-hidden@m">
<div class="uk-margin-left">
<h2 class="uk-margin-large-top uk-margin-remove-bottom">{{ pimcore_textarea("sectionsix-title", {"nl2br" : true})|raw }}</h2>
<h2 class="uk-margin-small-top uk-margin-medium-bottom"><span>{{ pimcore_textarea("sectionsix-subtitle", {"nl2br" : true})|raw }}</span></h2>
</div>
{{ pimcore_image('sectionsix-image') }}
</div>
</div>
</div>
{# Scroll géré dans le main.js #}
{% if pimcore_select("scrollsix").data == "apk-scroll" or pimcore_select("scrollsix").data == "apk-top" %}
<div class="apk-scroll-container">
<div class="uk-container apk-container-1400">
<div class="uk-position-relative">
{% if pimcore_select("scrollsix").data == "apk-scroll" %}
<div class="apk-scroll">
{{ "SCROLL"|trans }}
</div>
{% elseif pimcore_select("scrollsix").data == "apk-top" %}
<div class="apk-scroll apk-top">
{{ "TOP"|trans }}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div><!-- end section 6 -->
</section>
{% endif %}
</div><!-- end magnesium -->
{{ pimcore_areablock('contentBottom') }}
</main><!-- end #main -->
{% endblock %}
{% block inlinescripts %}
{% endblock inlinescripts %}