{% if editmode %}
<div class="uk-container apk-container-1400 uk-margin-medium">
<h2 class="uk-h2">Section FAQ</h2>
<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>
<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 titre</div>
{{ pimcore_select("text-align", {
"store" : [
['uk-text-center', 'Centré'],
['uk-text-left', 'Gauche'],
['uk-text-right', 'Droite']
],
"defaultValue" : "uk-text-center"
}) }}
<div>Taille du container</div>
{{ pimcore_select("container-width", {
"store" : [
['apk-container-1400', '1400px (default)'],
['apk-container-1300', '1300px'],
['apk-container-1200', '1200px'],
['apk-container-1100', '1100px'],
['apk-container-1000', '1000px'],
['apk-container-900', '900px'],
['apk-container-800', '800px'],
],
"defaultValue" : "apk-container-1400"
}) }}
<div>Espacement en haut du block</div>
{{ pimcore_select("margin-top", {
"store" : [
['uk-padding-remove-top', 'Suppression du padding'],
['', '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" : [
['uk-padding-remove-bottom', 'Suppression du padding'],
['', 'Aucun'],
['uk-margin-small-bottom', 'Petit'],
['uk-margin-medium-bottom', 'Moyen'],
['uk-margin-large-bottom', 'Grand'],
['uk-margin-xlarge-bottom', 'Très grand'],
],
"defaultValue" : ""
}) }}
</li>
<li class="uk-active">
<div class="uk-margin-large-bottom">
<div class="apk-content">
<h2 class="uk-h2">
{{ pimcore_textarea("content-title",{
"nl2br" : true,
"placeholder" : "Titre (optionnel)"
}) }}
</h2>
<div><span class="uk-h4">Contenu (optionnel)</span></div>
{{ pimcore_wysiwyg("content") }}
<h3>Ensemble des FAQ</h3>
<div class="uk-dark" uk-alert>
{% for faq in pimcore_block('faqBlock').iterator %}
<div class="uk-card">
<div>
<div><h4 class="uk-h4 uk-margin-remove-bottom">Titre</h4></div>
<h3 class="uk-h3 uk-margin-small-top">{{ pimcore_textarea('faqTitle', {'nl2br' : true}) }}</h3>
</div>
<div>
<div><h4 class="uk-h4 uk-margin-remove-bottom">contenu</h4></div>
{{ pimcore_wysiwyg('faqContent') }}
</div>
</div>
{% endfor %}
</div>
<div class="actions uk-margin-top">
<span class="uk-h4">Lien (optionnel)</span>
<div>
{{ pimcore_link("content-btn", {
"class" : "uk-button"
}) }}
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
{% endif %}
{% if not editmode %}
<div class="apk-areabrick-container {{ pimcore_select("margin-top") }} {{ pimcore_select("margin-bottom") }}">
<div class="uk-container {{ pimcore_select("container-width") }}">
<div class="{{ pimcore_select("text-align") }}">
{% if not pimcore_textarea("content-title").isEmpty %}
{% if pimcore_select("content-heading").getData() == 'span' %}
<span class="uk-h2">
{{ 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>
<div class="uk-text-center">
{% if not pimcore_wysiwyg("content").isEmpty %}
<div class="apk-content">
{{ pimcore_wysiwyg("content") }}
</div>
{% endif %}
</div>
<div class="apk-faq-container">
<ul uk-accordion="multiple: true">
{% set n = 1 %}
{% set count = pimcore_block('faqBlock').getData()|length %}
{% for faq in pimcore_block('faqBlock').iterator %}
<li>
<a class="uk-accordion-title" href="#">
<h4 class="uk-margin-remove-bottom uk-text-bold">{{ pimcore_textarea('faqTitle', {'nl2br' : true}) }}</h4>
</a>
<div class="uk-accordion-content">
{{ pimcore_wysiwyg('faqContent') }}
</div>
</li>
{% set n = n + 1 %}
{% endfor %}
</ul>
{% if not pimcore_link("content-btn").isEmpty() %}
<div class="apk-actions uk-text-center uk-margin-large-top">
{{ pimcore_link("content-btn", {
"class" : "uk-button uk-button-large "
}) }}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}