templates/areas/apk-banner-text/view.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2. <div class="uk-container apk-container-1400">
  3.     <div uk-alert>
  4.         <h1 class="uk-h1">APK BANNER TEXT</h1>
  5.     </div>
  6.     <ul uk-tab>
  7.         <li><a href="#">Configurations</a></li>
  8.         <li class="uk-active"><a href="#">Content Edit</a></li>
  9.     </ul>
  10.     <ul class="uk-switcher uk-margin">
  11.         <li class="apk-size-20 uk-grid-small" uk-grid>
  12.             {# Colonne 1 #}
  13.             <div class="uk-width-1-2@m" uk-margin>
  14.                 <div>Type de heading pour le titre ?</div>
  15.                 {{ pimcore_select("content-heading", {
  16.                     "store" : [
  17.                         ['span', 'span'],
  18.                         ['h1', 'Heading 1'],
  19.                         ['h2', 'Heading 2'],
  20.                         ['h3', 'Heading 3'],
  21.                         ['h4', 'Heading 4'],
  22.                         ['h5', 'Heading 5'],
  23.                         ['h6', 'Heading 6']
  24.                     ],
  25.                     "defaultValue" : "h2"
  26.                 }) }}
  27.                 <div><strong>Style</strong> du heading pour le titre ?</div>
  28.                 {{ pimcore_select("content-heading-style", {
  29.                     "store" : [
  30.                         ['h1', 'Heading 1'],
  31.                         ['h2', 'Heading 2'],
  32.                         ['h3', 'Heading 3'],
  33.                         ['h4', 'Heading 4'],
  34.                         ['h5', 'Heading 5'],
  35.                         ['h6', 'Heading 6']
  36.                     ],
  37.                     "defaultValue" : "h2"
  38.                 }) }}
  39.                 <div><strong>Alignement</strong> du texte</div>
  40.                 {{ pimcore_select("text-alignment", {
  41.                     "store" : [
  42.                         ['uk-text-left', 'Gauche'],
  43.                         ['uk-text-right', 'Droite'],
  44.                         ['uk-text-center', 'Centré'],
  45.                     ],
  46.                     "defaultValue" : "uk-text-center"
  47.                 }) }}
  48.                 <div>Couleur du texte</div>
  49.                 {{ pimcore_select("overlay-color", {
  50.                     "store" : [
  51.                         ['uk-dark', 'Foncé'],
  52.                         ['uk-light', 'Clair']
  53.                     ],
  54.                     "defaultValue" : "uk-dark"
  55.                 }) }}
  56.                 
  57.                 <div>Position du texte</div>
  58.                 {{ pimcore_select("overlay-position", {
  59.                     "store" : [
  60.                         ['uk-position-top-left', 'Haut gauche'],
  61.                         ['uk-position-top-center', 'Haut centré'],
  62.                         ['uk-position-top-right', 'Haut droite'],
  63.                         ['uk-position-center-left', 'Centré gauche'],
  64.                         ['uk-position-center', 'Centré centré'],
  65.                         ['uk-position-center-right', 'Centré droit'],
  66.                         ['uk-position-bottom-left', 'Bas gauche'],
  67.                         ['uk-position-bottom-center', 'Bas centré'],
  68.                         ['uk-position-bottom-right', 'Bas droit'],
  69.                     ],
  70.                     "defaultValue" : "uk-position-top-center"
  71.                 }) }}
  72.                 <div>Espacement du texte par rapport aux bordures</div>
  73.                 {{ pimcore_select("overlay-spacing", {
  74.                     "store" : [
  75.                         ['uk-position', 'Collé'],
  76.                         ['uk-position-small', 'Petit'],
  77.                         ['uk-position-medium', 'Moyen'],
  78.                         ['uk-position-large', 'Grand'],
  79.                     ],
  80.                     "defaultValue" : "uk-position-small"
  81.                 }) }}
  82.             </div>
  83.             {# Colonne 2 #}
  84.             <div class="uk-width-1-2@m" uk-margin>
  85.                 <div>Largeur du container du texte</div>
  86.                 {{ pimcore_select("text-width", {
  87.                     "store" : [
  88.                         ['apk-container-200', '200px'],
  89.                         ['apk-container-300', '300px'],
  90.                         ['apk-container-400', '400px'],
  91.                         ['apk-container-500', '500px'],
  92.                         ['apk-container-600', '600px'],
  93.                         ['apk-container-700', '700px'],
  94.                         ['apk-container-800', '800px'],
  95.                         ['apk-container-900', '900px'],
  96.                         ['apk-container-1000', '1000px'],
  97.                         ['apk-container-1100', '1100px'],
  98.                     ],
  99.                     "defaultValue" : "apk-container-600"
  100.                 }) }}
  101.     
  102.                 <div>Hauteur du background</div>
  103.                 {{ pimcore_select("banner-height", {
  104.                     "store" : [
  105.                         ['apk-height-200', '200px'],
  106.                         ['apk-height-300', '300px'],
  107.                         ['apk-height-400', '400px'],
  108.                         ['apk-height-500', '500px'],
  109.                         ['apk-height-600', '600px'],
  110.                         ['apk-height-700', '700px'],
  111.                         ['apk-height-800', '800px'],
  112.                         ['apk-height-900', '900px'],
  113.                         ['apk-height-1000', '1000px'],
  114.                         ['apk-height-100vh', 'Hauteur de l\'écran'],
  115.                     ],
  116.                     "defaultValue" : "apk-height-600"
  117.                 }) }}
  118.                 
  119.                 <div>Position de l'image en cover</div>
  120.                 {{ pimcore_select("cover-position", {
  121.                     "store" : [
  122.                         ['apk-cover-top-left', 'Haut gauche'],
  123.                         ['apk-cover-top-center', 'Haut centré'],
  124.                         ['apk-cover-top-right', 'Haut droite'],
  125.                         ['apk-cover-center-left', 'Centré gauche'],
  126.                         ['apk-cover-center', 'Centré centré'],
  127.                         ['apk-cover-center-right', 'Centré droit'],
  128.                         ['apk-cover-bottom-left', 'Bas gauche'],
  129.                         ['apk-cover-bottom-center', 'Bas centré'],
  130.                         ['apk-cover-bottom-right', 'Bas droit'],
  131.                     ],
  132.                     "defaultValue" : "apk-cover-center"
  133.                 }) }}
  134.                 
  135.                 <div>Espacement en haut du block</div>
  136.                 {{ pimcore_select("margin-top", {
  137.                     "store" : [
  138.                         ['uk-padding-remove-top', 'Suppression du padding'],
  139.                         ['', 'Aucun'],
  140.                         ['uk-margin-small-top', 'Petit'],
  141.                         ['uk-margin-medium-top', 'Moyen'],
  142.                         ['uk-margin-large-top', 'Grand'],
  143.                         ['uk-margin-xlarge-top', 'Très grand'],
  144.                     ],
  145.                     "defaultValue" : ""
  146.                 }) }}
  147.     
  148.                 <div>Espacement en bas du block</div>
  149.                 {{ pimcore_select("margin-bottom", {
  150.                     "store" : [
  151.                         ['uk-padding-remove-bottom', 'Suppression du padding'],
  152.                         ['', 'Aucun'],
  153.                         ['uk-margin-small-bottom', 'Petit'],
  154.                         ['uk-margin-medium-bottom', 'Moyen'],
  155.                         ['uk-margin-large-bottom', 'Grand'],
  156.                         ['uk-margin-xlarge-bottom', 'Très grand'],
  157.                     ],
  158.                     "defaultValue" : ""
  159.                 }) }}
  160.                 
  161.             </div>
  162.         </li>
  163.     
  164.         <li class="uk-active">
  165.             <div class="uk-margin-large-bottom">
  166.                 {{ pimcore_image('bg-image') }}
  167.                 <div class="apk-content">
  168.                     <h2 class="uk-h2">
  169.                         {{ pimcore_textarea("content-title",{
  170.                             "nl2br" : true
  171.                         }) }}
  172.                     </h2>
  173.                     
  174.                     {{ pimcore_wysiwyg("content") }}
  175.                     <div class="actions">
  176.                         {{ pimcore_link("content-btn", {
  177.                             "class" : "uk-button"
  178.                         }) }}
  179.                     </div>
  180.                 </div>
  181.             </div>
  182.         </li>
  183.     </ul>
  184. </div>
  185. {% endif %}
  186. {% if not editmode %}
  187. <div class="apk-areabrick-container {{ pimcore_select("overlay-color").getData() }} {{ pimcore_select("margin-top") }} {{ pimcore_select("margin-bottom") }}">
  188.     <div class="uk-cover-container {{ pimcore_select("banner-height") }}">
  189.         {% if pimcore_image('bg-image').src %}
  190.             {{ pimcore_image('bg-image').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}    
  191.         {% endif %}
  192.         <div class="{{ pimcore_select("overlay-position") }} {{ pimcore_select("overlay-spacing") }}">
  193.             <div class="uk-container apk-container-700">
  194.                 <div class="{{ pimcore_select("text-alignment") }}">
  195.                     
  196.                 {% if not pimcore_textarea("content-title").isEmpty %}
  197.                     {% if pimcore_select("content-heading").data == "span" %}
  198.                         <span class="uk-{{ pimcore_select("content-heading-style").getData() }}">
  199.                             {{ pimcore_textarea("content-title", {
  200.                             "nl2br" : true})|raw }}
  201.                         </span>
  202.                     {% else %}
  203.                         {% set content_heading = pimcore_select("content-heading").getData() %}
  204.                         <{{ content_heading }} class="uk-{{ pimcore_select("content-heading-style").getData() }}">
  205.                             {{ pimcore_textarea("content-title", {
  206.                             "nl2br" : true})|raw }}
  207.                         </{{ content_heading }}>
  208.                     {% endif %}
  209.                 {% endif %}
  210.         
  211.                 <div class="apk-content">
  212.                     {{ pimcore_wysiwyg("content") }}
  213.                 </div>
  214.                 
  215.         
  216.                 {% if not pimcore_link("content-btn").isEmpty() %}
  217.                     <div class="actions">
  218.                         {{ pimcore_link("content-btn", {
  219.                             "class" : "uk-button"
  220.                         }) }}
  221.                     </div>
  222.                 {% endif %}
  223.                 </div>
  224.         
  225.             </div>
  226.         </div>
  227.     </div>
  228.     
  229.     
  230. </div>
  231. {% endif %}