templates/areas/contact/view.html.twig line 1

Open in your IDE?
  1. <div class="{% if pimcore_select("padding").getData() == "default" %} content-block
  2.             {% elseif pimcore_select("padding").getData() == "no-top" %} content-block-no-top
  3.             {% elseif pimcore_select("padding").getData() == "no-bottom" %} content-block-no-bottom
  4.             {% endif %} content-block--bg-{{ pimcore_select('background').getData() ?? 'none' }}">
  5.     <div class="container-fluid">
  6.         <div class="row">
  7.             <div class="{% if pimcore_select("size").getData() == "default" %} col-lg-10 offset-lg-1 {% endif %}">
  8.                 {% if editmode %}
  9.                     <div class="ntr-editor-bar">
  10.                         <div class="row">
  11.                             <div class="col-auto">
  12.                                 {{ pimcore_select("background", {
  13.                                     "store": [
  14.                                         ["none", "Geen achtergrond"],
  15.                                         ["light", "Lichte achtergrond"],
  16.                                     ],
  17.                                     "defaultValue" : "none",
  18.                                     "reload": true
  19.                                 }) }}
  20.                             </div>
  21.                             <div class="col-auto">
  22.                                 {{ pimcore_select("size", {
  23.                                     "store": [
  24.                                         ["none", "Volledige breedte"],
  25.                                         ["default", "Standaard"],
  26.                                     ],
  27.                                     "defaultValue" : "none",
  28.                                     "reload": true
  29.                                 }) }}
  30.                             </div>
  31.                             <div class="col-auto">
  32.                                 {{ pimcore_select("padding", {
  33.                                     "store": [
  34.                                         ["default", "Grote spacing"],
  35.                                         ["none", "geen spacing"],
  36.                                         ["no-top", "geen spacing top"],
  37.                                         ["no-bottom", "geen spacing bottom"],
  38.                                     ],
  39.                                     "defaultValue" : "default",
  40.                                     "reload": true
  41.                                 }) }}
  42.                             </div>
  43.                         </div>
  44.                     </div>
  45.                 {% endif %}
  46.                 {% set galleryBlocks = pimcore_block('galleryBlock', {'reload': false, 'manual': true}).start() %}
  47.                 <div class="row row--gallery">
  48.                     <div class="row justify-content-center">
  49.                         <div class="col-lg-10 px-md-0">
  50.                             <h2 class="title">{{ pimcore_input('title', {'placeholder': 'Titel...'}) }}</h2>
  51.                         </div>
  52.                     </div>
  53.                     {% for i in galleryBlocks.iterator %}
  54.                         {% do galleryBlocks.blockConstruct() %}
  55.                         <div class="col--gallery col-md-{{ pimcore_select("width").getData() ?? 4 }}">
  56.                             {% do galleryBlocks.blockStart() %}
  57.                             {% if editmode %}
  58.                                 <div class="ntr-editor-bar">
  59.                                     {{ pimcore_select("width", {
  60.                                         "store": [
  61.                                             ["3", "1/4 breedte"],
  62.                                             ["4", "1/3 breedte"],
  63.                                             ["6", "1/2 breedte"],
  64.                                         ],
  65.                                         "defaultValue" : "4",
  66.                                         "reload": true
  67.                                     }) }}
  68.                                 </div>
  69.                             {% endif %}
  70.                             {% set thumbnail_number = pimcore_select("width").getData() ?? 4 %}
  71.                             {% set thumbnail = 'Gallery' ~ thumbnail_number ~ 'Thumbnail' %}
  72.                             <div class="img-wrapper">
  73.                                 {{ pimcore_image("image", {
  74.                                     'thumbnail': thumbnail,
  75.                                 }) }}
  76.                                 <h4 class="py-3" >{{ pimcore_input('title', {'placeholder': 'Titel...'}) }}</h4>
  77.                                 {{  pimcore_wysiwyg("blockContent", {
  78.                                     "height": 300,
  79.                                     "placeholder": 'Your text...',
  80.                                     "stylesSet": [
  81.                                         {name: 'Button (donker)', element: 'a', attributes: {'class': 'btn btn-dark'} },
  82.                                         {name: 'Button (licht)', element: 'a', attributes: {'class': 'btn btn-outline-dark'} }
  83.                                     ]
  84.                                 })
  85.                                 }}
  86.                             </div>
  87.                             {% do galleryBlocks.blockEnd() %}
  88.                         </div>
  89.                         {% do galleryBlocks.blockDestruct() %}
  90.                     {% endfor %}
  91.                     {% do galleryBlocks.end() %}
  92.                 </div><!--/ .row -->
  93.             </div>
  94.         </div><!--/ .row -->
  95.     </div><!--/ .container-fluid -->
  96. </div>