<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* @theme/templates/home.html.twig */
class __TwigTemplate_a9f3b983c4ac5574627daf7984ae7e58 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'metatitle' => [$this, 'block_metatitle'],
'metadescription' => [$this, 'block_metadescription'],
'body' => [$this, 'block_body'],
'stylesheets' => [$this, 'block_stylesheets'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@theme/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "@theme/templates/home.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/templates/home.html.twig"));
$this->parent = $this->loadTemplate("@theme/base.html.twig", "@theme/templates/home.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 2, $this->source); })()), "title", [], "any", false, false, false, 2), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 3
public function block_metatitle($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatitle"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatitle"));
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 3, $this->source); })()), "metatitle", [], "any", false, false, false, 3), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 4
public function block_metadescription($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metadescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metadescription"));
echo twig_escape_filter($this->env, twig_slice($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 4, $this->source); })()), "metadescription", [], "any", false, false, false, 4)), 0, 160), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 6
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 7
echo "
<script type=\"application/ld+json\">
{
\"@context\": \"http://schema.org\",
\"@type\": \"ProfessionalService\",
\"name\": \"";
// line 12
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.', 12, $this->source); })()), "html", null, true);
echo "\",
\"url\": \"";
// line 13
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.', 13, $this->source); })()), "html", null, true);
echo "\",
\"image\": \"";
// line 14
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.', 14, $this->source); })()), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('imageCache')->getCallable()($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logo.png"), "cropResize", 260, 88), "html", null, true);
echo "\",
\"description\": \"";
// line 15
echo twig_escape_filter($this->env, twig_slice($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 15, $this->source); })()), "metadescription", [], "any", false, false, false, 15)), 0, 160), "html", null, true);
echo "\",
\"address\": {
\"@type\": \"PostalAddress\",
\"streetAddress\": \"Watch House Lane Industrial Estate\",
\"addressLocality\": \"Doncaster\",
\"addressRegion\": \"South Yorkshire\",
\"postalCode\": \"DN5 9QJ\",
\"addressCountry\": \"GB\"
},
\"telephone\": \"";
// line 24
echo $this->env->getFunction('renderSetting')->getCallable()(2, "content");
echo ", ";
echo $this->env->getFunction('renderSetting')->getCallable()(15, "content");
echo "\",
\"email\": \"";
// line 25
echo $this->env->getFunction('renderSetting')->getCallable()(3, "content");
echo "\",
\"geo\": {
\"@type\": \"GeoCoordinates\",
\"latitude\": \"";
// line 28
echo $this->env->getFunction('renderSetting')->getCallable()(4, "content");
echo "\",
\"longitude\": \"";
// line 29
echo $this->env->getFunction('renderSetting')->getCallable()(5, "content");
echo "\"
},
\"serviceType\": \"Scaffolding\",
\"sameAs\": [
\"https://www.facebook.com/StableScaffLTD/\"
]
}
</script>
";
// line 38
echo $this->env->getFunction('renderComponents')->getCallable()("Page Top", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 38, $this->source); })()));
echo "
";
// line 40
echo $this->env->getFunction('renderComponents')->getCallable()("Before Content", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 40, $this->source); })()));
echo "
<section class=\"welcome-block pt-12 lg:pt-24 pb-36 lg:pb-48\">
<div class=\"container\">
<div class=\"row cms-area\">
<div class=\"col-12\">
<h1>";
// line 46
echo $this->env->getFunction('allowInlineEditor')->getCallable()((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 46, $this->source); })()), "title");
echo "</h1>
</div>
<div class=\"xl:col-4 lg:col-5 md:col-12\">
";
// line 49
echo $this->env->getFunction('allowInlineEditor')->getCallable()((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 49, $this->source); })()), "content");
echo "
<div class=\"mt-auto\">
<a class=\"btnlink btnlink-dark mt-12\" href=\"";
// line 51
echo $this->env->getFunction('renderSetting')->getCallable()(11, "content");
echo "\">";
echo $this->env->getFunction('renderSetting')->getCallable()(11, "displayText");
echo "</a>
</div>
</div>
<div class=\"lg:col-6 lg:offset-1 md:col-12\">
<img id=\"jeff-block\" class=\"max-w-full h-auto\" src=\"";
// line 55
echo twig_escape_filter($this->env, $this->env->getFunction('imageCache')->getCallable()(("/userfiles/images/page/" . twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 55, $this->source); })()), "image", [], "any", false, false, false, 55)), "zoomCrop", 492, 268), "html", null, true);
echo "\" width=\"492\" height=\"268\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 55, $this->source); })()), "title", [], "any", false, false, false, 55), "html", null, true);
echo "\" loading=\"lazy\" />
</div>
</div>
</div>
</section>
<section>
<div class=\"featured-services\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12 pt-28 text-center\">
<h2>Our Scaffolding Services</h2>
</div>
</div>
</div>
</div>
<div class=\"featured-sectors bg-grey\">
<div class=\"container -mt-64 relative z-20\">
";
// line 73
echo $this->env->getFunction('renderComponents')->getCallable()("Home Services", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 73, $this->source); })()));
echo "
<div class=\"border-b border-solid border-primary text-2xl md:text-3xl lg:text-4xl xl:text-5xl text-center font-medium leading-none pb-8 xl:pb-12 px-6 xl:mt-6\">
";
// line 75
echo $this->extensions['App\Twig\TwigExtension']->renderHtmlBlock($this->env, "Home Service Text", (isset($context["pageHtmlBlocks"]) || array_key_exists("pageHtmlBlocks", $context) ? $context["pageHtmlBlocks"] : (function () { throw new RuntimeError('Variable "pageHtmlBlocks" does not exist.', 75, $this->source); })()));
echo "
</div>
</div>
<div class=\"container\">
";
// line 79
echo $this->env->getFunction('renderComponents')->getCallable()("Home Sectors", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 79, $this->source); })()));
echo "
</div>
</div>
</section>
";
// line 84
echo $this->env->getFunction('renderComponents')->getCallable()("Client Slider", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 84, $this->source); })()));
echo "
<section class=\"parallax-divider\"></section>
<section class=\"pb-12\">
<div class=\"container\">
";
// line 90
echo $this->env->getFunction('renderComponents')->getCallable()("Enquiry Form", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 90, $this->source); })()));
echo "
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 96
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@theme/templates/home.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 290 => 96, 275 => 90, 266 => 84, 258 => 79, 251 => 75, 246 => 73, 223 => 55, 214 => 51, 209 => 49, 203 => 46, 194 => 40, 189 => 38, 177 => 29, 173 => 28, 167 => 25, 161 => 24, 149 => 15, 144 => 14, 140 => 13, 136 => 12, 129 => 7, 119 => 6, 100 => 4, 81 => 3, 62 => 2, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@theme/base.html.twig' %}
{% block title %}{{ page.title }}{% endblock %}
{% block metatitle %}{{ page.metatitle }}{% endblock %}
{% block metadescription %}{{ page.metadescription|striptags|slice(0, 160) }}{% endblock %}
{% block body %}
<script type=\"application/ld+json\">
{
\"@context\": \"http://schema.org\",
\"@type\": \"ProfessionalService\",
\"name\": \"{{ sitename }}\",
\"url\": \"{{ siteurl }}\",
\"image\": \"{{ siteurl }}{{ imageCache(asset('build/images/logo.png'), 'cropResize', 260, 88) }}\",
\"description\": \"{{ page.metadescription|striptags|slice(0, 160) }}\",
\"address\": {
\"@type\": \"PostalAddress\",
\"streetAddress\": \"Watch House Lane Industrial Estate\",
\"addressLocality\": \"Doncaster\",
\"addressRegion\": \"South Yorkshire\",
\"postalCode\": \"DN5 9QJ\",
\"addressCountry\": \"GB\"
},
\"telephone\": \"{{ renderSetting(2, 'content') }}, {{ renderSetting(15, 'content') }}\",
\"email\": \"{{ renderSetting(3, 'content') }}\",
\"geo\": {
\"@type\": \"GeoCoordinates\",
\"latitude\": \"{{ renderSetting(4, 'content') }}\",
\"longitude\": \"{{ renderSetting(5, 'content') }}\"
},
\"serviceType\": \"Scaffolding\",
\"sameAs\": [
\"https://www.facebook.com/StableScaffLTD/\"
]
}
</script>
{{ renderComponents('Page Top', pageComponents)|raw }}
{{ renderComponents('Before Content', pageComponents)|raw }}
<section class=\"welcome-block pt-12 lg:pt-24 pb-36 lg:pb-48\">
<div class=\"container\">
<div class=\"row cms-area\">
<div class=\"col-12\">
<h1>{{ allowInlineEditor(page, 'title')|raw }}</h1>
</div>
<div class=\"xl:col-4 lg:col-5 md:col-12\">
{{ allowInlineEditor(page, 'content')|raw }}
<div class=\"mt-auto\">
<a class=\"btnlink btnlink-dark mt-12\" href=\"{{ renderSetting(11, 'content') }}\">{{ renderSetting(11, 'displayText') }}</a>
</div>
</div>
<div class=\"lg:col-6 lg:offset-1 md:col-12\">
<img id=\"jeff-block\" class=\"max-w-full h-auto\" src=\"{{ imageCache('/userfiles/images/page/' ~ page.image, 'zoomCrop', 492, 268) }}\" width=\"492\" height=\"268\" alt=\"{{ page.title }}\" loading=\"lazy\" />
</div>
</div>
</div>
</section>
<section>
<div class=\"featured-services\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12 pt-28 text-center\">
<h2>Our Scaffolding Services</h2>
</div>
</div>
</div>
</div>
<div class=\"featured-sectors bg-grey\">
<div class=\"container -mt-64 relative z-20\">
{{ renderComponents('Home Services', pageComponents)|raw }}
<div class=\"border-b border-solid border-primary text-2xl md:text-3xl lg:text-4xl xl:text-5xl text-center font-medium leading-none pb-8 xl:pb-12 px-6 xl:mt-6\">
{{ renderHtmlBlock('Home Service Text', pageHtmlBlocks)|raw }}
</div>
</div>
<div class=\"container\">
{{ renderComponents('Home Sectors', pageComponents)|raw }}
</div>
</div>
</section>
{{ renderComponents('Client Slider', pageComponents)|raw }}
<section class=\"parallax-divider\"></section>
<section class=\"pb-12\">
<div class=\"container\">
{{ renderComponents('Enquiry Form', pageComponents)|raw }}
</div>
</section>
{% endblock %}
{% block stylesheets %}
{% endblock %}
", "@theme/templates/home.html.twig", "/var/www/html/s/stablescaffolding/templates/themes/theme/templates/home.html.twig");
}
}