{% if editmode %}
<div class="uk-container apk-container-1400">
<div uk-alert>
<h1 class="uk-h1">APK product related</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>
{# Colonne 2 #}
<div class="uk-width-1-2@m" uk-margin>
<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>Afficher un scroll ?</div>
{{ pimcore_select("scroll", {
"store" : [
['', 'Aucun'],
['apk-scroll', 'SCROLL'],
['apk-top', 'TOP']
],
"defaultValue" : "apk-top"
}) }}
</div>
</li>
<li class="uk-active">
<div class="uk-margin-large-bottom">
<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>Texte supplémentaire en dessous du titre</strong></div>
{{ pimcore_textarea("content-subtitle") }}
<div class="uk-margin"><strong>Repeater de produits</strong></div>
{% for row in pimcore_block('productBlock').iterator %}
<div uk-alert>
<div><strong>Univers</strong>du produit</div>
{{ pimcore_select("product-universe", {
"store" : [
['apk-universe-magnecaps', 'Magnecaps'],
['apk-universe-muscles', 'Magnecaps Muscles'],
['apk-universe-relax', 'Magnecaps Relax'],
['apk-universe-memory-concentration', 'Magnecaps Mem. & Concen.']
],
"defaultValue" : "apk-universe-magnecaps"
}) }}
<div class="uk-margin"><strong>Titre du produit</strong></div>
{{ pimcore_textarea("product-title") }}
<div class="uk-margin"><strong>Image du produit</strong></div>
{{ pimcore_image("product-image", {'width' : 300, 'height' : 200}) }}
<div class="uk-margin"><strong>Lien</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>
{% endfor %}
</div>
</li>
</ul>
</div>
{% endif %}
{% if not editmode %}
<div class="apk-areabrick-container uk-flex uk-flex-middle {{ pimcore_select("margin-top") }} {{ pimcore_select("margin-bottom") }}">
<div class="uk-container apk-container-1200">
<div class="uk-text-center">
{% if not pimcore_textarea("content-title").isEmpty %}
{% if pimcore_select("content-heading").data == "span" %}
<span class="apk-title uk-{{ pimcore_select("content-heading-style").getData() }}">
{{ pimcore_textarea("content-title", {
"nl2br" : true,
"htmlspecialchars" : false,
})|raw }}
</span>
{% else %}
{% set content_heading = pimcore_select("content-heading").getData() %}
<{{ content_heading }} class="apk-title uk-{{ pimcore_select("content-heading-style").getData() }}">
{{ pimcore_textarea("content-title", {
"nl2br" : true,
"htmlspecialchars" : false,
})|raw }}
</{{ content_heading }}>
{% endif %}
{% endif %}
<span class="apk-subtitle">{{ pimcore_textarea("content-subtitle") }}</span>
</div>
<div class="uk-margin-large-top uk-grid-large uk-child-width-expand@m" uk-grid uk-height-match="target: .apk-product-title">
{% for row in pimcore_block('productBlock').iterator %}
<div>
<div class="apk-product-container hexagone uk-flex uk-flex-middle uk-flex-center">
<div>
<div class="apk-product-title uk-flex uk-flex-middle uk-flex-center">
{{ pimcore_textarea("product-title", {'nl2br' : true}) }}
</div>
<div class="apk-product-image">
{% if pimcore_image("product-image").src %}
{{ pimcore_image("product-image").thumbnail('big-product-thumb').html()|raw }}
{% endif %}
</div>
{% if not pimcore_link("content-btn").isEmpty() %}
<div class="apk-product-action">
{% 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 " ~ pimcore_select("product-universe").data,
"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 " ~ pimcore_select("product-universe").data
}) }}
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</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>
{% endif %}