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/a9/a9fe629052b8ed13ceb3408b92708f1a.php line 56

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/casestudies.html.twig */
  14. class __TwigTemplate_fc7a3d0590fe87bced3f41fbc470757e 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/casestudies.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/casestudies.html.twig"));
  33.         // line 1
  34.         echo "
  35. <div class=\"container\">
  36.     <div class=\"row\">
  37.         ";
  38.         // line 4
  39.         $context['_parent'] = $context;
  40.         $context['_seq'] = twig_ensure_traversable((isset($context["studies"]) || array_key_exists("studies"$context) ? $context["studies"] : (function () { throw new RuntimeError('Variable "studies" does not exist.'4$this->source); })()));
  41.         $context['_iterated'] = false;
  42.         foreach ($context['_seq'] as $context["_key"] => $context["study"]) {
  43.             // line 5
  44.             echo "            <div class=\"md:col-6\">
  45.                 <a class=\"block mb-12 img-hover\" href=\"";
  46.             // line 6
  47.             echo twig_escape_filter($this->env$this->extensions['App\Twig\TwigExtension']->{closure:App\Twig\TwigExtension::getFunctions():44}(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.'6$this->source); })()), "request", [], "any"falsefalsefalse6), twig_get_attribute($this->env$this->source$context["study"], "linkedPageId", [], "any"falsefalsefalse6), ["caseStudy_slug" => twig_get_attribute($this->env$this->source$context["study"], "slug", [], "any"falsefalsefalse6)]), "html"nulltrue);
  48.             echo "\">
  49.                     <div class=\"article-img\">
  50.                         <img class=\"max-w-full h-auto mb-8\" src=\"";
  51.             // line 8
  52.             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["study"], "getFullImage5Path", [], "any"falsefalsefalse8)), "zoomCrop"1040720), "html"nulltrue);
  53.             echo "\" width=\"670\" height=\"464\" alt=\"";
  54.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["study"], "clientName", [], "any"falsefalsefalse8), "html"nulltrue);
  55.             echo "\">
  56.                     </div>
  57.                     <div class=\"flex justify-between items-stretch\">
  58.                         ";
  59.             // line 11
  60.             if (twig_get_attribute($this->env$this->source$context["study"], "image", [], "any"falsefalsefalse11)) {
  61.                 // line 12
  62.                 echo "                            <div class=\"w-1/2 flex items-center\">
  63.                                 <img class=\"h-auto max-h-[60px] w-auto max-w-full\" src=\"";
  64.                 // line 13
  65.                 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["study"], "getFullImagePath", [], "any"falsefalsefalse13)), "cropResize"200200), "html"nulltrue);
  66.                 echo "\" height=\"100\" width=\"100\" alt=\"";
  67.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["study"], "clientName", [], "any"falsefalsefalse13), "html"nulltrue);
  68.                 echo "\" loading=\"lazy\" />
  69.                             </div>
  70.                         ";
  71.             }
  72.             // line 16
  73.             echo "                        <div class=\"";
  74.             if (twig_get_attribute($this->env$this->source$context["study"], "image", [], "any"falsefalsefalse16)) {
  75.                 echo "w-1/2 border-l border-dark pl-4 ";
  76.             } else {
  77.                 echo "w-full";
  78.             }
  79.             echo " flex flex-col justify-center\">
  80.                             <p class=\"text-sm mb-0 text-secondary\"><strong>Project</strong></p>
  81.                             <h3 class=\"capitalize text-dark mt-0 mb-0\">";
  82.             // line 18
  83.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["study"], "projectName", [], "any"falsefalsefalse18), "html"nulltrue);
  84.             echo "</h3>
  85.                             ";
  86.             // line 19
  87.             if (twig_get_attribute($this->env$this->source$context["study"], "createdAt", [], "any"falsefalsefalse19)) {
  88.                 // line 20
  89.                 echo "                                <p class=\"text-sm text-dark mb-0\">";
  90.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["study"], "createdAt", [], "any"falsefalsefalse20), "d F Y"), "html"nulltrue);
  91.                 echo "</p>
  92.                             ";
  93.             }
  94.             // line 22
  95.             echo "                        </div>
  96.                     </div>
  97.                 </a>
  98.             </div>
  99.         ";
  100.             $context['_iterated'] = true;
  101.         }
  102.         if (!$context['_iterated']) {
  103.             // line 27
  104.             echo "            <div class=\"col-12\">
  105.                 <p>No case studies found</p>
  106.             </div>
  107.         ";
  108.         }
  109.         $_parent $context['_parent'];
  110.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['study'], $context['_parent'], $context['loop']);
  111.         $context array_intersect_key($context$_parent) + $_parent;
  112.         // line 31
  113.         echo "    </div>
  114. </div>
  115. ";
  116.         // line 34
  117.         echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["studies"]) || array_key_exists("studies"$context) ? $context["studies"] : (function () { throw new RuntimeError('Variable "studies" does not exist.'34$this->source); })()));
  118.         echo "
  119. ";
  120.         
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  122.         
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  124.     }
  125.     /**
  126.      * @codeCoverageIgnore
  127.      */
  128.     public function getTemplateName()
  129.     {
  130.         return "@theme/casestudies/casestudies.html.twig";
  131.     }
  132.     /**
  133.      * @codeCoverageIgnore
  134.      */
  135.     public function isTraitable()
  136.     {
  137.         return false;
  138.     }
  139.     /**
  140.      * @codeCoverageIgnore
  141.      */
  142.     public function getDebugInfo()
  143.     {
  144.         return array (  127 => 34,  122 => 31,  113 => 27,  104 => 22,  98 => 20,  96 => 19,  92 => 18,  82 => 16,  74 => 13,  71 => 12,  69 => 11,  61 => 8,  56 => 6,  53 => 5,  48 => 4,  43 => 1,);
  145.     }
  146.     public function getSourceContext()
  147.     {
  148.         return new Source("
  149. <div class=\"container\">
  150.     <div class=\"row\">
  151.         {% for study in studies %}
  152.             <div class=\"md:col-6\">
  153.                 <a class=\"block mb-12 img-hover\" href=\"{{ generatePath(app.request, study.linkedPageId, { 'caseStudy_slug': study.slug }) }}\">
  154.                     <div class=\"article-img\">
  155.                         <img class=\"max-w-full h-auto mb-8\" src=\"{{ imageCache('/' ~ study.getFullImage5Path, 'zoomCrop', 1040, 720) }}\" width=\"670\" height=\"464\" alt=\"{{ study.clientName }}\">
  156.                     </div>
  157.                     <div class=\"flex justify-between items-stretch\">
  158.                         {% if study.image %}
  159.                             <div class=\"w-1/2 flex items-center\">
  160.                                 <img class=\"h-auto max-h-[60px] w-auto max-w-full\" src=\"{{ imageCache('/'~ study.getFullImagePath, \"cropResize\", 200, 200) }}\" height=\"100\" width=\"100\" alt=\"{{ study.clientName }}\" loading=\"lazy\" />
  161.                             </div>
  162.                         {% endif %}
  163.                         <div class=\"{% if study.image %}w-1/2 border-l border-dark pl-4 {% else %}w-full{% endif %} flex flex-col justify-center\">
  164.                             <p class=\"text-sm mb-0 text-secondary\"><strong>Project</strong></p>
  165.                             <h3 class=\"capitalize text-dark mt-0 mb-0\">{{ study.projectName }}</h3>
  166.                             {% if study.createdAt %}
  167.                                 <p class=\"text-sm text-dark mb-0\">{{ study.createdAt|date('d F Y') }}</p>
  168.                             {% endif %}
  169.                         </div>
  170.                     </div>
  171.                 </a>
  172.             </div>
  173.         {% else %}
  174.             <div class=\"col-12\">
  175.                 <p>No case studies found</p>
  176.             </div>
  177.         {% endfor %}
  178.     </div>
  179. </div>
  180. {{ knp_pagination_render(studies) }}
  181. ""@theme/casestudies/casestudies.html.twig""/var/www/html/k/kasscaffolding/templates/themes/theme/casestudies/casestudies.html.twig");
  182.     }
  183. }