{% if editmode %}
<div class="uk-container apk-container-1400 uk-margin-medium">
<h2 class="uk-h2">Section grille</h2>
<ul uk-tab>
<li><a href="#">Configurations</a></li>
<li class="uk-active"><a href="#">Contenu</a></li>
</ul>
<ul class="uk-switcher uk-margin">
<li>
<div>Alignement en colones</div>
{{ pimcore_select("grille", {
"store" : [
['', 'Aucun'],
['uk-child-width-1-1', '1 colone'],
['uk-child-width-1-2@m', '2 colones'],
['uk-child-width-1-3@m', '3 colones'],
['uk-child-width-1-4@m', '4 colones'],
],
"defaultValue" : ""
}) }}
<div>Largeur du container du texte</div>
{{ pimcore_select("text-width", {
"store" : [
['apk-container-800', '800px'],
['apk-container-900', '900px'],
['apk-container-1000', '1000px'],
['apk-container-1200', '1200px'],
['apk-container-1400', '1400px'],
['apk-container-1600', '1600px']
],
"defaultValue" : "apk-container-1400"
}) }}
<div>
<strong>Bordure</strong> en dessus du titre ?
<br>
{{ pimcore_select("title-border", {
"store" : [
['', 'non'],
['apk-border', 'oui']
],
"defaultValue" : ""
}) }}
</div>
<div>
<strong>Alignement</strong> du titre
<br>
{{ pimcore_select("title-align", {
"store" : [
['uk-text-left', 'gauche'],
['uk-text-center', 'centré'],
['uk-text-right', 'droite']
],
"defaultValue" : "gauche"
}) }}
</div>
<div>Couleur du fond</div>
{{ pimcore_select("fond", {
"store" : [
['gray', 'gris'],
['', 'blanc']
],
"defaultValue" : ""
}) }}
</li>
<li class="uk-active">
<div>Grid</div>
<h2>{{ pimcore_textarea("title",{"nl2br" : true}) }}</h2>
{% for i in pimcore_block('contentblock').iterator %}
<div>Ombre portée</div>
{{ pimcore_select("ombre", {
"store" : [
['', 'non'],
['shadow', 'oui']
],
"defaultValue" : ""
}) }}
<div uk-alert>
<div class="uk-text-bold">Contenu</div>
{{ pimcore_wysiwyg("grid-content") }}
</div>
{% endfor %}
</li>
</ul>
</div>
{% else %}
<div class="apk-container-grid uk-position-relative {{ pimcore_select("padding") }} {{ pimcore_select("fond") }}">
<div class="uk-container {{ pimcore_select("text-width") }}">
<div class="{{ pimcore_select("title-border")}}">
<h2 class="{{ pimcore_select("title-align") }}">{{ pimcore_textarea("title",{"nl2br" : true}) }}</h2>
</div>
<div class="{{ pimcore_select("grille")}}" uk-grid uk-height-match="target: .apk-content">
{% for i in pimcore_block('contentblock').iterator %}
<div>
<div class="apk-content {{ pimcore_select("ombre") }}">
{{ pimcore_wysiwyg("grid-content") }}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}