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/e5/e55b44b0afe3e3f1daef79a6ae14e694.php line 71

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/image-text-grid/grids.html.twig */
  14. class __TwigTemplate_492cf881186bbfb13780b5c4218e8f11 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/image-text-grid/grids.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/image-text-grid/grids.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"container mt-12 mb-12 text-xl font-light\">
  35.     ";
  36.         // line 2
  37.         $context['_parent'] = $context;
  38.         $context['_seq'] = twig_ensure_traversable((isset($context["grids"]) || array_key_exists("grids"$context) ? $context["grids"] : (function () { throw new RuntimeError('Variable "grids" does not exist.'2$this->source); })()));
  39.         $context['loop'] = [
  40.           'parent' => $context['_parent'],
  41.           'index0' => 0,
  42.           'index'  => 1,
  43.           'first'  => true,
  44.         ];
  45.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  46.             $length count($context['_seq']);
  47.             $context['loop']['revindex0'] = $length 1;
  48.             $context['loop']['revindex'] = $length;
  49.             $context['loop']['length'] = $length;
  50.             $context['loop']['last'] = === $length;
  51.         }
  52.         foreach ($context['_seq'] as $context["_key"] => $context["grid"]) {
  53.             // line 3
  54.             echo "        <div class=\"md:flex\">
  55.             ";
  56.             // line 4
  57.             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse4) % != 0)) {
  58.                 // line 5
  59.                 echo "                <div class=\"md:w-1/2\">
  60.                     <img src=\"";
  61.                 // line 6
  62.                 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["grid"], "getFullImagePath", [], "any"falsefalsefalse6)), "cropResize"1200800), "html"nulltrue);
  63.                 echo "\" width=\"685\" height=\"460\" alt=\"";
  64.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["grid"], "title", [], "any"falsefalsefalse6), "html"nulltrue);
  65.                 echo "\" loading=\"lazy\" />
  66.                 </div>
  67.             ";
  68.             }
  69.             // line 9
  70.             echo "
  71.             ";
  72.             // line 10
  73.             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse10) % == 0)) {
  74.                 // line 11
  75.                 echo "                <div class=\"md:hidden md:w-1/2\">
  76.                     <img src=\"";
  77.                 // line 12
  78.                 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["grid"], "getFullImagePath", [], "any"falsefalsefalse12)), "cropResize"1200800), "html"nulltrue);
  79.                 echo "\" width=\"685\" height=\"440\" alt=\"";
  80.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["grid"], "title", [], "any"falsefalsefalse12), "html"nulltrue);
  81.                 echo "\" loading=\"lazy\" />
  82.                 </div>
  83.             ";
  84.             }
  85.             // line 15
  86.             echo "
  87.             <div class=\"md:w-1/2 flex flex-col justify-center cms-area py-12 ";
  88.             // line 16
  89.             echo (((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse16) % != 0)) ? ("md:pl-12") : (""));
  90.             echo " ";
  91.             echo (((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse16) % == 0)) ? ("md:pr-12") : (""));
  92.             echo "\">
  93.                 <p><strong>";
  94.             // line 17
  95.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["grid"], "subtitle", [], "any"falsefalsefalse17), "html"nulltrue);
  96.             echo "</strong></p>
  97.                 <h2>";
  98.             // line 18
  99.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["grid"], "title", [], "any"falsefalsefalse18), "html"nulltrue);
  100.             echo "</h2>
  101.                 <div>";
  102.             // line 19
  103.             echo twig_get_attribute($this->env$this->source$context["grid"], "content", [], "any"falsefalsefalse19);
  104.             echo "</div>
  105.                 ";
  106.             // line 21
  107.             if (((twig_get_attribute($this->env$this->source$context["grid"], "image2", [], "any"falsefalsefalse21) || twig_get_attribute($this->env$this->source$context["grid"], "image3", [], "any"falsefalsefalse21)) || twig_get_attribute($this->env$this->source$context["grid"], "image4", [], "any"falsefalsefalse21))) {
  108.                 // line 22
  109.                 echo "                <div class=\"flex space-x-2 mt-4\">
  110.                     ";
  111.                 // line 23
  112.                 if (twig_get_attribute($this->env$this->source$context["grid"], "image2", [], "any"falsefalsefalse23)) {
  113.                     // line 24
  114.                     echo "                        <img src=\"";
  115.                     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["grid"], "getFullImage2Path", [], "any"falsefalsefalse24)), "scaleResize"240160), "html"nulltrue);
  116.                     echo "\" height=\"80\" width=\"120\" alt=\"";
  117.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["grid"], "title", [], "any"falsefalsefalse24), "html"nulltrue);
  118.                     echo "\" loading=\"lazy\" />
  119.                     ";
  120.                 }
  121.                 // line 26
  122.                 echo "
  123.                     ";
  124.                 // line 27
  125.                 if (twig_get_attribute($this->env$this->source$context["grid"], "image3", [], "any"falsefalsefalse27)) {
  126.                     // line 28
  127.                     echo "                        <img src=\"";
  128.                     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["grid"], "getFullImage3Path", [], "any"falsefalsefalse28)), "scaleResize"240160), "html"nulltrue);
  129.                     echo "\" height=\"80\" width=\"120\" alt=\"";
  130.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["grid"], "title", [], "any"falsefalsefalse28), "html"nulltrue);
  131.                     echo "\" loading=\"lazy\" />
  132.                     ";
  133.                 }
  134.                 // line 30
  135.                 echo "
  136.                     ";
  137.                 // line 31
  138.                 if (twig_get_attribute($this->env$this->source$context["grid"], "image4", [], "any"falsefalsefalse31)) {
  139.                     // line 32
  140.                     echo "                        <img src=\"";
  141.                     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["grid"], "getFullImage4Path", [], "any"falsefalsefalse32)), "scaleResize"240160), "html"nulltrue);
  142.                     echo "\" height=\"80\" width=\"120\" alt=\"";
  143.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["grid"], "title", [], "any"falsefalsefalse32), "html"nulltrue);
  144.                     echo "\" loading=\"lazy\" />
  145.                     ";
  146.                 }
  147.                 // line 34
  148.                 echo "                </div>
  149.                 ";
  150.             }
  151.             // line 36
  152.             echo "            </div>
  153.             ";
  154.             // line 38
  155.             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse38) % == 0)) {
  156.                 // line 39
  157.                 echo "                <div class=\"hidden md:block md:w-1/2\">
  158.                     <img src=\"";
  159.                 // line 40
  160.                 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["grid"], "getFullImagePath", [], "any"falsefalsefalse40)), "cropResize"1200800), "html"nulltrue);
  161.                 echo "\" width=\"685\" height=\"440\" alt=\"";
  162.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["grid"], "title", [], "any"falsefalsefalse40), "html"nulltrue);
  163.                 echo "\" loading=\"lazy\" />
  164.                 </div>
  165.             ";
  166.             }
  167.             // line 43
  168.             echo "        </div>
  169.     ";
  170.             ++$context['loop']['index0'];
  171.             ++$context['loop']['index'];
  172.             $context['loop']['first'] = false;
  173.             if (isset($context['loop']['length'])) {
  174.                 --$context['loop']['revindex0'];
  175.                 --$context['loop']['revindex'];
  176.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  177.             }
  178.         }
  179.         $_parent $context['_parent'];
  180.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['grid'], $context['_parent'], $context['loop']);
  181.         $context array_intersect_key($context$_parent) + $_parent;
  182.         // line 45
  183.         echo "</div>
  184. ";
  185.         
  186.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  187.         
  188.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  189.     }
  190.     /**
  191.      * @codeCoverageIgnore
  192.      */
  193.     public function getTemplateName()
  194.     {
  195.         return "@theme/image-text-grid/grids.html.twig";
  196.     }
  197.     /**
  198.      * @codeCoverageIgnore
  199.      */
  200.     public function isTraitable()
  201.     {
  202.         return false;
  203.     }
  204.     /**
  205.      * @codeCoverageIgnore
  206.      */
  207.     public function getDebugInfo()
  208.     {
  209.         return array (  194 => 45,  179 => 43,  171 => 40,  168 => 39,  166 => 38,  162 => 36,  158 => 34,  150 => 32,  148 => 31,  145 => 30,  137 => 28,  135 => 27,  132 => 26,  124 => 24,  122 => 23,  119 => 22,  117 => 21,  112 => 19,  108 => 18,  104 => 17,  98 => 16,  95 => 15,  87 => 12,  84 => 11,  82 => 10,  79 => 9,  71 => 6,  68 => 5,  66 => 4,  63 => 3,  46 => 2,  43 => 1,);
  210.     }
  211.     public function getSourceContext()
  212.     {
  213.         return new Source("<div class=\"container mt-12 mb-12 text-xl font-light\">
  214.     {% for grid in grids %}
  215.         <div class=\"md:flex\">
  216.             {% if loop.index is odd %}
  217.                 <div class=\"md:w-1/2\">
  218.                     <img src=\"{{ imageCache('/' ~ grid.getFullImagePath, 'cropResize', 1200, 800) }}\" width=\"685\" height=\"460\" alt=\"{{ grid.title }}\" loading=\"lazy\" />
  219.                 </div>
  220.             {% endif %}
  221.             {% if loop.index is even %}
  222.                 <div class=\"md:hidden md:w-1/2\">
  223.                     <img src=\"{{ imageCache('/' ~ grid.getFullImagePath, 'cropResize', 1200, 800) }}\" width=\"685\" height=\"440\" alt=\"{{ grid.title }}\" loading=\"lazy\" />
  224.                 </div>
  225.             {% endif %}
  226.             <div class=\"md:w-1/2 flex flex-col justify-center cms-area py-12 {{ loop.index is odd ? 'md:pl-12' }} {{ loop.index is even ? 'md:pr-12' }}\">
  227.                 <p><strong>{{ grid.subtitle }}</strong></p>
  228.                 <h2>{{ grid.title }}</h2>
  229.                 <div>{{ grid.content|raw }}</div>
  230.                 {% if grid.image2 or grid.image3 or grid.image4 %}
  231.                 <div class=\"flex space-x-2 mt-4\">
  232.                     {% if grid.image2 %}
  233.                         <img src=\"{{ imageCache('/' ~ grid.getFullImage2Path, 'scaleResize', 240, 160) }}\" height=\"80\" width=\"120\" alt=\"{{ grid.title }}\" loading=\"lazy\" />
  234.                     {% endif %}
  235.                     {% if grid.image3 %}
  236.                         <img src=\"{{ imageCache('/' ~ grid.getFullImage3Path, 'scaleResize', 240, 160) }}\" height=\"80\" width=\"120\" alt=\"{{ grid.title }}\" loading=\"lazy\" />
  237.                     {% endif %}
  238.                     {% if grid.image4 %}
  239.                         <img src=\"{{ imageCache('/' ~ grid.getFullImage4Path, 'scaleResize', 240, 160) }}\" height=\"80\" width=\"120\" alt=\"{{ grid.title }}\" loading=\"lazy\" />
  240.                     {% endif %}
  241.                 </div>
  242.                 {% endif %}
  243.             </div>
  244.             {% if loop.index is even %}
  245.                 <div class=\"hidden md:block md:w-1/2\">
  246.                     <img src=\"{{ imageCache('/' ~ grid.getFullImagePath, 'cropResize', 1200, 800) }}\" width=\"685\" height=\"440\" alt=\"{{ grid.title }}\" loading=\"lazy\" />
  247.                 </div>
  248.             {% endif %}
  249.         </div>
  250.     {% endfor %}
  251. </div>
  252. ""@theme/image-text-grid/grids.html.twig""/var/www/html/k/kasscaffolding/templates/themes/theme/image-text-grid/grids.html.twig");
  253.     }
  254. }