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/3d/3d95d287f00544cd8473af635be90538.php line 212

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/sectors/list_full.html.twig */
  14. class __TwigTemplate_738f327e03862f14bd86b9c85c7c93de 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/sectors/list_full.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/sectors/list_full.html.twig"));
  33.         // line 1
  34.         echo "<script type=\"application/ld+json\">
  35.     {
  36.         \"@context\": \"https://schema.org\",
  37.         \"@type\": \"LocalBusiness\",
  38.         \"name\": \"";
  39.         // line 5
  40.         echo twig_escape_filter($this->env, (isset($context["sitename"]) || array_key_exists("sitename"$context) ? $context["sitename"] : (function () { throw new RuntimeError('Variable "sitename" does not exist.'5$this->source); })()), "html"nulltrue);
  41.         echo "\",
  42.         \"url\": \"";
  43.         // line 6
  44.         echo twig_escape_filter($this->env, (isset($context["siteurl"]) || array_key_exists("siteurl"$context) ? $context["siteurl"] : (function () { throw new RuntimeError('Variable "siteurl" does not exist.'6$this->source); })()), "html"nulltrue);
  45.         echo "\",
  46.         \"areaServed\": [
  47.             {
  48.             \"@type\": \"Place\",
  49.             \"name\": \"London\"
  50.             },
  51.             {
  52.             \"@type\": \"Place\",
  53.             \"name\": \"Esssex\"
  54.             },
  55.             {
  56.             \"@type\": \"Place\",
  57.             \"name\": \"Kent\"
  58.             },
  59.             {
  60.             \"@type\": \"Place\",
  61.             \"name\": \"Cambridge\"
  62.             },
  63.             {
  64.             \"@type\": \"Place\",
  65.             \"name\": \"Oxford\"
  66.             }
  67.         ],
  68.         \"hasOfferCatalog\": {
  69.             \"@type\": \"OfferCatalog\",
  70.             \"name\": \"Our Scaffolding Services\",
  71.             \"itemListElement\": [
  72.             ";
  73.         // line 33
  74.         $context['_parent'] = $context;
  75.         $context['_seq'] = twig_ensure_traversable((isset($context["sectorChunks"]) || array_key_exists("sectorChunks"$context) ? $context["sectorChunks"] : (function () { throw new RuntimeError('Variable "sectorChunks" does not exist.'33$this->source); })()));
  76.         $context['loop'] = [
  77.           'parent' => $context['_parent'],
  78.           'index0' => 0,
  79.           'index'  => 1,
  80.           'first'  => true,
  81.         ];
  82.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  83.             $length count($context['_seq']);
  84.             $context['loop']['revindex0'] = $length 1;
  85.             $context['loop']['revindex'] = $length;
  86.             $context['loop']['length'] = $length;
  87.             $context['loop']['last'] = === $length;
  88.         }
  89.         foreach ($context['_seq'] as $context["_key"] => $context["sectors"]) {
  90.             // line 34
  91.             echo "            ";
  92.             $context['_parent'] = $context;
  93.             $context['_seq'] = twig_ensure_traversable($context["sectors"]);
  94.             $context['loop'] = [
  95.               'parent' => $context['_parent'],
  96.               'index0' => 0,
  97.               'index'  => 1,
  98.               'first'  => true,
  99.             ];
  100.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  101.                 $length count($context['_seq']);
  102.                 $context['loop']['revindex0'] = $length 1;
  103.                 $context['loop']['revindex'] = $length;
  104.                 $context['loop']['length'] = $length;
  105.                 $context['loop']['last'] = === $length;
  106.             }
  107.             foreach ($context['_seq'] as $context["_key"] => $context["sector"]) {
  108.                 // line 35
  109.                 echo "                {
  110.                     \"@type\": \"Offer\",
  111.                     \"itemOffered\": {
  112.                     \"@type\": \"Service\",
  113.                     \"name\": \"";
  114.                 // line 39
  115.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["sector"], "title", [], "any"falsefalsefalse39), "html"nulltrue);
  116.                 echo "\",
  117.                     \"description\": \"";
  118.                 // line 40
  119.                 echo twig_escape_filter($this->envtwig_striptags(twig_get_attribute($this->env$this->source$context["sector"], "kicker", [], "any"falsefalsefalse40)), "html"nulltrue);
  120.                 echo "\"
  121.                     }
  122.                 }";
  123.                 // line 42
  124.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse42) == false)) {
  125.                     echo ",";
  126.                 }
  127.                 // line 43
  128.                 echo "            ";
  129.                 ++$context['loop']['index0'];
  130.                 ++$context['loop']['index'];
  131.                 $context['loop']['first'] = false;
  132.                 if (isset($context['loop']['length'])) {
  133.                     --$context['loop']['revindex0'];
  134.                     --$context['loop']['revindex'];
  135.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  136.                 }
  137.             }
  138.             $_parent $context['_parent'];
  139.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sector'], $context['_parent'], $context['loop']);
  140.             $context array_intersect_key($context$_parent) + $_parent;
  141.             // line 44
  142.             echo "            ";
  143.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse44) == false)) {
  144.                 echo ",";
  145.             }
  146.             // line 45
  147.             echo "            ";
  148.             ++$context['loop']['index0'];
  149.             ++$context['loop']['index'];
  150.             $context['loop']['first'] = false;
  151.             if (isset($context['loop']['length'])) {
  152.                 --$context['loop']['revindex0'];
  153.                 --$context['loop']['revindex'];
  154.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  155.             }
  156.         }
  157.         $_parent $context['_parent'];
  158.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sectors'], $context['_parent'], $context['loop']);
  159.         $context array_intersect_key($context$_parent) + $_parent;
  160.         // line 46
  161.         echo "            ]
  162.         }
  163.     }
  164. </script>
  165. <div class=\"container mb-4\">
  166.     ";
  167.         // line 53
  168.         $context['_parent'] = $context;
  169.         $context['_seq'] = twig_ensure_traversable((isset($context["sectorChunks"]) || array_key_exists("sectorChunks"$context) ? $context["sectorChunks"] : (function () { throw new RuntimeError('Variable "sectorChunks" does not exist.'53$this->source); })()));
  170.         foreach ($context['_seq'] as $context["_key"] => $context["sectors"]) {
  171.             // line 54
  172.             echo "    <div class=\"sector-grid mb-8\">
  173.         ";
  174.             // line 55
  175.             $context['_parent'] = $context;
  176.             $context['_seq'] = twig_ensure_traversable($context["sectors"]);
  177.             $context['loop'] = [
  178.               'parent' => $context['_parent'],
  179.               'index0' => 0,
  180.               'index'  => 1,
  181.               'first'  => true,
  182.             ];
  183.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  184.                 $length count($context['_seq']);
  185.                 $context['loop']['revindex0'] = $length 1;
  186.                 $context['loop']['revindex'] = $length;
  187.                 $context['loop']['length'] = $length;
  188.                 $context['loop']['last'] = === $length;
  189.             }
  190.             foreach ($context['_seq'] as $context["_key"] => $context["sector"]) {
  191.                 // line 56
  192.                 echo "            <a class=\"sector-grid--item ";
  193.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse56) || (== twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse56) % 3))) {
  194.                     echo "before";
  195.                 } elseif ((== twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse56) % 3)) {
  196.                     echo "after";
  197.                 } else {
  198.                     echo "center";
  199.                 }
  200.                 echo "\" style=\"background-image:url('";
  201.                 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["sector"], "getFullImagePath", [], "any"falsefalsefalse56)), "zoomCrop"1040640), "html"nulltrue);
  202.                 echo "');\" href=\"";
  203.                 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.'56$this->source); })()), "request", [], "any"falsefalsefalse56), twig_get_attribute($this->env$this->source$context["sector"], "linkedPageId", [], "any"falsefalsefalse56), ["sector_slug" => twig_get_attribute($this->env$this->source$context["sector"], "slug", [], "any"falsefalsefalse56)]), "html"nulltrue);
  204.                 echo "\">
  205.                 <img class=\"max-w-full h-auto md:hidden\" src=\"";
  206.                 // line 57
  207.                 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["sector"], "getFullImagePath", [], "any"falsefalsefalse57)), "zoomCrop"1040640), "html"nulltrue);
  208.                 echo "\" alt=\"";
  209.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["sector"], "title", [], "any"falsefalsefalse57), "html"nulltrue);
  210.                 echo "\">
  211.                 <div class=\"sector-grid--info text-sm md:text-base\">
  212.                     ";
  213.                 // line 59
  214.                 echo twig_get_attribute($this->env$this->source$context["sector"], "icon", [], "any"falsefalsefalse59);
  215.                 echo "
  216.                     <h3>";
  217.                 // line 60
  218.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["sector"], "title", [], "any"falsefalsefalse60), "html"nulltrue);
  219.                 echo "</h3>
  220.                     ";
  221.                 // line 61
  222.                 echo twig_get_attribute($this->env$this->source$context["sector"], "kicker", [], "any"falsefalsefalse61);
  223.                 echo "
  224.                     <span>Read More</span>
  225.                 </div>
  226.             </a>
  227.         ";
  228.                 ++$context['loop']['index0'];
  229.                 ++$context['loop']['index'];
  230.                 $context['loop']['first'] = false;
  231.                 if (isset($context['loop']['length'])) {
  232.                     --$context['loop']['revindex0'];
  233.                     --$context['loop']['revindex'];
  234.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  235.                 }
  236.             }
  237.             $_parent $context['_parent'];
  238.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sector'], $context['_parent'], $context['loop']);
  239.             $context array_intersect_key($context$_parent) + $_parent;
  240.             // line 66
  241.             echo "    </div>
  242.     ";
  243.         }
  244.         $_parent $context['_parent'];
  245.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sectors'], $context['_parent'], $context['loop']);
  246.         $context array_intersect_key($context$_parent) + $_parent;
  247.         // line 68
  248.         echo "</div>
  249. ";
  250.         
  251.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  252.         
  253.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  254.     }
  255.     /**
  256.      * @codeCoverageIgnore
  257.      */
  258.     public function getTemplateName()
  259.     {
  260.         return "@theme/sectors/list_full.html.twig";
  261.     }
  262.     /**
  263.      * @codeCoverageIgnore
  264.      */
  265.     public function isTraitable()
  266.     {
  267.         return false;
  268.     }
  269.     /**
  270.      * @codeCoverageIgnore
  271.      */
  272.     public function getDebugInfo()
  273.     {
  274.         return array (  259 => 68,  252 => 66,  233 => 61,  229 => 60,  225 => 59,  218 => 57,  203 => 56,  186 => 55,  183 => 54,  179 => 53,  170 => 46,  156 => 45,  151 => 44,  137 => 43,  133 => 42,  128 => 40,  124 => 39,  118 => 35,  100 => 34,  83 => 33,  53 => 6,  49 => 5,  43 => 1,);
  275.     }
  276.     public function getSourceContext()
  277.     {
  278.         return new Source("<script type=\"application/ld+json\">
  279.     {
  280.         \"@context\": \"https://schema.org\",
  281.         \"@type\": \"LocalBusiness\",
  282.         \"name\": \"{{ sitename }}\",
  283.         \"url\": \"{{ siteurl }}\",
  284.         \"areaServed\": [
  285.             {
  286.             \"@type\": \"Place\",
  287.             \"name\": \"London\"
  288.             },
  289.             {
  290.             \"@type\": \"Place\",
  291.             \"name\": \"Esssex\"
  292.             },
  293.             {
  294.             \"@type\": \"Place\",
  295.             \"name\": \"Kent\"
  296.             },
  297.             {
  298.             \"@type\": \"Place\",
  299.             \"name\": \"Cambridge\"
  300.             },
  301.             {
  302.             \"@type\": \"Place\",
  303.             \"name\": \"Oxford\"
  304.             }
  305.         ],
  306.         \"hasOfferCatalog\": {
  307.             \"@type\": \"OfferCatalog\",
  308.             \"name\": \"Our Scaffolding Services\",
  309.             \"itemListElement\": [
  310.             {% for sectors in sectorChunks %}
  311.             {% for sector in sectors %}
  312.                 {
  313.                     \"@type\": \"Offer\",
  314.                     \"itemOffered\": {
  315.                     \"@type\": \"Service\",
  316.                     \"name\": \"{{ sector.title }}\",
  317.                     \"description\": \"{{ sector.kicker|raw|striptags }}\"
  318.                     }
  319.                 }{% if loop.last == false %},{% endif %}
  320.             {% endfor %}
  321.             {% if loop.last == false %},{% endif %}
  322.             {% endfor %}
  323.             ]
  324.         }
  325.     }
  326. </script>
  327. <div class=\"container mb-4\">
  328.     {% for sectors in sectorChunks %}
  329.     <div class=\"sector-grid mb-8\">
  330.         {% for sector in sectors %}
  331.             <a class=\"sector-grid--item {% if loop.first or loop.index0 is divisible by(3) %}before{% elseif loop.index is divisible by(3) %}after{% else %}center{% endif %}\" style=\"background-image:url('{{ imageCache('/'~ sector.getFullImagePath, 'zoomCrop', 1040, 640) }}');\" href=\"{{ generatePath(app.request, sector.linkedPageId, {sector_slug: sector.slug}) }}\">
  332.                 <img class=\"max-w-full h-auto md:hidden\" src=\"{{ imageCache('/'~ sector.getFullImagePath, 'zoomCrop', 1040, 640) }}\" alt=\"{{ sector.title }}\">
  333.                 <div class=\"sector-grid--info text-sm md:text-base\">
  334.                     {{ sector.icon|raw }}
  335.                     <h3>{{ sector.title }}</h3>
  336.                     {{ sector.kicker|raw }}
  337.                     <span>Read More</span>
  338.                 </div>
  339.             </a>
  340.         {% endfor %}
  341.     </div>
  342.     {% endfor %}
  343. </div>
  344. ""@theme/sectors/list_full.html.twig""/var/www/html/k/kasscaffolding/templates/themes/theme/sectors/list_full.html.twig");
  345.     }
  346. }