<?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;
/* sponsors/overview.html.twig */
class __TwigTemplate_1ed4e8d9d7fd6d083ce3b19706dd6fb7 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "sponsors/overview.html.twig", 1);
}
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", "sponsors/overview.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "sponsors/overview.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_content($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(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
echo " <div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
";
// line 8
echo twig_include($this->env, $context, "includes/default-content.html.twig");
echo "
</div>
</div>
";
// line 12
if ((isset($context["sponsors"]) || array_key_exists("sponsors", $context) ? $context["sponsors"] : (function () { throw new RuntimeError('Variable "sponsors" does not exist.', 12, $this->source); })())) {
// line 13
echo "
<h2 class=\"text-center mb-3\">";
// line 14
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Golder Partner", []), "html", null, true);
echo "</h2>
<div class=\"row row-cols-lg-5 row-cols-3 mb-5 d-flex align-items-center\">
";
// line 16
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["sponsors"]) || array_key_exists("sponsors", $context) ? $context["sponsors"] : (function () { throw new RuntimeError('Variable "sponsors" does not exist.', 16, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["sponsor"]) {
// line 17
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["sponsor"], "getPartner", [], "method", false, false, true, 17) == "Gold Partner")) {
// line 18
echo " <div class=\"col text-center\">
";
// line 19
if (twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 19)) {
echo "<a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 19), "direct", [], "any", false, false, true, 19), 19, $this->source), "html", null, true);
echo "\"
target=\"";
// line 20
if (twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 20)) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 20), "target", [], "any", false, false, true, 20), 20, $this->source), "html", null, true);
}
echo "\">";
}
// line 21
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["sponsor"], "image", [], "any", false, false, true, 21));
foreach ($context['_seq'] as $context["_key"] => $context["Image"]) {
// line 22
echo " <div>
<img src=\"";
// line 23
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Image"], "image", [], "any", false, false, true, 23), "getThumbnail", [0 => "slideshow-product"], "method", false, false, true, 23), 23, $this->source), "html", null, true);
echo "\"
alt=\"";
// line 24
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["sponsor"], "getTitle", [], "method", false, false, true, 24), 24, $this->source), "html", null, true);
echo "\" class=\"d-block w-100 h-100\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 27
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 27)) {
echo "</a>";
}
// line 28
echo " </div>
";
}
// line 30
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sponsor'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 31
echo " </div>
<h2 class=\"text-center mb-3\">";
// line 33
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Silver Partner", []), "html", null, true);
echo "</h2>
<div class=\"row row-cols-lg-5 row-cols-3 mb-5 d-flex align-items-center\">
";
// line 35
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["sponsors"]) || array_key_exists("sponsors", $context) ? $context["sponsors"] : (function () { throw new RuntimeError('Variable "sponsors" does not exist.', 35, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["sponsor"]) {
// line 36
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["sponsor"], "getPartner", [], "method", false, false, true, 36) == "Silver Partner")) {
// line 37
echo "
<div class=\"col text-center\">
";
// line 39
if (twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 39)) {
echo "<a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 39), "direct", [], "any", false, false, true, 39), 39, $this->source), "html", null, true);
echo "\"
target=\"";
// line 40
if (twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 40)) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 40), "target", [], "any", false, false, true, 40), 40, $this->source), "html", null, true);
}
echo "\">";
}
// line 41
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["sponsor"], "image", [], "any", false, false, true, 41));
foreach ($context['_seq'] as $context["_key"] => $context["Image"]) {
// line 42
echo " <div>
<img src=\"";
// line 43
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Image"], "image", [], "any", false, false, true, 43), "getThumbnail", [0 => "slideshow-product"], "method", false, false, true, 43), 43, $this->source), "html", null, true);
echo "\"
alt=\"";
// line 44
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["sponsor"], "getTitle", [], "method", false, false, true, 44), 44, $this->source), "html", null, true);
echo "\" class=\"d-block w-100 h-100\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 47
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 47)) {
echo "</a>";
}
// line 48
echo " </div>
";
}
// line 50
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sponsor'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 51
echo " </div>
<h2 class=\"text-center mb-3\">";
// line 56
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Bronze Partner", []), "html", null, true);
echo "</h2>
<div class=\"row row-cols-lg-5 row-cols-3 mb-5 d-flex align-items-center\">
";
// line 58
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["sponsors"]) || array_key_exists("sponsors", $context) ? $context["sponsors"] : (function () { throw new RuntimeError('Variable "sponsors" does not exist.', 58, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["sponsor"]) {
// line 59
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["sponsor"], "getPartner", [], "method", false, false, true, 59) == "Bronze Partner")) {
// line 60
echo " <div class=\"col text-center\">
";
// line 61
if (twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 61)) {
echo "<a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 61), "direct", [], "any", false, false, true, 61), 61, $this->source), "html", null, true);
echo "\"
target=\"";
// line 62
if (twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 62)) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 62), "target", [], "any", false, false, true, 62), 62, $this->source), "html", null, true);
}
echo "\">";
}
// line 63
echo " ";
// line 64
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["sponsor"], "image", [], "any", false, false, true, 64));
foreach ($context['_seq'] as $context["_key"] => $context["Image"]) {
// line 65
echo " <div>
<img src=\"";
// line 66
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Image"], "image", [], "any", false, false, true, 66), "getThumbnail", [0 => "slideshow-product"], "method", false, false, true, 66), 66, $this->source), "html", null, true);
echo "\"
alt=\"";
// line 67
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["sponsor"], "getTitle", [], "method", false, false, true, 67), 67, $this->source), "html", null, true);
echo "\" class=\"d-block w-50 h-50\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 70
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["sponsor"], "partnerLink", [], "any", false, false, true, 70)) {
echo "</a>";
}
// line 71
echo " </div>
";
}
// line 73
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sponsor'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 74
echo " </div>
";
// line 76
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "content-below");
echo "
";
}
// line 82
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "sponsors/overview.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 303 => 82, 294 => 76, 290 => 74, 284 => 73, 280 => 71, 275 => 70, 266 => 67, 262 => 66, 259 => 65, 254 => 64, 252 => 63, 246 => 62, 240 => 61, 237 => 60, 234 => 59, 230 => 58, 225 => 56, 218 => 51, 212 => 50, 208 => 48, 203 => 47, 194 => 44, 190 => 43, 187 => 42, 182 => 41, 176 => 40, 170 => 39, 166 => 37, 163 => 36, 159 => 35, 154 => 33, 150 => 31, 144 => 30, 140 => 28, 135 => 27, 126 => 24, 122 => 23, 119 => 22, 114 => 21, 108 => 20, 102 => 19, 99 => 18, 96 => 17, 92 => 16, 87 => 14, 84 => 13, 82 => 12, 75 => 8, 69 => 4, 59 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% block content %}
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
{{ include('includes/default-content.html.twig') }}
</div>
</div>
{% if sponsors %}
<h2 class=\"text-center mb-3\">{{ 'Golder Partner'|trans({}) }}</h2>
<div class=\"row row-cols-lg-5 row-cols-3 mb-5 d-flex align-items-center\">
{% for sponsor in sponsors %}
{% if sponsor.getPartner() == \"Gold Partner\" %}
<div class=\"col text-center\">
{% if sponsor.partnerLink %}<a href=\"{{ sponsor.partnerLink.direct }}\"
target=\"{% if sponsor.partnerLink %}{{ sponsor.partnerLink.target }}{% endif %}\">{% endif %}
{% for Image in sponsor.image %}
<div>
<img src=\"{{ Image.image.getThumbnail('slideshow-product') }}\"
alt=\"{{ sponsor.getTitle() }}\" class=\"d-block w-100 h-100\">
</div>
{% endfor %}
{% if sponsor.partnerLink %}</a>{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
<h2 class=\"text-center mb-3\">{{ 'Silver Partner'|trans({}) }}</h2>
<div class=\"row row-cols-lg-5 row-cols-3 mb-5 d-flex align-items-center\">
{% for sponsor in sponsors %}
{% if sponsor.getPartner() == \"Silver Partner\" %}
<div class=\"col text-center\">
{% if sponsor.partnerLink %}<a href=\"{{ sponsor.partnerLink.direct }}\"
target=\"{% if sponsor.partnerLink %}{{ sponsor.partnerLink.target }}{% endif %}\">{% endif %}
{% for Image in sponsor.image %}
<div>
<img src=\"{{ Image.image.getThumbnail('slideshow-product') }}\"
alt=\"{{ sponsor.getTitle() }}\" class=\"d-block w-100 h-100\">
</div>
{% endfor %}
{% if sponsor.partnerLink %}</a>{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
<h2 class=\"text-center mb-3\">{{ 'Bronze Partner'|trans({}) }}</h2>
<div class=\"row row-cols-lg-5 row-cols-3 mb-5 d-flex align-items-center\">
{% for sponsor in sponsors %}
{% if sponsor.getPartner() == \"Bronze Partner\" %}
<div class=\"col text-center\">
{% if sponsor.partnerLink %}<a href=\"{{ sponsor.partnerLink.direct }}\"
target=\"{% if sponsor.partnerLink %}{{ sponsor.partnerLink.target }}{% endif %}\">{% endif %}
{# <h3>{{ sponsor.getTitle() }}</h3> #}
{% for Image in sponsor.image %}
<div>
<img src=\"{{ Image.image.getThumbnail('slideshow-product') }}\"
alt=\"{{ sponsor.getTitle() }}\" class=\"d-block w-50 h-50\">
</div>
{% endfor %}
{% if sponsor.partnerLink %}</a>{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
{{ pimcore_areablock('content-below') }}
{% endif %}
</div>
{% endblock %}
", "sponsors/overview.html.twig", "/var/www/clients/client2/web45/web/pc/templates/sponsors/overview.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 12, "for" => 16);
static $filters = array("escape" => 14, "trans" => 14);
static $functions = array("include" => 8, "pimcore_areablock" => 76, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['if', 'for'],
['escape', 'trans'],
['include', 'pimcore_areablock', 'base_layout']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}