{% if editmode %}
<div class="uk-container apk-container-1400">
<div uk-alert>
<h1 class="uk-h1">APK BANNER TEXT</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>
{# Colonne 1 #}
<div class="uk-width-1-2@m" uk-margin>
<div>Type de heading pour le titre ?</div>
{{ pimcore_select("content-heading", {
"store" : [
['span', 'span'],
['h1', 'Heading 1'],
['h2', 'Heading 2'],
['h3', 'Heading 3'],
['h4', 'Heading 4'],
['h5', 'Heading 5'],
['h6', 'Heading 6']
],
"defaultValue" : "h2"
}) }}
<div><strong>Style</strong> du heading pour le titre ?</div>
{{ pimcore_select("content-heading-style", {
"store" : [
['h1', 'Heading 1'],
['h2', 'Heading 2'],
['h3', 'Heading 3'],
['h4', 'Heading 4'],
['h5', 'Heading 5'],
['h6', 'Heading 6']
],
"defaultValue" : "h2"
}) }}
<div><strong>Alignement</strong> du texte</div>
{{ pimcore_select("text-alignment", {
"store" : [
['uk-text-left', 'Gauche'],
['uk-text-right', 'Droite'],
['uk-text-center', 'Centré'],
],
"defaultValue" : "uk-text-left"
}) }}
<div>Couleur du texte</div>
{{ pimcore_select("overlay-color", {
"store" : [
['uk-dark', 'Foncé'],
['uk-light', 'Clair']
],
"defaultValue" : "uk-dark"
}) }}
</div>
{# Colonne 2 #}
<div class="uk-width-1-2@m" uk-margin>
<div>Largeur du container du texte</div>
{{ pimcore_select("text-width", {
"store" : [
['apk-container-200', '200px'],
['apk-container-300', '300px'],
['apk-container-400', '400px'],
['apk-container-500', '500px'],
['apk-container-600', '600px'],
['apk-container-700', '700px'],
['apk-container-800', '800px'],
['apk-container-900', '900px'],
['apk-container-1000', '1000px'],
['apk-container-1100', '1100px'],
],
"defaultValue" : "apk-container-600"
}) }}
<div>Position de l'image en cover</div>
{{ pimcore_select("cover-position", {
"store" : [
['apk-cover-top-left', 'Haut gauche'],
['apk-cover-top-center', 'Haut centré'],
['apk-cover-top-right', 'Haut droite'],
['apk-cover-center-left', 'Centré gauche'],
['apk-cover-center', 'Centré centré'],
['apk-cover-center-right', 'Centré droit'],
['apk-cover-bottom-left', 'Bas gauche'],
['apk-cover-bottom-center', 'Bas centré'],
['apk-cover-bottom-right', 'Bas droit'],
],
"defaultValue" : "apk-cover-center"
}) }}
<div>Espacement en haut du block</div>
{{ pimcore_select("margin-top", {
"store" : [
['', 'Aucun'],
['uk-margin-small-top', 'Petit'],
['uk-margin-medium-top', 'Moyen'],
['uk-margin-large-top', 'Grand'],
['uk-margin-xlarge-top', 'Très grand'],
],
"defaultValue" : ""
}) }}
<div>Espacement en bas du block</div>
{{ pimcore_select("margin-bottom", {
"store" : [
['', 'Aucun'],
['uk-margin-small-top', 'Petit'],
['uk-margin-medium-top', 'Moyen'],
['uk-margin-large-top', 'Grand'],
['uk-margin-xlarge-top', 'Très grand'],
],
"defaultValue" : ""
}) }}
</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-small-bottom"><strong>Image de background (version mobile)</strong></div>
{{ pimcore_image('bg-image-mobile') }}
<div class="uk-margin"><strong>Image du logo</strong></div>
{{ pimcore_image('logo-image', {'width' : 300 }) }}
<div class="uk-margin"><strong>Titre de la section</strong></div>
<h2 class="uk-h2">
{{ pimcore_textarea("content-title",{
"nl2br" : true
}) }}
</h2>
<div class="uk-margin"><strong>Contenu</strong></div>
{{ pimcore_wysiwyg("content") }}
<div class="uk-margin"><strong>Bouton (optionnel)</strong></div>
<div class="actions">
{{ pimcore_link("content-btn", {
"class" : "uk-button"
}) }}
<hr>
<dt>Google Analytics Event: Action</dt>
<dd>{{ pimcore_input("content-btn-secondary-ga-1-1") }}</dd>
<hr>
<dt>Google Analytics Event: Category</dt>
<dd>{{ pimcore_input("content-btn-secondary-ga-1-2") }}</dd>
<hr>
<dt>Google Analytics Event: Label</dt>
<dd>{{ pimcore_input("content-btn-secondary-ga-1-3") }}</dd>
</div>
</div>
</li>
</ul>
</div>
{% endif %}
{% if not editmode %}
<div class="apk-areabrick-container {{ pimcore_select("overlay-color").getData() }} {{ pimcore_select("margin-top") }} {{ pimcore_select("margin-bottom") }}">
<div class="uk-cover-container uk-flex uk-flex-middle {{ pimcore_select("cover-position") }}">
{% if pimcore_image('bg-image').src %}
{#<img src="{{ base_64(app.request.getSchemeAndHttpHost ,pimcore_image('bg-image').thumbnail('full-background'))|raw }}" alt="" uk-cover>#}
{{ pimcore_image('bg-image').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null, 'class': 'uk-visible@m'}})|raw }}
{% endif %}
{% if pimcore_image('bg-image-mobile').src %}
{{ pimcore_image('bg-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-flex uk-flex-middle">
<div class="{{ pimcore_select('text-width').data }}">
{% if pimcore_image('logo-image').src %}
<div class="apk-logo">
{{ pimcore_image('logo-image').thumbnail('big-logo').html()|raw }}
</div>
{% endif %}
<div class="{{ pimcore_select("text-alignment") }}">
{% if not pimcore_textarea("content-title").isEmpty %}
{% if pimcore_select("content-heading").data == "span" %}
<span class="uk-{{ pimcore_select("content-heading-style").getData() }}">
{{ pimcore_textarea("content-title", {
"nl2br" : true})|raw }}
</span>
{% else %}
{% set content_heading = pimcore_select("content-heading").getData() %}
<{{ content_heading }} class="uk-{{ pimcore_select("content-heading-style").getData() }}">
{{ pimcore_textarea("content-title", {
"nl2br" : true})|raw }}
</{{ content_heading }}>
{% endif %}
{% endif %}
<div class="apk-content">
{{ pimcore_wysiwyg("content") }}
</div>
{% if not pimcore_link("content-btn").isEmpty() %}
<div class="actions">
{% if
not pimcore_input("content-btn-secondary-ga-1-1").isEmpty
and not pimcore_input("content-btn-secondary-ga-1-2").isEmpty
and not pimcore_input("content-btn-secondary-ga-1-3").isEmpty
%}
{{ pimcore_link("content-btn", {
"class" : "uk-button",
"onclick" : "javascript:sendGtagEvent('" ~ add_slashes(pimcore_input("content-btn-secondary-ga-1-1")) ~ "',
'" ~ add_slashes(pimcore_input("content-btn-secondary-ga-1-2")) ~ "',
'" ~ add_slashes(pimcore_input("content-btn-secondary-ga-1-3")) ~ "');"
}) }}
{% else %}
{{ pimcore_link("content-btn", {
"class" : "uk-button"
}) }}
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}