<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* themes/theme/sectors/list_full.html.twig */
class __TwigTemplate_4e6a6b31d02150abee83f81a134e5606 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "themes/theme/sectors/list_full.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "themes/theme/sectors/list_full.html.twig"));
// line 1
yield "<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"LocalBusiness\",
\"name\": \"";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["sitename"]) || array_key_exists("sitename", $context) ? $context["sitename"] : (function () { throw new RuntimeError('Variable "sitename" does not exist.', 5, $this->source); })()), "html", null, true);
yield "\",
\"url\": \"";
// line 6
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["siteurl"]) || array_key_exists("siteurl", $context) ? $context["siteurl"] : (function () { throw new RuntimeError('Variable "siteurl" does not exist.', 6, $this->source); })()), "html", null, true);
yield "\",
\"areaServed\": [
{
\"@type\": \"Place\",
\"name\": \"London\"
},
{
\"@type\": \"Place\",
\"name\": \"Esssex\"
},
{
\"@type\": \"Place\",
\"name\": \"Kent\"
},
{
\"@type\": \"Place\",
\"name\": \"Cambridge\"
},
{
\"@type\": \"Place\",
\"name\": \"Oxford\"
}
],
\"hasOfferCatalog\": {
\"@type\": \"OfferCatalog\",
\"name\": \"Our Scaffolding Services\",
\"itemListElement\": [
";
// line 33
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["sectorChunks"]) || array_key_exists("sectorChunks", $context) ? $context["sectorChunks"] : (function () { throw new RuntimeError('Variable "sectorChunks" does not exist.', 33, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["sectors"]) {
// line 34
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($context["sectors"]);
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["sector"]) {
// line 35
yield " {
\"@type\": \"Offer\",
\"itemOffered\": {
\"@type\": \"Service\",
\"name\": \"";
// line 39
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "title", [], "any", false, false, false, 39), "html", null, true);
yield "\",
\"description\": \"";
// line 40
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags(CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "kicker", [], "any", false, false, false, 40)), "html", null, true);
yield "\"
}
}";
// line 42
if ((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 42) == false)) {
yield ",";
}
// line 43
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['sector'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 44) == false)) {
yield ",";
}
// line 45
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['sectors'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 46
yield " ]
}
}
</script>
<div class=\"container mb-4\">
";
// line 53
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["sectorChunks"]) || array_key_exists("sectorChunks", $context) ? $context["sectorChunks"] : (function () { throw new RuntimeError('Variable "sectorChunks" does not exist.', 53, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["sectors"]) {
// line 54
yield " <div class=\"sector-grid mb-8\">
";
// line 55
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($context["sectors"]);
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["sector"]) {
// line 56
yield " <a class=\"sector-grid--item ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 56) || (0 == CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 56) % 3))) {
yield "before";
} elseif ((0 == CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 56) % 3)) {
yield "after";
} else {
yield "center";
}
yield "\" style=\"background-image:url('";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('imageCache')->getCallable()(("/" . CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "getFullImagePath", [], "any", false, false, false, 56)), "zoomCrop", 1040, 640), "html", null, true);
yield "');\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('generatePath')->getCallable()(CoreExtension::getAttribute($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", false, false, false, 56), CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "linkedPageId", [], "any", false, false, false, 56), ["sector_slug" => CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "slug", [], "any", false, false, false, 56)]), "html", null, true);
yield "\">
<img class=\"max-w-full h-auto md:hidden\" src=\"";
// line 57
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('imageCache')->getCallable()(("/" . CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "getFullImagePath", [], "any", false, false, false, 57)), "zoomCrop", 1040, 640), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "title", [], "any", false, false, false, 57), "html", null, true);
yield "\">
<div class=\"sector-grid--info text-sm md:text-base\">
";
// line 59
yield CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "icon", [], "any", false, false, false, 59);
yield "
<h3>";
// line 60
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "title", [], "any", false, false, false, 60), "html", null, true);
yield "</h3>
";
// line 61
yield CoreExtension::getAttribute($this->env, $this->source, $context["sector"], "kicker", [], "any", false, false, false, 61);
yield "
<span>Read More</span>
</div>
</a>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['sector'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 66
yield " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['sectors'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 68
yield "</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "themes/theme/sectors/list_full.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 264 => 68, 257 => 66, 238 => 61, 234 => 60, 230 => 59, 223 => 57, 208 => 56, 191 => 55, 188 => 54, 184 => 53, 175 => 46, 161 => 45, 156 => 44, 142 => 43, 138 => 42, 133 => 40, 129 => 39, 123 => 35, 105 => 34, 88 => 33, 58 => 6, 54 => 5, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"LocalBusiness\",
\"name\": \"{{ sitename }}\",
\"url\": \"{{ siteurl }}\",
\"areaServed\": [
{
\"@type\": \"Place\",
\"name\": \"London\"
},
{
\"@type\": \"Place\",
\"name\": \"Esssex\"
},
{
\"@type\": \"Place\",
\"name\": \"Kent\"
},
{
\"@type\": \"Place\",
\"name\": \"Cambridge\"
},
{
\"@type\": \"Place\",
\"name\": \"Oxford\"
}
],
\"hasOfferCatalog\": {
\"@type\": \"OfferCatalog\",
\"name\": \"Our Scaffolding Services\",
\"itemListElement\": [
{% for sectors in sectorChunks %}
{% for sector in sectors %}
{
\"@type\": \"Offer\",
\"itemOffered\": {
\"@type\": \"Service\",
\"name\": \"{{ sector.title }}\",
\"description\": \"{{ sector.kicker|raw|striptags }}\"
}
}{% if loop.last == false %},{% endif %}
{% endfor %}
{% if loop.last == false %},{% endif %}
{% endfor %}
]
}
}
</script>
<div class=\"container mb-4\">
{% for sectors in sectorChunks %}
<div class=\"sector-grid mb-8\">
{% for sector in sectors %}
<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}) }}\">
<img class=\"max-w-full h-auto md:hidden\" src=\"{{ imageCache('/'~ sector.getFullImagePath, 'zoomCrop', 1040, 640) }}\" alt=\"{{ sector.title }}\">
<div class=\"sector-grid--info text-sm md:text-base\">
{{ sector.icon|raw }}
<h3>{{ sector.title }}</h3>
{{ sector.kicker|raw }}
<span>Read More</span>
</div>
</a>
{% endfor %}
</div>
{% endfor %}
</div>
", "themes/theme/sectors/list_full.html.twig", "/var/www/html/k/kasscaffolding/templates/themes/theme/sectors/list_full.html.twig");
}
}