<?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;
/* pages/caseStudy.html.twig */
class __TwigTemplate_2788357c78a6c7d286d0c7b54e38a678 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
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", "pages/caseStudy.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/caseStudy.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "pages/caseStudy.html.twig", 1);
$this->parent->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 " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 4, $this->source); })()), "mainHeaderBlock", [], "any", false, false, false, 4));
$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["mainHeader"]) {
// line 5
echo " ";
// line 8
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["mainHeader"], "type", [], "any", false, false, false, 8) == "mainHeader")) {
// line 9
echo " ";
echo twig_include($this->env, $context, "pages/components/mainHeader.html.twig", ["content" => $context["mainHeader"]]);
echo "
";
}
// line 11
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['mainHeader'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 12
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 12, $this->source); })()), "htmlContentIsView", [], "any", false, false, false, 12)) {
// line 13
echo " <div style=\"order: ";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "htmlContentOrder", [], "any", true, true, false, 13) && !(null === twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "htmlContentOrder", [], "any", false, false, false, 13)))) ? (twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "htmlContentOrder", [], "any", false, false, false, 13)) : ( -1)), "html", null, true);
echo "\">
<modern-case-grid
items=\"";
// line 15
echo twig_escape_filter($this->env, json_encode($this->extensions['App\Twig\ComponentDataAdapterExtension']->adaptAttribute("html_content.items", twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 15, $this->source); })()), "htmlContentItems", [], "any", false, false, false, 15))), "html", null, true);
echo "\"
label=\"";
// line 16
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("case_study.label.client", [], "translations"), "html", null, true);
echo "\"
image=\"";
// line 17
echo twig_escape_filter($this->env, json_encode($this->extensions['App\Twig\ComponentDataAdapterExtension']->adaptAttribute("side_details.image", ["image" => twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 17, $this->source); })()), "sideDetailsLogo", [], "any", false, false, false, 17)])), "html", null, true);
echo "\"
details=\"";
// line 18
echo twig_escape_filter($this->env, json_encode($this->extensions['App\Twig\ComponentDataAdapterExtension']->adaptAttribute("side_details.details", ["content" => // line 19
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 19, $this->source); })()), "categories" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 20
(isset($context["extension"]) || array_key_exists("extension", $context) ? $context["extension"] : (function () { throw new RuntimeError('Variable "extension" does not exist.', 20, $this->source); })()), "excerpt", [], "any", false, false, false, 20), "categories", [], "any", false, false, false, 20), "locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 21
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 21, $this->source); })()), "request", [], "any", false, false, false, 21), "locale", [], "any", false, false, false, 21)])), "html", null, true);
// line 22
echo "\"
>
";
// line 25
echo " ";
// line 26
echo " </modern-case-grid>
</div>
";
}
// line 29
echo " ";
echo twig_include($this->env, $context, "pages/components/gallery.html.twig", ["slot" => "gallery"]);
echo "
";
// line 30
echo twig_include($this->env, $context, "pages/components/overview.html.twig");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "pages/caseStudy.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 153 => 30, 148 => 29, 143 => 26, 141 => 25, 137 => 22, 135 => 21, 134 => 20, 133 => 19, 132 => 18, 128 => 17, 124 => 16, 120 => 15, 114 => 13, 111 => 12, 97 => 11, 91 => 9, 88 => 8, 86 => 5, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block content %}
{% for mainHeader in content.mainHeaderBlock %}
{# {% if(mainHeader.type == 'mainHeader3') %}
{{ include('pages/components/mainHeader3.html.twig', {'content' : mainHeader}) }}
{% endif %} #}
{% if(mainHeader.type == 'mainHeader') %}
{{ include('pages/components/mainHeader.html.twig', {'content' : mainHeader}) }}
{% endif %}
{% endfor %}
{% if content.htmlContentIsView %}
<div style=\"order: {{ content.htmlContentOrder ?? -1 }}\">
<modern-case-grid
items=\"{{ adapt_attribute('html_content.items', content.htmlContentItems) | json_encode }}\"
label=\"{{ 'case_study.label.client' | trans([], 'translations') }}\"
image=\"{{ adapt_attribute('side_details.image', {'image': content.sideDetailsLogo }) | json_encode }}\"
details=\"{{ adapt_attribute('side_details.details', {
'content': content,
'categories': extension.excerpt.categories,
'locale': app.request.locale
}) | json_encode }}\"
>
{# {{ include('pages/components/htmlContent.html.twig', {'slot': 'description'}) }} #}
{# {{ include('pages/components/sideDetails.html.twig', {'slot': 'details'}) }} #}
</modern-case-grid>
</div>
{% endif %}
{{ include('pages/components/gallery.html.twig', {'slot': 'gallery'}) }}
{{ include('pages/components/overview.html.twig') }}
{% endblock %}
", "pages/caseStudy.html.twig", "/var/www/modern-expo.com/templates/pages/caseStudy.html.twig");
}
}