templates/blocks/custom_gallery.html.twig line 1

Open in your IDE?
  1. {#
  2.   {
  3.     "key": "custom_gallery",
  4.     "label": "Galerij",
  5.     "description": "Blokken met afbeeldingen met tekst op hover-functie",
  6.     "allowMove": true,
  7.     "category": "IDB",
  8.     "blocks": [
  9.       {
  10.         "key": "block-0",
  11.         "size": 4,
  12.         "required": "media",
  13.         "multiple": false,
  14.         "fields": [
  15.           {
  16.             "key": "content",
  17.             "type": "textarea",
  18.             "label": "Tekst"
  19.           }
  20.         ]
  21.       },
  22.       {
  23.         "key": "block-1",
  24.         "size": 4,
  25.         "required": "media",
  26.         "multiple": false,
  27.         "fields": [
  28.           {
  29.             "key": "content",
  30.             "type": "textarea",
  31.             "label": "Tekst"
  32.           }
  33.         ]
  34.       },
  35.       {
  36.         "key": "block-2",
  37.         "size": 4,
  38.         "required": "media",
  39.         "multiple": false,
  40.         "fields": [
  41.           {
  42.             "key": "content",
  43.             "type": "textarea",
  44.             "label": "Tekst"
  45.           }
  46.         ]
  47.       },
  48.       {
  49.         "key": "block-3",
  50.         "size": 4,
  51.         "required": "media",
  52.         "multiple": false,
  53.         "fields": [
  54.           {
  55.             "key": "content",
  56.             "type": "textarea",
  57.             "label": "Tekst"
  58.           }
  59.         ]
  60.       },
  61.       {
  62.         "key": "block-4",
  63.         "size": 4,
  64.         "required": "media",
  65.         "multiple": false,
  66.         "fields": [
  67.           {
  68.             "key": "content",
  69.             "type": "textarea",
  70.             "label": "Tekst"
  71.           }
  72.         ]
  73.       },
  74.       {
  75.         "key": "block-5",
  76.         "size": 4,
  77.         "required": "media",
  78.         "multiple": false,
  79.         "fields": [
  80.           {
  81.             "key": "content",
  82.             "type": "textarea",
  83.             "label": "Tekst"
  84.           }
  85.         ]
  86.       }
  87.     ]
  88.   }
  89. #}
  90. <section id="{{wrapper.cssId is defined ? wrapper.cssId : ''}}" class="custom-gallery {{wrapper.cssClass is defined ? wrapper.cssClass : ''}}">
  91.   <div class="container {{firstBlock.config.class is not empty ? firstBlock.config.class : ''}}">
  92.     {% if wrapper.label or wrapper.intro is not empty %}
  93.       <div class="introblock">
  94.         {% if wrapper.label is not empty %}
  95.           <div class="introtitle">
  96.             {{wrapper.label|raw}}
  97.           </div>
  98.         {% endif %}
  99.         {% if wrapper.intro is not empty %}
  100.           <div class="introtext">
  101.             {{wrapper.intro|raw}}
  102.           </div>
  103.         {% endif %}
  104.       </div>
  105.     {% endif %}
  106.   </div>
  107.   <div class="images">
  108.     <a href="{{wrapper.blocks[0].config.link}}" target="_blank">
  109.       <div class="image img-1" {% if wrapper.blocks[0].media is not empty %} style="background: url(/{{wrapper.blocks[0].media.getWebPath}}) no-repeat center; background-size: cover;" {% endif %}></div>
  110.       <div class="text">
  111.         {% if wrapper.blocks[0].config.content is not empty %}
  112.           {{wrapper.blocks[0].config.content|raw}}
  113.         {% endif %}
  114.         <div class="corner-shape">
  115.             <svg preserveaspectratio="none" class="corner-shape-topleft" x="0px" y="0px" viewbox="0 0 21.4 19.5" style="enable-background:new 0 0 21.4 19.5;" xml:space="preserve">
  116.               <path
  117.                 d="M20,0.3L18.9,0c-0.4-0.1-0.9,0-1.3,0.3S17,1,17,1.4l-0.1,1.2c0,0.1,0,0.2,0,0.3s0,0.2,0,0.3
  118.               c0,0.2-0.1,0.5-0.1,0.7c-0.1,0.5-0.2,0.9-0.3,1.4c-0.3,1-0.6,1.9-1.1,2.7c-0.9,1.7-2.1,3.1-3.6,4.1c-1.4,1-3.2,1.7-5.2,2
  119.               c-1.5,0.2-3.2,0.3-4.9,0.2c-0.4,0-0.8,0.1-1.1,0.4C0.2,15.1,0,15.5,0,15.9v1.9v0.1c0,0.1,0,0.3,0,0.4v1.2h5.8l0,0
  120.               c0.5-0.1,1.1-0.1,1.6-0.2c3.8-0.7,6.3-2.2,7.2-2.9c2.1-1.5,3.9-3.5,5.2-6c0.6-1.1,1.1-2.3,1.4-3.6c0.1-0.3,0.2-0.6,0.2-1l0,0V0.7
  121.               C21,0.6,20.5,0.5,20,0.3z"/>
  122.             </svg>
  123.             <svg preserveaspectratio="none" class="corner-shape-top" viewbox="0 0 290.3 22.5" style="enable-background:new 0 0 290.3 22.5;" xml:space="preserve">
  124.               <path
  125.                 d="M290.3,1.8c-0.2-0.8-1-1.3-1.8-1.1c-24,5.7-48.2,10.2-72.1,13.1c-24.2,3-48.8,4.6-73,4.8
  126.                 c-24.2-0.3-48.8-2.1-73-5.3C47.1,10.2,23.4,5.8,0,0v5.1c23.2,5.5,46.7,9.7,69.9,12.6c24.4,3,49.1,4.7,73.5,4.8
  127.                 c24.4-0.3,49.1-2.1,73.4-5.3c24-3.1,48.3-7.8,72.3-13.7C290,3.4,290.5,2.6,290.3,1.8z"/>
  128.             </svg>
  129.             <svg preserveaspectratio="none" class="corner-shape-left" viewbox="0 0 5.83 168.4">
  130.               <path d="M0,151.7v15.2a1.54,1.54,0,0,0,1.5,1.5h0A1.54,1.54,0,0,0,3,166.9V151.8c.1-23,.8-46.3,1.4-69C5.2,55.5,6,27.5,5.8,0H0Z"/>
  131.             </svg>
  132.           </div>
  133.       </div>
  134.     </a>
  135.     <a href="{{wrapper.blocks[1].config.link}}" target="_blank">
  136.       <div class="image img-2" {% if wrapper.blocks[1].media is not empty %} style="background: url(/{{wrapper.blocks[1].media.getWebPath}}) no-repeat center; background-size: cover;" {% endif %}></div>
  137.       <div class="text">
  138.         {% if wrapper.blocks[1].config.content is not empty %}
  139.           {{wrapper.blocks[1].config.content|raw}}
  140.         {% endif %}
  141.         <div class="corner-shape">
  142.             <svg preserveaspectratio="none" class="corner-shape-topleft" x="0px" y="0px" viewbox="0 0 21.4 19.5" style="enable-background:new 0 0 21.4 19.5;" xml:space="preserve">
  143.               <path
  144.                 d="M20,0.3L18.9,0c-0.4-0.1-0.9,0-1.3,0.3S17,1,17,1.4l-0.1,1.2c0,0.1,0,0.2,0,0.3s0,0.2,0,0.3
  145.               c0,0.2-0.1,0.5-0.1,0.7c-0.1,0.5-0.2,0.9-0.3,1.4c-0.3,1-0.6,1.9-1.1,2.7c-0.9,1.7-2.1,3.1-3.6,4.1c-1.4,1-3.2,1.7-5.2,2
  146.               c-1.5,0.2-3.2,0.3-4.9,0.2c-0.4,0-0.8,0.1-1.1,0.4C0.2,15.1,0,15.5,0,15.9v1.9v0.1c0,0.1,0,0.3,0,0.4v1.2h5.8l0,0
  147.               c0.5-0.1,1.1-0.1,1.6-0.2c3.8-0.7,6.3-2.2,7.2-2.9c2.1-1.5,3.9-3.5,5.2-6c0.6-1.1,1.1-2.3,1.4-3.6c0.1-0.3,0.2-0.6,0.2-1l0,0V0.7
  148.               C21,0.6,20.5,0.5,20,0.3z"/>
  149.             </svg>
  150.             <svg preserveaspectratio="none" class="corner-shape-top" viewbox="0 0 290.3 22.5" style="enable-background:new 0 0 290.3 22.5;" xml:space="preserve">
  151.               <path
  152.                 d="M290.3,1.8c-0.2-0.8-1-1.3-1.8-1.1c-24,5.7-48.2,10.2-72.1,13.1c-24.2,3-48.8,4.6-73,4.8
  153.                 c-24.2-0.3-48.8-2.1-73-5.3C47.1,10.2,23.4,5.8,0,0v5.1c23.2,5.5,46.7,9.7,69.9,12.6c24.4,3,49.1,4.7,73.5,4.8
  154.                 c24.4-0.3,49.1-2.1,73.4-5.3c24-3.1,48.3-7.8,72.3-13.7C290,3.4,290.5,2.6,290.3,1.8z"/>
  155.             </svg>
  156.             <svg preserveaspectratio="none" class="corner-shape-left" viewbox="0 0 5.83 168.4">
  157.               <path d="M0,151.7v15.2a1.54,1.54,0,0,0,1.5,1.5h0A1.54,1.54,0,0,0,3,166.9V151.8c.1-23,.8-46.3,1.4-69C5.2,55.5,6,27.5,5.8,0H0Z"/>
  158.             </svg>
  159.           </div>
  160.       </div>
  161.     </a>
  162.     <a href="{{wrapper.blocks[2].config.link}}"  target="_blank">
  163.       <div class="image img-3" {% if wrapper.blocks[2].media is not empty %} style="background: url(/{{wrapper.blocks[2].media.getWebPath}}) no-repeat center; background-size: cover;" {% endif %}></div>
  164.       <div class="text">
  165.         {% if wrapper.blocks[2].config.content is not empty %}
  166.           {{wrapper.blocks[2].config.content|raw}}
  167.         {% endif %}
  168.         <div class="corner-shape">
  169.             <svg preserveaspectratio="none" class="corner-shape-topleft" x="0px" y="0px" viewbox="0 0 21.4 19.5" style="enable-background:new 0 0 21.4 19.5;" xml:space="preserve">
  170.               <path
  171.                 d="M20,0.3L18.9,0c-0.4-0.1-0.9,0-1.3,0.3S17,1,17,1.4l-0.1,1.2c0,0.1,0,0.2,0,0.3s0,0.2,0,0.3
  172.               c0,0.2-0.1,0.5-0.1,0.7c-0.1,0.5-0.2,0.9-0.3,1.4c-0.3,1-0.6,1.9-1.1,2.7c-0.9,1.7-2.1,3.1-3.6,4.1c-1.4,1-3.2,1.7-5.2,2
  173.               c-1.5,0.2-3.2,0.3-4.9,0.2c-0.4,0-0.8,0.1-1.1,0.4C0.2,15.1,0,15.5,0,15.9v1.9v0.1c0,0.1,0,0.3,0,0.4v1.2h5.8l0,0
  174.               c0.5-0.1,1.1-0.1,1.6-0.2c3.8-0.7,6.3-2.2,7.2-2.9c2.1-1.5,3.9-3.5,5.2-6c0.6-1.1,1.1-2.3,1.4-3.6c0.1-0.3,0.2-0.6,0.2-1l0,0V0.7
  175.               C21,0.6,20.5,0.5,20,0.3z"/>
  176.             </svg>
  177.             <svg preserveaspectratio="none" class="corner-shape-top" viewbox="0 0 290.3 22.5" style="enable-background:new 0 0 290.3 22.5;" xml:space="preserve">
  178.               <path
  179.                 d="M290.3,1.8c-0.2-0.8-1-1.3-1.8-1.1c-24,5.7-48.2,10.2-72.1,13.1c-24.2,3-48.8,4.6-73,4.8
  180.                 c-24.2-0.3-48.8-2.1-73-5.3C47.1,10.2,23.4,5.8,0,0v5.1c23.2,5.5,46.7,9.7,69.9,12.6c24.4,3,49.1,4.7,73.5,4.8
  181.                 c24.4-0.3,49.1-2.1,73.4-5.3c24-3.1,48.3-7.8,72.3-13.7C290,3.4,290.5,2.6,290.3,1.8z"/>
  182.             </svg>
  183.             <svg preserveaspectratio="none" class="corner-shape-left" viewbox="0 0 5.83 168.4">
  184.               <path d="M0,151.7v15.2a1.54,1.54,0,0,0,1.5,1.5h0A1.54,1.54,0,0,0,3,166.9V151.8c.1-23,.8-46.3,1.4-69C5.2,55.5,6,27.5,5.8,0H0Z"/>
  185.             </svg>
  186.           </div>
  187.       </div>
  188.     </a>
  189.     <a href="{{wrapper.blocks[3].config.link}}"  target="_blank">
  190.       <div class="image img-4" {% if wrapper.blocks[3].media is not empty %} style="background: url(/{{wrapper.blocks[3].media.getWebPath}}) no-repeat center; background-size: cover;" {% endif %}></div>
  191.       <div class="text">
  192.         {% if wrapper.blocks[3].config.content is not empty %}
  193.           {{wrapper.blocks[3].config.content|raw}}
  194.         {% endif %}
  195.         <div class="corner-shape">
  196.             <svg preserveaspectratio="none" class="corner-shape-topleft" x="0px" y="0px" viewbox="0 0 21.4 19.5" style="enable-background:new 0 0 21.4 19.5;" xml:space="preserve">
  197.               <path
  198.                 d="M20,0.3L18.9,0c-0.4-0.1-0.9,0-1.3,0.3S17,1,17,1.4l-0.1,1.2c0,0.1,0,0.2,0,0.3s0,0.2,0,0.3
  199.               c0,0.2-0.1,0.5-0.1,0.7c-0.1,0.5-0.2,0.9-0.3,1.4c-0.3,1-0.6,1.9-1.1,2.7c-0.9,1.7-2.1,3.1-3.6,4.1c-1.4,1-3.2,1.7-5.2,2
  200.               c-1.5,0.2-3.2,0.3-4.9,0.2c-0.4,0-0.8,0.1-1.1,0.4C0.2,15.1,0,15.5,0,15.9v1.9v0.1c0,0.1,0,0.3,0,0.4v1.2h5.8l0,0
  201.               c0.5-0.1,1.1-0.1,1.6-0.2c3.8-0.7,6.3-2.2,7.2-2.9c2.1-1.5,3.9-3.5,5.2-6c0.6-1.1,1.1-2.3,1.4-3.6c0.1-0.3,0.2-0.6,0.2-1l0,0V0.7
  202.               C21,0.6,20.5,0.5,20,0.3z"/>
  203.             </svg>
  204.             <svg preserveaspectratio="none" class="corner-shape-top" viewbox="0 0 290.3 22.5" style="enable-background:new 0 0 290.3 22.5;" xml:space="preserve">
  205.               <path
  206.                 d="M290.3,1.8c-0.2-0.8-1-1.3-1.8-1.1c-24,5.7-48.2,10.2-72.1,13.1c-24.2,3-48.8,4.6-73,4.8
  207.                 c-24.2-0.3-48.8-2.1-73-5.3C47.1,10.2,23.4,5.8,0,0v5.1c23.2,5.5,46.7,9.7,69.9,12.6c24.4,3,49.1,4.7,73.5,4.8
  208.                 c24.4-0.3,49.1-2.1,73.4-5.3c24-3.1,48.3-7.8,72.3-13.7C290,3.4,290.5,2.6,290.3,1.8z"/>
  209.             </svg>
  210.             <svg preserveaspectratio="none" class="corner-shape-left" viewbox="0 0 5.83 168.4">
  211.               <path d="M0,151.7v15.2a1.54,1.54,0,0,0,1.5,1.5h0A1.54,1.54,0,0,0,3,166.9V151.8c.1-23,.8-46.3,1.4-69C5.2,55.5,6,27.5,5.8,0H0Z"/>
  212.             </svg>
  213.           </div>
  214.       </div>
  215.     </a>
  216.     <a href="{{wrapper.blocks[4].config.link}}"  target="_blank">
  217.       <div class="image img-5" {% if wrapper.blocks[3].media is not empty %} style="background: url(/{{wrapper.blocks[4].media.getWebPath}}) no-repeat center; background-size: cover;" {% endif %}></div>
  218.       <div class="text">
  219.         {% if wrapper.blocks[4].config.content is not empty %}
  220.           {{wrapper.blocks[4].config.content|raw}}
  221.         {% endif %}
  222.         <div class="corner-shape">
  223.             <svg preserveaspectratio="none" class="corner-shape-topleft" x="0px" y="0px" viewbox="0 0 21.4 19.5" style="enable-background:new 0 0 21.4 19.5;" xml:space="preserve">
  224.               <path
  225.                 d="M20,0.3L18.9,0c-0.4-0.1-0.9,0-1.3,0.3S17,1,17,1.4l-0.1,1.2c0,0.1,0,0.2,0,0.3s0,0.2,0,0.3
  226.               c0,0.2-0.1,0.5-0.1,0.7c-0.1,0.5-0.2,0.9-0.3,1.4c-0.3,1-0.6,1.9-1.1,2.7c-0.9,1.7-2.1,3.1-3.6,4.1c-1.4,1-3.2,1.7-5.2,2
  227.               c-1.5,0.2-3.2,0.3-4.9,0.2c-0.4,0-0.8,0.1-1.1,0.4C0.2,15.1,0,15.5,0,15.9v1.9v0.1c0,0.1,0,0.3,0,0.4v1.2h5.8l0,0
  228.               c0.5-0.1,1.1-0.1,1.6-0.2c3.8-0.7,6.3-2.2,7.2-2.9c2.1-1.5,3.9-3.5,5.2-6c0.6-1.1,1.1-2.3,1.4-3.6c0.1-0.3,0.2-0.6,0.2-1l0,0V0.7
  229.               C21,0.6,20.5,0.5,20,0.3z"/>
  230.             </svg>
  231.             <svg preserveaspectratio="none" class="corner-shape-top" viewbox="0 0 290.3 22.5" style="enable-background:new 0 0 290.3 22.5;" xml:space="preserve">
  232.               <path
  233.                 d="M290.3,1.8c-0.2-0.8-1-1.3-1.8-1.1c-24,5.7-48.2,10.2-72.1,13.1c-24.2,3-48.8,4.6-73,4.8
  234.                 c-24.2-0.3-48.8-2.1-73-5.3C47.1,10.2,23.4,5.8,0,0v5.1c23.2,5.5,46.7,9.7,69.9,12.6c24.4,3,49.1,4.7,73.5,4.8
  235.                 c24.4-0.3,49.1-2.1,73.4-5.3c24-3.1,48.3-7.8,72.3-13.7C290,3.4,290.5,2.6,290.3,1.8z"/>
  236.             </svg>
  237.             <svg preserveaspectratio="none" class="corner-shape-left" viewbox="0 0 5.83 168.4">
  238.               <path d="M0,151.7v15.2a1.54,1.54,0,0,0,1.5,1.5h0A1.54,1.54,0,0,0,3,166.9V151.8c.1-23,.8-46.3,1.4-69C5.2,55.5,6,27.5,5.8,0H0Z"/>
  239.             </svg>
  240.           </div>
  241.       </div>
  242.     </a>
  243.     <a href="{{wrapper.blocks[5].config.link}}"  target="_blank">
  244.       <div class="image img-6" {% if wrapper.blocks[5].media is not empty %} style="background: url(/{{wrapper.blocks[5].media.getWebPath}}) no-repeat center; background-size: cover;" {% endif %}></div>
  245.       <div class="text">
  246.         {% if wrapper.blocks[5].config.content is not empty %}
  247.           {{wrapper.blocks[5].config.content|raw}}
  248.         {% endif %}
  249.         <div class="corner-shape">
  250.             <svg preserveaspectratio="none" class="corner-shape-topleft" x="0px" y="0px" viewbox="0 0 21.4 19.5" style="enable-background:new 0 0 21.4 19.5;" xml:space="preserve">
  251.               <path
  252.                 d="M20,0.3L18.9,0c-0.4-0.1-0.9,0-1.3,0.3S17,1,17,1.4l-0.1,1.2c0,0.1,0,0.2,0,0.3s0,0.2,0,0.3
  253.               c0,0.2-0.1,0.5-0.1,0.7c-0.1,0.5-0.2,0.9-0.3,1.4c-0.3,1-0.6,1.9-1.1,2.7c-0.9,1.7-2.1,3.1-3.6,4.1c-1.4,1-3.2,1.7-5.2,2
  254.               c-1.5,0.2-3.2,0.3-4.9,0.2c-0.4,0-0.8,0.1-1.1,0.4C0.2,15.1,0,15.5,0,15.9v1.9v0.1c0,0.1,0,0.3,0,0.4v1.2h5.8l0,0
  255.               c0.5-0.1,1.1-0.1,1.6-0.2c3.8-0.7,6.3-2.2,7.2-2.9c2.1-1.5,3.9-3.5,5.2-6c0.6-1.1,1.1-2.3,1.4-3.6c0.1-0.3,0.2-0.6,0.2-1l0,0V0.7
  256.               C21,0.6,20.5,0.5,20,0.3z"/>
  257.             </svg>
  258.             <svg preserveaspectratio="none" class="corner-shape-top" viewbox="0 0 290.3 22.5" style="enable-background:new 0 0 290.3 22.5;" xml:space="preserve">
  259.               <path
  260.                 d="M290.3,1.8c-0.2-0.8-1-1.3-1.8-1.1c-24,5.7-48.2,10.2-72.1,13.1c-24.2,3-48.8,4.6-73,4.8
  261.                 c-24.2-0.3-48.8-2.1-73-5.3C47.1,10.2,23.4,5.8,0,0v5.1c23.2,5.5,46.7,9.7,69.9,12.6c24.4,3,49.1,4.7,73.5,4.8
  262.                 c24.4-0.3,49.1-2.1,73.4-5.3c24-3.1,48.3-7.8,72.3-13.7C290,3.4,290.5,2.6,290.3,1.8z"/>
  263.             </svg>
  264.             <svg preserveaspectratio="none" class="corner-shape-left" viewbox="0 0 5.83 168.4">
  265.               <path d="M0,151.7v15.2a1.54,1.54,0,0,0,1.5,1.5h0A1.54,1.54,0,0,0,3,166.9V151.8c.1-23,.8-46.3,1.4-69C5.2,55.5,6,27.5,5.8,0H0Z"/>
  266.             </svg>
  267.           </div>
  268.       </div>
  269.     </a>
  270.   </section>