Deprecated: Constant E_STRICT is deprecated in /var/www/html/k/kasscaffolding/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /var/www/html/k/kasscaffolding/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

var/cache/dev/twig/9e/9e7e866bced25b4b7a2c71a485c2b6c8.php line 83

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. /* @theme/casestudies/testimonials.html.twig */
  14. class __TwigTemplate_d114dcf762fe9c45b97ef919f0f01292 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""@theme/casestudies/testimonials.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""@theme/casestudies/testimonials.html.twig"));
  33.         // line 1
  34.         if ((twig_length_filter($this->env, (isset($context["testimonials"]) || array_key_exists("testimonials"$context) ? $context["testimonials"] : (function () { throw new RuntimeError('Variable "testimonials" does not exist.'1$this->source); })())) > 0)) {
  35.             // line 2
  36.             echo "    <section>
  37.         <div class=\"container\">
  38.             <div class=\"grid gap-8\">
  39.                 ";
  40.             // line 5
  41.             $context['_parent'] = $context;
  42.             $context['_seq'] = twig_ensure_traversable((isset($context["testimonials"]) || array_key_exists("testimonials"$context) ? $context["testimonials"] : (function () { throw new RuntimeError('Variable "testimonials" does not exist.'5$this->source); })()));
  43.             $context['loop'] = [
  44.               'parent' => $context['_parent'],
  45.               'index0' => 0,
  46.               'index'  => 1,
  47.               'first'  => true,
  48.             ];
  49.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  50.                 $length count($context['_seq']);
  51.                 $context['loop']['revindex0'] = $length 1;
  52.                 $context['loop']['revindex'] = $length;
  53.                 $context['loop']['length'] = $length;
  54.                 $context['loop']['last'] = === $length;
  55.             }
  56.             foreach ($context['_seq'] as $context["_key"] => $context["testimonial"]) {
  57.                 // line 6
  58.                 echo "                    <div class=\"w-full flex ";
  59.                 if (twig_get_attribute($this->env$this->source$context["testimonial"], "image", [], "any"falsefalsefalse6)) {
  60.                     echo "flex-row";
  61.                 } else {
  62.                     echo "flex-col";
  63.                 }
  64.                 echo " ";
  65.                 if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse6)) {
  66.                     echo "border-b";
  67.                 }
  68.                 echo " pb-8\">
  69.                         ";
  70.                 // line 7
  71.                 if (twig_get_attribute($this->env$this->source$context["testimonial"], "image", [], "any"falsefalsefalse7)) {
  72.                     // line 8
  73.                     echo "                            <img class=\"max-w-full mb-3\" src=\"";
  74.                     echo twig_escape_filter($this->env$this->extensions['App\Twig\TwigExtension']->{closure:App\Twig\TwigExtension::getFunctions():45}(("/" twig_get_attribute($this->env$this->source$context["testimonial"], "getFullImagePath", [], "any"falsefalsefalse8)), "cropResize"10241024), "html"nulltrue);
  75.                     echo "\" alt=\"";
  76.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["testimonial"], "clientName", [], "any"falsefalsefalse8), "html"nulltrue);
  77.                     echo "\" loading=\"lazy\" />
  78.                         ";
  79.                 }
  80.                 // line 10
  81.                 echo "                        <div class=\"flex flex-col\">
  82.                             <p class=\"text-lg font-light mb-4\">";
  83.                 // line 11
  84.                 echo twig_nl2br(twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["testimonial"], "content", [], "any"falsefalsefalse11), "html"nulltrue));
  85.                 echo "</p>
  86.                             <p class=\"text-sm font-bold mb-0 text-secondary\">";
  87.                 // line 12
  88.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["testimonial"], "attestant", [], "any"falsefalsefalse12), "html"nulltrue);
  89.                 echo "</p>
  90.                             <p class=\"text-sm text-secondary\">";
  91.                 // line 13
  92.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["testimonial"], "jobTitle", [], "any"falsefalsefalse13), "html"nulltrue);
  93.                 echo "</p>
  94.                         </div>
  95.                     </div>
  96.                 ";
  97.                 ++$context['loop']['index0'];
  98.                 ++$context['loop']['index'];
  99.                 $context['loop']['first'] = false;
  100.                 if (isset($context['loop']['length'])) {
  101.                     --$context['loop']['revindex0'];
  102.                     --$context['loop']['revindex'];
  103.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  104.                 }
  105.             }
  106.             $_parent $context['_parent'];
  107.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['testimonial'], $context['_parent'], $context['loop']);
  108.             $context array_intersect_key($context$_parent) + $_parent;
  109.             // line 17
  110.             echo "            </div>
  111.         </div>
  112.     </section>
  113. ";
  114.         }
  115.         
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117.         
  118.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  119.     }
  120.     /**
  121.      * @codeCoverageIgnore
  122.      */
  123.     public function getTemplateName()
  124.     {
  125.         return "@theme/casestudies/testimonials.html.twig";
  126.     }
  127.     /**
  128.      * @codeCoverageIgnore
  129.      */
  130.     public function isTraitable()
  131.     {
  132.         return false;
  133.     }
  134.     /**
  135.      * @codeCoverageIgnore
  136.      */
  137.     public function getDebugInfo()
  138.     {
  139.         return array (  119 => 17,  101 => 13,  97 => 12,  93 => 11,  90 => 10,  82 => 8,  80 => 7,  67 => 6,  50 => 5,  45 => 2,  43 => 1,);
  140.     }
  141.     public function getSourceContext()
  142.     {
  143.         return new Source("{% if testimonials|length > 0 %}
  144.     <section>
  145.         <div class=\"container\">
  146.             <div class=\"grid gap-8\">
  147.                 {% for testimonial in testimonials %}
  148.                     <div class=\"w-full flex {% if testimonial.image %}flex-row{% else %}flex-col{% endif %} {% if not loop.last %}border-b{% endif %} pb-8\">
  149.                         {% if testimonial.image %}
  150.                             <img class=\"max-w-full mb-3\" src=\"{{ imageCache('/'~ testimonial.getFullImagePath, 'cropResize', 1024, 1024) }}\" alt=\"{{ testimonial.clientName }}\" loading=\"lazy\" />
  151.                         {% endif %}
  152.                         <div class=\"flex flex-col\">
  153.                             <p class=\"text-lg font-light mb-4\">{{ testimonial.content|nl2br }}</p>
  154.                             <p class=\"text-sm font-bold mb-0 text-secondary\">{{ testimonial.attestant }}</p>
  155.                             <p class=\"text-sm text-secondary\">{{ testimonial.jobTitle }}</p>
  156.                         </div>
  157.                     </div>
  158.                 {% endfor %}
  159.             </div>
  160.         </div>
  161.     </section>
  162. {% endif %}
  163. ""@theme/casestudies/testimonials.html.twig""/var/www/html/k/kasscaffolding/templates/themes/theme/casestudies/testimonials.html.twig");
  164.     }
  165. }