var/cache/dev/twig/f7/f780a78994da1e636d553c668fd7733c.php line 46

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @openform_front_templates/_blocks_sections/block.html.twig */
  14. class __TwigTemplate_266e750e4136e7f0220509145108bf5e extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@openform_front_templates/_blocks_sections/block.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@openform_front_templates/_blocks_sections/block.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"js-section\">
  35. ";
  36.         // line 2
  37.         $context["mobile"] = twig_get_attribute($this->env$this->source, (isset($context["openform_front_util"]) || array_key_exists("openform_front_util"$context) ? $context["openform_front_util"] : (function () { throw new RuntimeError('Variable "openform_front_util" does not exist.'2$this->source); })()), "isMobileDevice", [], "method"falsefalsefalse2);
  38.         // line 3
  39.         $context['_parent'] = $context;
  40.         $context['_seq'] = twig_ensure_traversable(((array_key_exists("sections"$context)) ? (_twig_default_filter((isset($context["sections"]) || array_key_exists("sections"$context) ? $context["sections"] : (function () { throw new RuntimeError('Variable "sections" does not exist.'3$this->source); })()), [])) : ([])));
  41.         $context['loop'] = [
  42.           'parent' => $context['_parent'],
  43.           'index0' => 0,
  44.           'index'  => 1,
  45.           'first'  => true,
  46.         ];
  47.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  48.             $length count($context['_seq']);
  49.             $context['loop']['revindex0'] = $length 1;
  50.             $context['loop']['revindex'] = $length;
  51.             $context['loop']['length'] = $length;
  52.             $context['loop']['last'] = === $length;
  53.         }
  54.         foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
  55.             // line 4
  56.             echo "
  57.     ";
  58.             // line 5
  59.             if (twig_test_iterable($context["section"])) {
  60.                 // line 6
  61.                 echo "        ";
  62.                 // line 7
  63.                 echo "        ";
  64.                 // line 8
  65.                 echo "
  66.         ";
  67.                 // line 9
  68.                 echo twig_include($this->env$context"@openform_front_templates/_blocks_sections/_slider.html.twig");
  69.                 echo "        
  70.     ";
  71.             } else {
  72.                 // line 12
  73.                 echo "
  74.         ";
  75.                 // line 14
  76.                 echo "        ";
  77.                 // line 15
  78.                 echo "        ";
  79.                 // line 21
  80.                 echo "        ";
  81.                 $context["classType"] = twig_get_attribute($this->env$this->source$context["section"], "type", [], "any"falsefalsefalse21);
  82.                 // line 22
  83.                 echo "        
  84.         ";
  85.                 // line 24
  86.                 echo "        ";
  87.                 $context["numCollumns"] = twig_get_attribute($this->env$this->source$context["section"], "numCollumn", [], "any"falsefalsefalse24);
  88.                 // line 25
  89.                 echo "
  90.         ";
  91.                 // line 26
  92.                 $context["blocks"] = twig_get_attribute($this->env$this->source, (isset($context["openform_front_util"]) || array_key_exists("openform_front_util"$context) ? $context["openform_front_util"] : (function () { throw new RuntimeError('Variable "openform_front_util" does not exist.'26$this->source); })()), "getSectionBlocks", [$context["section"]], "method"falsefalsefalse26);
  93.                 // line 27
  94.                 echo "        <div class=\"container block-container ";
  95.                 echo twig_escape_filter($this->env, ((( !(isset($context["mobile"]) || array_key_exists("mobile"$context) ? $context["mobile"] : (function () { throw new RuntimeError('Variable "mobile" does not exist.'27$this->source); })()) && ((isset($context["classType"]) || array_key_exists("classType"$context) ? $context["classType"] : (function () { throw new RuntimeError('Variable "classType" does not exist.'27$this->source); })()) != "columns"))) ? ((isset($context["classType"]) || array_key_exists("classType"$context) ? $context["classType"] : (function () { throw new RuntimeError('Variable "classType" does not exist.'27$this->source); })())) : ((((( !(isset($context["mobile"]) || array_key_exists("mobile"$context) ? $context["mobile"] : (function () { throw new RuntimeError('Variable "mobile" does not exist.'27$this->source); })()) && ((isset($context["classType"]) || array_key_exists("classType"$context) ? $context["classType"] : (function () { throw new RuntimeError('Variable "classType" does not exist.'27$this->source); })()) == "columns")) && (twig_get_attribute($this->env$this->source$context["section"], "numCollumn", [], "any"falsefalsefalse27) > 1))) ? ((isset($context["classType"]) || array_key_exists("classType"$context) ? $context["classType"] : (function () { throw new RuntimeError('Variable "classType" does not exist.'27$this->source); })())) : ("")))), "html"nulltrue);
  96.                 echo (((twig_length_filter($this->env, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'27$this->source); })())) == 0)) ? (" hide") : (""));
  97.                 echo "\" style=\"background: ";
  98.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["section"], "sectionBackground", [], "any"truetruefalse27)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["section"], "sectionBackground", [], "any"falsefalsefalse27), "transparent")) : ("transparent")), "html"nulltrue);
  99.                 echo "; ";
  100.                 ((((array_key_exists("entity"$context) && twig_get_attribute($this->env$this->source, ($context["entity"] ?? null), "mainContentPaddingTop", [], "any"truetruefalse27)) && twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'27$this->source); })()), "mainContentPaddingTop", [], "any"falsefalsefalse27))) ? (print (twig_escape_filter($this->env, (("padding-top: " twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'27$this->source); })()), "mainContentPaddingTop", [], "any"falsefalsefalse27)) . "px;"), "html"nulltrue))) : (print ("")));
  101.                 echo " ";
  102.                 ((((array_key_exists("entity"$context) && twig_get_attribute($this->env$this->source, ($context["entity"] ?? null), "mainContentPaddingBottom", [], "any"truetruefalse27)) && twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'27$this->source); })()), "mainContentPaddingBottom", [], "any"falsefalsefalse27))) ? (print (twig_escape_filter($this->env, (("padding-bottom: " twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'27$this->source); })()), "mainContentPaddingBottom", [], "any"falsefalsefalse27)) . "px;"), "html"nulltrue))) : (print ("")));
  103.                 echo "\">
  104.         ";
  105.                 // line 29
  106.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["section"], "Translation", [], "any"falsefalsefalse29), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'29$this->source); })()), "request", [], "any"falsefalsefalse29), "locale", [], "any"falsefalsefalse29), [], "array"falsefalsefalse29), "title", [], "any"falsefalsefalse29)) {
  107.                     // line 30
  108.                     echo "            <div class=\"block__h2 block-container__title\">";
  109.                     echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["section"], "Translation", [], "any"falsefalsefalse30), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'30$this->source); })()), "request", [], "any"falsefalsefalse30), "locale", [], "any"falsefalsefalse30), [], "array"falsefalsefalse30), "titleHtml", [], "any"falsefalsefalse30);
  110.                     echo "</div>
  111.         ";
  112.                 }
  113.                 // line 32
  114.                 echo "        <div class=\"block-container__blocks\" ";
  115.                 if ((((((isset($context["classType"]) || array_key_exists("classType"$context) ? $context["classType"] : (function () { throw new RuntimeError('Variable "classType" does not exist.'32$this->source); })()) == "columns") && twig_get_attribute($this->env$this->source$context["section"], "numCollumn", [], "any"falsefalsefalse32)) && (twig_get_attribute($this->env$this->source$context["section"], "numCollumn", [], "any"falsefalsefalse32) > 1)) &&  !(isset($context["mobile"]) || array_key_exists("mobile"$context) ? $context["mobile"] : (function () { throw new RuntimeError('Variable "mobile" does not exist.'32$this->source); })()))) {
  116.                     echo "style=\"grid-template-columns: repeat(";
  117.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["section"], "numCollumn", [], "any"falsefalsefalse32), "html"nulltrue);
  118.                     echo ", minmax(0, 1fr));\"";
  119.                 }
  120.                 echo ">
  121.             ";
  122.                 // line 33
  123.                 $context['_parent'] = $context;
  124.                 $context['_seq'] = twig_ensure_traversable((isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'33$this->source); })()));
  125.                 $context['loop'] = [
  126.                   'parent' => $context['_parent'],
  127.                   'index0' => 0,
  128.                   'index'  => 1,
  129.                   'first'  => true,
  130.                 ];
  131.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  132.                     $length count($context['_seq']);
  133.                     $context['loop']['revindex0'] = $length 1;
  134.                     $context['loop']['revindex'] = $length;
  135.                     $context['loop']['length'] = $length;
  136.                     $context['loop']['last'] = === $length;
  137.                 }
  138.                 foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  139.                     // line 34
  140.                     echo "                ";
  141.                     if ((twig_get_attribute($this->env$this->source$context["block"], "type", [], "any"falsefalsefalse34) == "text")) {
  142.                         // line 35
  143.                         echo "                    ";
  144.                         echo twig_include($this->env$context"@openform_front_templates/_blocks_sections/_text.html.twig", ["block" => $context["block"]]);
  145.                         echo "
  146.                 ";
  147.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 36
  148. $context["block"], "type", [], "any"falsefalsefalse36) == "text_with_image")) {
  149.                         // line 37
  150.                         echo "                    ";
  151.                         echo twig_include($this->env$context"@openform_front_templates/_blocks_sections/_text_image.html.twig", ["block" => $context["block"]]);
  152.                         echo "
  153.                 ";
  154.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 38
  155. $context["block"], "type", [], "any"falsefalsefalse38) == "text_with_youtube")) {
  156.                         // line 39
  157.                         echo "                    ";
  158.                         echo twig_include($this->env$context"@openform_front_templates/_blocks_sections/_text_image.html.twig", ["block" => $context["block"]]);
  159.                         echo "
  160.                 ";
  161.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 40
  162. $context["block"], "type", [], "any"falsefalsefalse40) == "news")) {
  163.                         // line 41
  164.                         echo "                    ";
  165.                         echo twig_include($this->env$context"@openform_front_templates/_blocks_sections/_news.html.twig", ["block" => $context["block"]]);
  166.                         echo "
  167.                 ";
  168.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 42
  169. $context["block"], "type", [], "any"falsefalsefalse42) == "text_with_audio")) {
  170.                         // line 43
  171.                         echo "                    ";
  172.                         echo twig_include($this->env$context"@openform_front_templates/_blocks_sections/_text_audio.html.twig", ["block" => $context["block"]]);
  173.                         echo "
  174.                 ";
  175.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 44
  176. $context["block"], "type", [], "any"falsefalsefalse44) == "faq")) {
  177.                         // line 45
  178.                         echo "                    ";
  179.                         echo twig_include($this->env$context"@openform_front_templates/_blocks_sections/_faq.html.twig", ["block" => $context["block"]]);
  180.                         echo "
  181.                 ";
  182.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 46
  183. $context["block"], "type", [], "any"falsefalsefalse46) == "gallery")) {
  184.                         // line 47
  185.                         echo "                    ";
  186.                         echo twig_include($this->env$context"@openform_front_templates/_blocks_sections/_gallery.html.twig", ["block" => $context["block"], "count" => (((isset($context["mobile"]) || array_key_exists("mobile"$context) ? $context["mobile"] : (function () { throw new RuntimeError('Variable "mobile" does not exist.'47$this->source); })())) ? (1) : (((((isset($context["classType"]) || array_key_exists("classType"$context) ? $context["classType"] : (function () { throw new RuntimeError('Variable "classType" does not exist.'47$this->source); })()) != "normal")) ? ((((twig_length_filter($this->env, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'47$this->source); })())) >= 4)) ? (1) : ((((twig_length_filter($this->env, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'47$this->source); })())) == 3)) ? (1) : ((((twig_length_filter($this->env, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'47$this->source); })())) == 2)) ? (1) : ((((((twig_length_filter($this->env, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'47$this->source); })())) == 1) && ((isset($context["classType"]) || array_key_exists("classType"$context) ? $context["classType"] : (function () { throw new RuntimeError('Variable "classType" does not exist.'47$this->source); })()) == "big_column_right")) || ((isset($context["classType"]) || array_key_exists("classType"$context) ? $context["classType"] : (function () { throw new RuntimeError('Variable "classType" does not exist.'47$this->source); })()) == "big_column_left"))) ? (1) : (3))))))))) : (3))))]);
  187.                         echo "
  188.                 ";
  189.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 48
  190. $context["block"], "type", [], "any"falsefalsefalse48) == "logotypes")) {
  191.                         // line 49
  192.                         echo "                    ";
  193.                         echo twig_include($this->env$context"@openform_front_templates/_blocks_sections/_logotypes.html.twig", ["block" => $context["block"], "count" => ((((isset($context["classType"]) || array_key_exists("classType"$context) ? $context["classType"] : (function () { throw new RuntimeError('Variable "classType" does not exist.'49$this->source); })()) != "normal")) ? ((((twig_length_filter($this->env, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'49$this->source); })())) >= 4)) ? (2) : ((((twig_length_filter($this->env, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'49$this->source); })())) == 3)) ? (3) : ((((twig_length_filter($this->env, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'49$this->source); })())) == 2)) ? (4) : ((((((twig_length_filter($this->env, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'49$this->source); })())) == 1) && ((isset($context["classType"]) || array_key_exists("classType"$context) ? $context["classType"] : (function () { throw new RuntimeError('Variable "classType" does not exist.'49$this->source); })()) == "big_column_right")) || ((isset($context["classType"]) || array_key_exists("classType"$context) ? $context["classType"] : (function () { throw new RuntimeError('Variable "classType" does not exist.'49$this->source); })()) == "big_column_left"))) ? (3) : (7))))))))) : (7))]);
  194.                         echo "
  195.                 ";
  196.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 50
  197. $context["block"], "type", [], "any"falsefalsefalse50) == "links")) {
  198.                         // line 51
  199.                         echo "                    ";
  200.                         echo twig_include($this->env$context"@openform_front_templates/_blocks_sections/_links.html.twig", ["block" => $context["block"]]);
  201.                         echo "
  202.                 ";
  203.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 52
  204. $context["block"], "type", [], "any"falsefalsefalse52) == "filesets")) {
  205.                         // line 53
  206.                         echo "                    ";
  207.                         echo twig_include($this->env$context"@openform_front_templates/_blocks_sections/_filesets.html.twig", ["block" => $context["block"]]);
  208.                         echo "
  209.                 ";
  210.                     } elseif ((twig_get_attribute($this->env$this->source,                     // line 54
  211. $context["block"], "type", [], "any"falsefalsefalse54) == "sponsors")) {
  212.                         // line 55
  213.                         echo "                    ";
  214.                         echo twig_include($this->env$context"@openform_front_templates/_blocks_sections/_sponsors.html.twig", ["block" => $context["block"]]);
  215.                         echo "
  216.                 ";
  217.                     }
  218.                     // line 57
  219.                     echo "            ";
  220.                     ++$context['loop']['index0'];
  221.                     ++$context['loop']['index'];
  222.                     $context['loop']['first'] = false;
  223.                     if (isset($context['loop']['length'])) {
  224.                         --$context['loop']['revindex0'];
  225.                         --$context['loop']['revindex'];
  226.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  227.                     }
  228.                 }
  229.                 $_parent $context['_parent'];
  230.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  231.                 $context array_intersect_key($context$_parent) + $_parent;
  232.                 // line 58
  233.                 echo "        </div>
  234.         ";
  235.                 // line 61
  236.                 echo "        ";
  237.                 if ((((twig_get_attribute($this->env$this->source$context["section"], "hrWeight", [], "any"truetruefalse61)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["section"], "hrWeight", [], "any"falsefalsefalse61), 0)) : (0)) > 0)) {
  238.                     // line 62
  239.                     echo "            <hr class=\"block-container__line\" style=\"height: ";
  240.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["section"], "hrWeight", [], "any"falsefalsefalse62), "html"nulltrue);
  241.                     echo "px; background: ";
  242.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["section"], "hrBackground", [], "any"truetruefalse62)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["section"], "hrBackground", [], "any"falsefalsefalse62), "transparent")) : ("transparent")), "html"nulltrue);
  243.                     echo ";\"/>
  244.         ";
  245.                 }
  246.                 // line 64
  247.                 echo "
  248.         </div>
  249.     ";
  250.             }
  251.             // line 68
  252.             echo "
  253. ";
  254.             ++$context['loop']['index0'];
  255.             ++$context['loop']['index'];
  256.             $context['loop']['first'] = false;
  257.             if (isset($context['loop']['length'])) {
  258.                 --$context['loop']['revindex0'];
  259.                 --$context['loop']['revindex'];
  260.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  261.             }
  262.         }
  263.         $_parent $context['_parent'];
  264.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
  265.         $context array_intersect_key($context$_parent) + $_parent;
  266.         // line 71
  267.         echo "</div>";
  268.         
  269.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  270.         
  271.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  272.     }
  273.     public function getTemplateName()
  274.     {
  275.         return "@openform_front_templates/_blocks_sections/block.html.twig";
  276.     }
  277.     public function isTraitable()
  278.     {
  279.         return false;
  280.     }
  281.     public function getDebugInfo()
  282.     {
  283.         return array (  281 => 71,  265 => 68,  259 => 64,  251 => 62,  248 => 61,  244 => 58,  230 => 57,  224 => 55,  222 => 54,  217 => 53,  215 => 52,  210 => 51,  208 => 50,  203 => 49,  201 => 48,  196 => 47,  194 => 46,  189 => 45,  187 => 44,  182 => 43,  180 => 42,  175 => 41,  173 => 40,  168 => 39,  166 => 38,  161 => 37,  159 => 36,  154 => 35,  151 => 34,  134 => 33,  125 => 32,  119 => 30,  117 => 29,  104 => 27,  102 => 26,  99 => 25,  96 => 24,  93 => 22,  90 => 21,  88 => 15,  86 => 14,  83 => 12,  77 => 9,  74 => 8,  72 => 7,  70 => 6,  68 => 5,  65 => 4,  48 => 3,  46 => 2,  43 => 1,);
  284.     }
  285.     public function getSourceContext()
  286.     {
  287.         return new Source("<div class=\"js-section\">
  288. {% set mobile = openform_front_util.isMobileDevice() %}
  289. {% for section in sections|default([]) %}
  290.     {% if section is iterable %}
  291.         {# sekcja typu slider #}
  292.         {# public const SECTION_TYPE_COLUMNS = 'columns'; #}
  293.         {{ include('@openform_front_templates/_blocks_sections/_slider.html.twig') }}        
  294.     {% else %}
  295.         {# inne sekcje #}
  296.         {# classType , w nim bedzie typ sekcji, bez kolumn, z kolumnami, z duzym zdjęciem #}
  297.         {# nazwy są takie
  298.         public const SECTION_TYPE_NORMAL = 'normal';
  299.         public const SECTION_TYPE_COLUMNS = 'columns';
  300.         public const SECTION_TYPE_BIG_LEFT = 'big_column_left';
  301.         public const SECTION_TYPE_BIG_RIGHT = 'big_column_right'; 
  302.         #}
  303.         {% set classType = section.type %}
  304.         
  305.         {# ilość kolumn, gdy section.type === 'columns' ==> SECTION_TYPE_COLUMNS #}
  306.         {% set numCollumns = section.numCollumn %}
  307.         {% set blocks = openform_front_util.getSectionBlocks(section) %}
  308.         <div class=\"container block-container {{not mobile and classType != \"columns\" ? classType : not mobile and classType == \"columns\" and section.numCollumn > 1 ? classType }}{{ blocks|length == 0 ? ' hide' }}\" style=\"background: {{section.sectionBackground|default('transparent') }}; {{ entity is defined and entity.mainContentPaddingTop is defined and entity.mainContentPaddingTop ? 'padding-top: ' ~ entity.mainContentPaddingTop ~ 'px;'}} {{ entity is defined and entity.mainContentPaddingBottom is defined and entity.mainContentPaddingBottom ? 'padding-bottom: ' ~ entity.mainContentPaddingBottom ~ 'px;'}}\">
  309.         {% if section.Translation[app.request.locale].title %}
  310.             <div class=\"block__h2 block-container__title\">{{section.Translation[app.request.locale].titleHtml|raw}}</div>
  311.         {% endif %}
  312.         <div class=\"block-container__blocks\" {% if classType == \"columns\" and section.numCollumn and section.numCollumn > 1 and not mobile %}style=\"grid-template-columns: repeat({{ section.numCollumn }}, minmax(0, 1fr));\"{% endif %}>
  313.             {% for block in blocks %}
  314.                 {% if block.type == 'text' %}
  315.                     {{ include('@openform_front_templates/_blocks_sections/_text.html.twig', {block: block}) }}
  316.                 {% elseif block.type == 'text_with_image' %}
  317.                     {{ include('@openform_front_templates/_blocks_sections/_text_image.html.twig', {block: block}) }}
  318.                 {% elseif block.type == 'text_with_youtube' %}
  319.                     {{ include('@openform_front_templates/_blocks_sections/_text_image.html.twig', {block: block}) }}
  320.                 {% elseif block.type == 'news' %}
  321.                     {{ include('@openform_front_templates/_blocks_sections/_news.html.twig', {block: block}) }}
  322.                 {% elseif block.type == 'text_with_audio' %}
  323.                     {{ include('@openform_front_templates/_blocks_sections/_text_audio.html.twig', {block: block}) }}
  324.                 {% elseif block.type == 'faq' %}
  325.                     {{ include('@openform_front_templates/_blocks_sections/_faq.html.twig', {block: block}) }}
  326.                 {% elseif block.type == 'gallery' %}
  327.                     {{ include('@openform_front_templates/_blocks_sections/_gallery.html.twig', {block: block, count: mobile ? 1 : (classType !='normal' ? blocks|length >= 4 ? 1 : blocks|length == 3 ? 1 : blocks|length == 2 ? 1 : blocks|length == 1 and classType =='big_column_right' or classType == 'big_column_left' ? 1 : 3 : 3)}) }}
  328.                 {% elseif block.type == 'logotypes' %}
  329.                     {{ include('@openform_front_templates/_blocks_sections/_logotypes.html.twig', {block: block, count: classType !='normal' ? blocks|length >= 4 ? 2 : blocks|length == 3 ? 3 : blocks|length == 2 ? 4 : blocks|length == 1 and classType =='big_column_right' or classType == 'big_column_left' ? 3 : 7 : 7 })  }}
  330.                 {% elseif block.type == 'links' %}
  331.                     {{ include('@openform_front_templates/_blocks_sections/_links.html.twig', {block: block}) }}
  332.                 {% elseif block.type == 'filesets' %}
  333.                     {{ include('@openform_front_templates/_blocks_sections/_filesets.html.twig', {block: block}) }}
  334.                 {% elseif block.type == 'sponsors' %}
  335.                     {{ include('@openform_front_templates/_blocks_sections/_sponsors.html.twig', {block: block}) }}
  336.                 {% endif %}
  337.             {% endfor %}
  338.         </div>
  339.         {# linia oddzielająca jesli zdefiniowana #}
  340.         {% if section.hrWeight|default(0) > 0 %}
  341.             <hr class=\"block-container__line\" style=\"height: {{section.hrWeight}}px; background: {{section.hrBackground|default('transparent') }};\"/>
  342.         {% endif %}
  343.         </div>
  344.     {% endif %}
  345. {% endfor %}
  346. </div>""@openform_front_templates/_blocks_sections/block.html.twig""/var/www/php81/fpd.in.openform.pl/src/Package/Openform/Front/Templates/_blocks_sections/block.html.twig");
  347.     }
  348. }