<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @openform_front_templates/_blocks_sections/block.html.twig */
class __TwigTemplate_266e750e4136e7f0220509145108bf5e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@openform_front_templates/_blocks_sections/block.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@openform_front_templates/_blocks_sections/block.html.twig"));
// line 1
echo "<div class=\"js-section\">
";
// line 2
$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", false, false, false, 2);
// line 3
$context['_parent'] = $context;
$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); })()), [])) : ([])));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
// line 4
echo "
";
// line 5
if (twig_test_iterable($context["section"])) {
// line 6
echo " ";
// line 7
echo " ";
// line 8
echo "
";
// line 9
echo twig_include($this->env, $context, "@openform_front_templates/_blocks_sections/_slider.html.twig");
echo "
";
} else {
// line 12
echo "
";
// line 14
echo " ";
// line 15
echo " ";
// line 21
echo " ";
$context["classType"] = twig_get_attribute($this->env, $this->source, $context["section"], "type", [], "any", false, false, false, 21);
// line 22
echo "
";
// line 24
echo " ";
$context["numCollumns"] = twig_get_attribute($this->env, $this->source, $context["section"], "numCollumn", [], "any", false, false, false, 24);
// line 25
echo "
";
// line 26
$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", false, false, false, 26);
// line 27
echo " <div class=\"container block-container ";
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", false, false, false, 27) > 1))) ? ((isset($context["classType"]) || array_key_exists("classType", $context) ? $context["classType"] : (function () { throw new RuntimeError('Variable "classType" does not exist.', 27, $this->source); })())) : ("")))), "html", null, true);
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") : (""));
echo "\" style=\"background: ";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["section"], "sectionBackground", [], "any", true, true, false, 27)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["section"], "sectionBackground", [], "any", false, false, false, 27), "transparent")) : ("transparent")), "html", null, true);
echo "; ";
((((array_key_exists("entity", $context) && twig_get_attribute($this->env, $this->source, ($context["entity"] ?? null), "mainContentPaddingTop", [], "any", true, true, false, 27)) && 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", false, false, false, 27))) ? (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", false, false, false, 27)) . "px;"), "html", null, true))) : (print ("")));
echo " ";
((((array_key_exists("entity", $context) && twig_get_attribute($this->env, $this->source, ($context["entity"] ?? null), "mainContentPaddingBottom", [], "any", true, true, false, 27)) && 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", false, false, false, 27))) ? (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", false, false, false, 27)) . "px;"), "html", null, true))) : (print ("")));
echo "\">
";
// line 29
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["section"], "Translation", [], "any", false, false, false, 29), twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 29), "locale", [], "any", false, false, false, 29), [], "array", false, false, false, 29), "title", [], "any", false, false, false, 29)) {
// line 30
echo " <div class=\"block__h2 block-container__title\">";
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["section"], "Translation", [], "any", false, false, false, 30), twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 30), "locale", [], "any", false, false, false, 30), [], "array", false, false, false, 30), "titleHtml", [], "any", false, false, false, 30);
echo "</div>
";
}
// line 32
echo " <div class=\"block-container__blocks\" ";
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", false, false, false, 32)) && (twig_get_attribute($this->env, $this->source, $context["section"], "numCollumn", [], "any", false, false, false, 32) > 1)) && !(isset($context["mobile"]) || array_key_exists("mobile", $context) ? $context["mobile"] : (function () { throw new RuntimeError('Variable "mobile" does not exist.', 32, $this->source); })()))) {
echo "style=\"grid-template-columns: repeat(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["section"], "numCollumn", [], "any", false, false, false, 32), "html", null, true);
echo ", minmax(0, 1fr));\"";
}
echo ">
";
// line 33
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
// line 34
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["block"], "type", [], "any", false, false, false, 34) == "text")) {
// line 35
echo " ";
echo twig_include($this->env, $context, "@openform_front_templates/_blocks_sections/_text.html.twig", ["block" => $context["block"]]);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 36
$context["block"], "type", [], "any", false, false, false, 36) == "text_with_image")) {
// line 37
echo " ";
echo twig_include($this->env, $context, "@openform_front_templates/_blocks_sections/_text_image.html.twig", ["block" => $context["block"]]);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 38
$context["block"], "type", [], "any", false, false, false, 38) == "text_with_youtube")) {
// line 39
echo " ";
echo twig_include($this->env, $context, "@openform_front_templates/_blocks_sections/_text_image.html.twig", ["block" => $context["block"]]);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 40
$context["block"], "type", [], "any", false, false, false, 40) == "news")) {
// line 41
echo " ";
echo twig_include($this->env, $context, "@openform_front_templates/_blocks_sections/_news.html.twig", ["block" => $context["block"]]);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 42
$context["block"], "type", [], "any", false, false, false, 42) == "text_with_audio")) {
// line 43
echo " ";
echo twig_include($this->env, $context, "@openform_front_templates/_blocks_sections/_text_audio.html.twig", ["block" => $context["block"]]);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 44
$context["block"], "type", [], "any", false, false, false, 44) == "faq")) {
// line 45
echo " ";
echo twig_include($this->env, $context, "@openform_front_templates/_blocks_sections/_faq.html.twig", ["block" => $context["block"]]);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 46
$context["block"], "type", [], "any", false, false, false, 46) == "gallery")) {
// line 47
echo " ";
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))))]);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 48
$context["block"], "type", [], "any", false, false, false, 48) == "logotypes")) {
// line 49
echo " ";
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))]);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 50
$context["block"], "type", [], "any", false, false, false, 50) == "links")) {
// line 51
echo " ";
echo twig_include($this->env, $context, "@openform_front_templates/_blocks_sections/_links.html.twig", ["block" => $context["block"]]);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 52
$context["block"], "type", [], "any", false, false, false, 52) == "filesets")) {
// line 53
echo " ";
echo twig_include($this->env, $context, "@openform_front_templates/_blocks_sections/_filesets.html.twig", ["block" => $context["block"]]);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 54
$context["block"], "type", [], "any", false, false, false, 54) == "sponsors")) {
// line 55
echo " ";
echo twig_include($this->env, $context, "@openform_front_templates/_blocks_sections/_sponsors.html.twig", ["block" => $context["block"]]);
echo "
";
}
// line 57
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 58
echo " </div>
";
// line 61
echo " ";
if ((((twig_get_attribute($this->env, $this->source, $context["section"], "hrWeight", [], "any", true, true, false, 61)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["section"], "hrWeight", [], "any", false, false, false, 61), 0)) : (0)) > 0)) {
// line 62
echo " <hr class=\"block-container__line\" style=\"height: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["section"], "hrWeight", [], "any", false, false, false, 62), "html", null, true);
echo "px; background: ";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["section"], "hrBackground", [], "any", true, true, false, 62)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["section"], "hrBackground", [], "any", false, false, false, 62), "transparent")) : ("transparent")), "html", null, true);
echo ";\"/>
";
}
// line 64
echo "
</div>
";
}
// line 68
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 71
echo "</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@openform_front_templates/_blocks_sections/block.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<div class=\"js-section\">
{% set mobile = openform_front_util.isMobileDevice() %}
{% for section in sections|default([]) %}
{% if section is iterable %}
{# sekcja typu slider #}
{# public const SECTION_TYPE_COLUMNS = 'columns'; #}
{{ include('@openform_front_templates/_blocks_sections/_slider.html.twig') }}
{% else %}
{# inne sekcje #}
{# classType , w nim bedzie typ sekcji, bez kolumn, z kolumnami, z duzym zdjęciem #}
{# nazwy są takie
public const SECTION_TYPE_NORMAL = 'normal';
public const SECTION_TYPE_COLUMNS = 'columns';
public const SECTION_TYPE_BIG_LEFT = 'big_column_left';
public const SECTION_TYPE_BIG_RIGHT = 'big_column_right';
#}
{% set classType = section.type %}
{# ilość kolumn, gdy section.type === 'columns' ==> SECTION_TYPE_COLUMNS #}
{% set numCollumns = section.numCollumn %}
{% set blocks = openform_front_util.getSectionBlocks(section) %}
<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;'}}\">
{% if section.Translation[app.request.locale].title %}
<div class=\"block__h2 block-container__title\">{{section.Translation[app.request.locale].titleHtml|raw}}</div>
{% endif %}
<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 %}>
{% for block in blocks %}
{% if block.type == 'text' %}
{{ include('@openform_front_templates/_blocks_sections/_text.html.twig', {block: block}) }}
{% elseif block.type == 'text_with_image' %}
{{ include('@openform_front_templates/_blocks_sections/_text_image.html.twig', {block: block}) }}
{% elseif block.type == 'text_with_youtube' %}
{{ include('@openform_front_templates/_blocks_sections/_text_image.html.twig', {block: block}) }}
{% elseif block.type == 'news' %}
{{ include('@openform_front_templates/_blocks_sections/_news.html.twig', {block: block}) }}
{% elseif block.type == 'text_with_audio' %}
{{ include('@openform_front_templates/_blocks_sections/_text_audio.html.twig', {block: block}) }}
{% elseif block.type == 'faq' %}
{{ include('@openform_front_templates/_blocks_sections/_faq.html.twig', {block: block}) }}
{% elseif block.type == 'gallery' %}
{{ 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)}) }}
{% elseif block.type == 'logotypes' %}
{{ 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 }) }}
{% elseif block.type == 'links' %}
{{ include('@openform_front_templates/_blocks_sections/_links.html.twig', {block: block}) }}
{% elseif block.type == 'filesets' %}
{{ include('@openform_front_templates/_blocks_sections/_filesets.html.twig', {block: block}) }}
{% elseif block.type == 'sponsors' %}
{{ include('@openform_front_templates/_blocks_sections/_sponsors.html.twig', {block: block}) }}
{% endif %}
{% endfor %}
</div>
{# linia oddzielająca jesli zdefiniowana #}
{% if section.hrWeight|default(0) > 0 %}
<hr class=\"block-container__line\" style=\"height: {{section.hrWeight}}px; background: {{section.hrBackground|default('transparent') }};\"/>
{% endif %}
</div>
{% endif %}
{% endfor %}
</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");
}
}