{% extends "layout-no-menu.html.twig" %}
{#
{% use AppBundle/Helper/Apik %}
#}
{% block content %}
{{ pimcore_areablock("myAreablock") }}
{{ pimcore_areablock('contentTop') }}
<!-- #main -->
<main id="main" role="main">
<div class="apk-page-fin-concours">
{% if editmode %}
<div uk-alert>
<div>Sens de l'image</div>
{{ pimcore_select("flex-first", {
"store" : [
['', 'Droite'],
['uk-flex-first@s', 'Gauche'],
],
"defaultValue" : ""
}) }}
<div class="uk-text-bold">Image de banner</div>
{{ pimcore_image('image', { width: 300 }) }}
<div class="uk-text-bold">Titre</div>
{{ pimcore_textarea('title',{'nl2br' : true}) }}
<div class="uk-text-bold">Sous-titre</div>
{{ pimcore_textarea('subtitle',{'nl2br' : true}) }}
<div class="uk-text-bold">Texte</div>
{{ pimcore_textarea('text',{'nl2br' : true}) }}
</div>
{% else %}
<div class="apk-banner">
{{ pimcore_image('image').thumbnail('full-background').html()|raw }}
</div>
<div class="uk-container apk-container-1400">
<div class="apk-content">
<h1>{{ pimcore_textarea('title',{'nl2br' : true}) }}</h1>
<p><strong>{{ pimcore_textarea('subtitle',{'nl2br' : true}) }}</strong></p>
<p>{{ pimcore_textarea('text',{'nl2br' : true}) }}</p>
<div class="uk-flex apk-icon-social-media">
{% if document.property('facebookUrl') %}
<div class="uk-margin-right">
<a href="{{ document.property('facebookUrl') }}" target="_blank">
<img src="/static/img/pictos/icon-facebook.png" alt="Facebook">
</a>
</div>
{% endif %}
{% if document.property('instagramUrl') %}
<div>
<a href="{{ document.property('instagramUrl') }}" target="_blank">
<img src="/static/img/pictos/icon-instagram.png" alt="Instagram">
</a>
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</main><!-- end #main -->
{% endblock %}
{% block inlinescripts %}
{% endblock inlinescripts %}