templates/default/fin-concours.html.twig line 1

Open in your IDE?
  1. {% extends "layout-no-menu.html.twig" %}
  2. {#
  3. {% use AppBundle/Helper/Apik %}
  4. #}
  5. {% block content %}
  6.     {{ pimcore_areablock("myAreablock") }}
  7.     {{ pimcore_areablock('contentTop') }}
  8.     <!-- #main -->
  9.     <main id="main" role="main">
  10.     <div class="apk-page-fin-concours">
  11.         {% if editmode %}
  12.             <div uk-alert>
  13.                 <div>Sens de l'image</div>
  14.                 {{ pimcore_select("flex-first", {
  15.                     "store" : [
  16.                         ['', 'Droite'],
  17.                         ['uk-flex-first@s', 'Gauche'],
  18.                     ],
  19.                     "defaultValue" : ""
  20.                 }) }}
  21.                 <div class="uk-text-bold">Image de banner</div>
  22.                 {{ pimcore_image('image', { width: 300 }) }}
  23.                 <div class="uk-text-bold">Titre</div>
  24.                 {{ pimcore_textarea('title',{'nl2br' : true}) }}
  25.                 <div class="uk-text-bold">Sous-titre</div>
  26.                 {{ pimcore_textarea('subtitle',{'nl2br' : true}) }}
  27.                 <div class="uk-text-bold">Texte</div>
  28.                 {{ pimcore_textarea('text',{'nl2br' : true}) }}
  29.             </div>
  30.         {% else %}
  31.             <div class="apk-banner">
  32.                 {{ pimcore_image('image').thumbnail('full-background').html()|raw }}
  33.             </div>
  34.             <div class="uk-container apk-container-1400">
  35.                 <div class="apk-content">
  36.                     <h1>{{ pimcore_textarea('title',{'nl2br' : true}) }}</h1>
  37.                     <p><strong>{{ pimcore_textarea('subtitle',{'nl2br' : true}) }}</strong></p>
  38.                     <p>{{ pimcore_textarea('text',{'nl2br' : true}) }}</p>
  39.                     <div class="uk-flex apk-icon-social-media">
  40.                         {% if document.property('facebookUrl') %}
  41.                             <div class="uk-margin-right">
  42.                                 <a href="{{ document.property('facebookUrl') }}" target="_blank">
  43.                                     <img src="/static/img/pictos/icon-facebook.png" alt="Facebook">
  44.                                 </a>    
  45.                             </div>
  46.                             {% endif %}
  47.                             {% if document.property('instagramUrl') %}
  48.                             <div>
  49.                                 <a href="{{ document.property('instagramUrl') }}" target="_blank">
  50.                                     <img src="/static/img/pictos/icon-instagram.png" alt="Instagram">
  51.                                 </a>    
  52.                             </div>
  53.                         {% endif %}
  54.                     </div>
  55.                 </div>
  56.             </div>
  57.         {% endif %}
  58.     </div>
  59.     </main><!-- end #main -->
  60. {% endblock %}
  61. {% block inlinescripts %}
  62. {% endblock inlinescripts %}