templates/areas/apk-section-grid/view.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2. <div class="uk-container apk-container-1400 uk-margin-medium">
  3.     <h2 class="uk-h2">Section grille</h2>
  4.     <ul uk-tab>
  5.         <li><a href="#">Configurations</a></li>
  6.         <li class="uk-active"><a href="#">Contenu</a></li>
  7.     </ul>
  8.     <ul class="uk-switcher uk-margin">
  9.         <li>
  10.             <div>Alignement en colones</div>
  11.             {{ pimcore_select("grille", {
  12.                 "store" : [
  13.                     ['', 'Aucun'],
  14.                     ['uk-child-width-1-1', '1 colone'],
  15.                     ['uk-child-width-1-2@m', '2 colones'],
  16.                     ['uk-child-width-1-3@m', '3 colones'],
  17.                     ['uk-child-width-1-4@m', '4 colones'],
  18.                 ],
  19.                 "defaultValue" : ""
  20.             }) }}
  21.             <div>Largeur du container du texte</div>
  22.                 {{ pimcore_select("text-width", {
  23.                     "store" : [
  24.                         ['apk-container-800', '800px'],
  25.                         ['apk-container-900', '900px'],
  26.                         ['apk-container-1000', '1000px'],
  27.                         ['apk-container-1200', '1200px'],
  28.                         ['apk-container-1400', '1400px'],
  29.                         ['apk-container-1600', '1600px']
  30.                     ],
  31.                     "defaultValue" : "apk-container-1400"
  32.                 }) }}
  33.             <div>
  34.                 <strong>Bordure</strong> en dessus du titre ?
  35.                 <br>
  36.                 {{ pimcore_select("title-border", {
  37.                     "store" : [
  38.                         ['', 'non'],
  39.                         ['apk-border', 'oui']
  40.                     ],
  41.                     "defaultValue" : ""
  42.                 }) }}
  43.             </div>
  44.             <div>
  45.                 <strong>Alignement</strong> du titre
  46.                 <br>
  47.                 {{ pimcore_select("title-align", {
  48.                     "store" : [
  49.                         ['uk-text-left', 'gauche'],
  50.                         ['uk-text-center', 'centré'],
  51.                         ['uk-text-right', 'droite']
  52.                     ],
  53.                     "defaultValue" : "gauche"
  54.                 }) }}
  55.             </div>
  56.             <div>Couleur du fond</div>
  57.             {{ pimcore_select("fond", {
  58.                 "store" : [
  59.                     ['gray', 'gris'],
  60.                     ['', 'blanc']
  61.                 ],
  62.                 "defaultValue" : ""
  63.             }) }}
  64.         </li>
  65.         <li class="uk-active">
  66.         <div>Grid</div>
  67.             <h2>{{ pimcore_textarea("title",{"nl2br" : true}) }}</h2>
  68.             {% for i in pimcore_block('contentblock').iterator %}
  69.                 <div>Ombre portée</div>
  70.                 {{ pimcore_select("ombre", {
  71.                     "store" : [
  72.                         ['', 'non'],
  73.                         ['shadow', 'oui']
  74.                     ],
  75.                     "defaultValue" : ""
  76.                 }) }}
  77.                 <div uk-alert>
  78.                     <div class="uk-text-bold">Contenu</div>
  79.                     {{ pimcore_wysiwyg("grid-content") }}
  80.                 </div>
  81.             {% endfor %}
  82.             
  83.         </li>
  84.     </ul>
  85. </div>
  86. {% else %}
  87. <div class="apk-container-grid uk-position-relative {{ pimcore_select("padding") }} {{ pimcore_select("fond") }}">
  88.     <div class="uk-container {{ pimcore_select("text-width") }}">
  89.         <div class="{{ pimcore_select("title-border")}}">
  90.             <h2 class="{{ pimcore_select("title-align") }}">{{ pimcore_textarea("title",{"nl2br" : true}) }}</h2>
  91.         </div>
  92.         <div class="{{ pimcore_select("grille")}}" uk-grid uk-height-match="target: .apk-content">
  93.         {% for i in pimcore_block('contentblock').iterator %}
  94.             <div>
  95.                 <div class="apk-content {{ pimcore_select("ombre") }}">
  96.                     {{ pimcore_wysiwyg("grid-content") }}
  97.                 </div>
  98.             </div>
  99.         {% endfor %}
  100.         </div>
  101.     </div>
  102. </div>
  103. {% endif %}