templates/default/default.html.twig line 1

Open in your IDE?
  1. {% extends "layout.html.twig" %}
  2. {#
  3.     {% use AppBundle/Helper/Apik %}
  4. #}
  5. {% block content %}
  6.     <!-- #main -->
  7.     <main id="main" role="main">
  8.         {% if document.getProperty("homepage") != true %}
  9.         <section class="apk-page-header-container">
  10.             <div class="uk-container apk-container-1200">
  11.                 <div class="apk-page-header uk-width-4-5@m">
  12.                     {% if editmode %}
  13.                         <h1 class="uk-h1">{{ pimcore_textarea("title",{"nl2br" : true}) }}</h1>
  14.                         <div class="apk-page-header--text">{{ pimcore_textarea("texte",{"nl2br" : true}) }}</div>
  15.                         <div class="apk-actions">{{ pimcore_link("content-btn", {"class" : "uk-button uk-button-primary"}) }}</div>
  16.                     {% else %}
  17.                         {% if not pimcore_textarea("title").isEmpty() %}
  18.                             <h1 class="uk-h1">{{ pimcore_textarea("title",{"nl2br" : true}) }}</h1>
  19.                         {% endif %}
  20.                         {% if not pimcore_textarea("texte").isEmpty() %}
  21.                             <div class="apk-page-header--text">{{ pimcore_textarea("texte",{"nl2br" : true}) }}</div>
  22.                         {% endif %}
  23.                         {% if not pimcore_textarea("content-btn").isEmpty() %}
  24.                             <div class="apk-actions">{{ pimcore_link("content-btn", {"class" : "uk-button uk-button-primary"}) }}</div>
  25.                         {% endif %}
  26.                     {% endif %}
  27.                 </div>
  28.             </div>
  29.         </section>
  30.         {% endif %}
  31.         {{ pimcore_areablock('content') }}
  32.     </main><!-- end #main -->
  33. {% endblock %}
  34. {% block inlinescripts %}
  35. {% endblock %}