var/cache/website/dev/twig/2b/2be72d97a68d1b3617259ef2718b49d1.php line 48

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. /* pages/caseStudy.html.twig */
  14. class __TwigTemplate_2788357c78a6c7d286d0c7b54e38a678 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->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/caseStudy.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/caseStudy.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""pages/caseStudy.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 3
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 4
  54.         echo "    ";
  55.         $context['_parent'] = $context;
  56.         $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"falsefalsefalse4));
  57.         $context['loop'] = [
  58.           'parent' => $context['_parent'],
  59.           'index0' => 0,
  60.           'index'  => 1,
  61.           'first'  => true,
  62.         ];
  63.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  64.             $length count($context['_seq']);
  65.             $context['loop']['revindex0'] = $length 1;
  66.             $context['loop']['revindex'] = $length;
  67.             $context['loop']['length'] = $length;
  68.             $context['loop']['last'] = === $length;
  69.         }
  70.         foreach ($context['_seq'] as $context["_key"] => $context["mainHeader"]) {
  71.             // line 5
  72.             echo "        ";
  73.             // line 8
  74.             echo "        ";
  75.             if ((twig_get_attribute($this->env$this->source$context["mainHeader"], "type", [], "any"falsefalsefalse8) == "mainHeader")) {
  76.                 // line 9
  77.                 echo "            ";
  78.                 echo twig_include($this->env$context"pages/components/mainHeader.html.twig", ["content" => $context["mainHeader"]]);
  79.                 echo "
  80.         ";
  81.             }
  82.             // line 11
  83.             echo "    ";
  84.             ++$context['loop']['index0'];
  85.             ++$context['loop']['index'];
  86.             $context['loop']['first'] = false;
  87.             if (isset($context['loop']['length'])) {
  88.                 --$context['loop']['revindex0'];
  89.                 --$context['loop']['revindex'];
  90.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  91.             }
  92.         }
  93.         $_parent $context['_parent'];
  94.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mainHeader'], $context['_parent'], $context['loop']);
  95.         $context array_intersect_key($context$_parent) + $_parent;
  96.         // line 12
  97.         echo "    ";
  98.         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"falsefalsefalse12)) {
  99.             // line 13
  100.             echo "        <div style=\"order: ";
  101.             echo twig_escape_filter($this->env, (((twig_get_attribute($this->env$this->source, ($context["content"] ?? null), "htmlContentOrder", [], "any"truetruefalse13) &&  !(null === twig_get_attribute($this->env$this->source, ($context["content"] ?? null), "htmlContentOrder", [], "any"falsefalsefalse13)))) ? (twig_get_attribute($this->env$this->source, ($context["content"] ?? null), "htmlContentOrder", [], "any"falsefalsefalse13)) : ( -1)), "html"nulltrue);
  102.             echo "\">
  103.             <modern-case-grid
  104.                     items=\"";
  105.             // line 15
  106.             echo twig_escape_filter($this->envjson_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"falsefalsefalse15))), "html"nulltrue);
  107.             echo "\"
  108.                     label=\"";
  109.             // line 16
  110.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("case_study.label.client", [], "translations"), "html"nulltrue);
  111.             echo "\"
  112.                     image=\"";
  113.             // line 17
  114.             echo twig_escape_filter($this->envjson_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"falsefalsefalse17)])), "html"nulltrue);
  115.             echo "\"
  116.                     details=\"";
  117.             // line 18
  118.             echo twig_escape_filter($this->envjson_encode($this->extensions['App\Twig\ComponentDataAdapterExtension']->adaptAttribute("side_details.details", ["content" =>             // line 19
  119. (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->sourcetwig_get_attribute($this->env$this->source,             // line 20
  120. (isset($context["extension"]) || array_key_exists("extension"$context) ? $context["extension"] : (function () { throw new RuntimeError('Variable "extension" does not exist.'20$this->source); })()), "excerpt", [], "any"falsefalsefalse20), "categories", [], "any"falsefalsefalse20), "locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 21
  121. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'21$this->source); })()), "request", [], "any"falsefalsefalse21), "locale", [], "any"falsefalsefalse21)])), "html"nulltrue);
  122.             // line 22
  123.             echo "\"
  124.             >
  125.                 ";
  126.             // line 25
  127.             echo "                ";
  128.             // line 26
  129.             echo "            </modern-case-grid>
  130.         </div>
  131.     ";
  132.         }
  133.         // line 29
  134.         echo "    ";
  135.         echo twig_include($this->env$context"pages/components/gallery.html.twig", ["slot" => "gallery"]);
  136.         echo "
  137.     ";
  138.         // line 30
  139.         echo twig_include($this->env$context"pages/components/overview.html.twig");
  140.         echo "
  141. ";
  142.         
  143.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  144.         
  145.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  146.     }
  147.     public function getTemplateName()
  148.     {
  149.         return "pages/caseStudy.html.twig";
  150.     }
  151.     public function isTraitable()
  152.     {
  153.         return false;
  154.     }
  155.     public function getDebugInfo()
  156.     {
  157.         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,);
  158.     }
  159.     public function getSourceContext()
  160.     {
  161.         return new Source("{% extends \"base.html.twig\" %}
  162. {% block content %}
  163.     {% for mainHeader in content.mainHeaderBlock %}
  164.         {# {% if(mainHeader.type == 'mainHeader3') %}
  165.             {{ include('pages/components/mainHeader3.html.twig', {'content' : mainHeader}) }}
  166.         {% endif %} #}
  167.         {% if(mainHeader.type == 'mainHeader') %}
  168.             {{ include('pages/components/mainHeader.html.twig', {'content' : mainHeader}) }}
  169.         {% endif %}
  170.     {% endfor %}
  171.     {% if content.htmlContentIsView %}
  172.         <div style=\"order: {{ content.htmlContentOrder ?? -1 }}\">
  173.             <modern-case-grid
  174.                     items=\"{{ adapt_attribute('html_content.items', content.htmlContentItems) | json_encode }}\"
  175.                     label=\"{{ 'case_study.label.client' | trans([], 'translations') }}\"
  176.                     image=\"{{ adapt_attribute('side_details.image', {'image': content.sideDetailsLogo }) | json_encode }}\"
  177.                     details=\"{{ adapt_attribute('side_details.details', {
  178.                         'content': content,
  179.                         'categories': extension.excerpt.categories,
  180.                         'locale': app.request.locale
  181.                     }) | json_encode }}\"
  182.             >
  183.                 {# {{ include('pages/components/htmlContent.html.twig', {'slot': 'description'}) }} #}
  184.                 {# {{ include('pages/components/sideDetails.html.twig', {'slot': 'details'}) }} #}
  185.             </modern-case-grid>
  186.         </div>
  187.     {% endif %}
  188.     {{ include('pages/components/gallery.html.twig', {'slot': 'gallery'}) }}
  189.     {{ include('pages/components/overview.html.twig') }}
  190. {% endblock %}
  191. ""pages/caseStudy.html.twig""/var/www/modern-expo.com/templates/pages/caseStudy.html.twig");
  192.     }
  193. }