<?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/cmspage-standard.html.twig */
class __TwigTemplate_4fe3846dcc3ea54bde1053345edd98a5 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'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/cmspage-standard.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/cmspage-standard.html.twig"));
$this->parent = $this->loadTemplate("@theme/base.html.twig", "@theme/templates/cmspage-standard.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_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.', 2, $this->source); })()), "metatitle", [], "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_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.', 3, $this->source); })()), "metadescription", [], "any", false, false, false, 3)), 0, 160), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
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 6
echo "
<div class=\"banner-block pb-6 lazyBackgroundImage\" data-mobile=\"";
// line 7
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.', 7, $this->source); })()), "image", [], "any", false, false, false, 7)), "zoomCrop", 900, 405), "html", null, true);
echo "\" data-desktop=\"";
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.', 7, $this->source); })()), "image", [], "any", false, false, false, 7)), "zoomCrop", 3200, 1440), "html", null, true);
echo "\">
<div class=\"container h-full\">
<div class=\"flex items-end h-full\">
<h1>";
// line 10
echo twig_escape_filter($this->env, $this->env->getFunction('replaceIfComponentDataExists')->getCallable()((isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 10, $this->source); })()), "title", 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.', 10, $this->source); })()), "title", [], "any", false, false, false, 10)), "html", null, true);
echo "</h1>
</div>
</div>
</div>
<section class=\"page-content pt-12\">
<div class=\"container\">
";
// line 17
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.', 17, $this->source); })()));
echo "
";
// line 19
if (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.', 19, $this->source); })()), "content", [], "any", false, false, false, 19)) {
// line 20
echo " <div class=\"row cms-area\">
<div class=\"col-12 mb-12\">
";
// line 22
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.', 22, $this->source); })()), "content");
echo "
</div>
</div>
";
}
// line 26
echo "
";
// line 27
echo $this->env->getFunction('renderComponents')->getCallable()("After Content", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 27, $this->source); })()));
echo "
</div>
</section>
";
// line 31
echo $this->extensions['App\Twig\TwigExtension']->renderHtmlBlock($this->env, "CTA", (isset($context["pageHtmlBlocks"]) || array_key_exists("pageHtmlBlocks", $context) ? $context["pageHtmlBlocks"] : (function () { throw new RuntimeError('Variable "pageHtmlBlocks" does not exist.', 31, $this->source); })()));
echo "
";
// line 33
if (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.', 33, $this->source); })()), "content2", [], "any", false, false, false, 33)) {
// line 34
echo " <section class=\"page-content pb-12\">
<div class=\"container\">
<div class=\"row cms-area\">
";
// line 37
if (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.', 37, $this->source); })()), "image2", [], "any", false, false, false, 37)) {
// line 38
echo " <div class=\"md:col-4 sm:col-6 col-12\">
<img class=\"max-w-full h-auto\" src=\"";
// line 39
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.', 39, $this->source); })()), "image2", [], "any", false, false, false, 39)), "zoomCrop", 800, 600), "html", null, true);
echo "\" 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.', 39, $this->source); })()), "title", [], "any", false, false, false, 39), "html", null, true);
echo "\" loading=\"lazy\">
</div>
";
}
// line 42
echo " <div class=\"";
if (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.', 42, $this->source); })()), "image2", [], "any", false, false, false, 42)) {
echo "md:col-8 sm:col-6 col-12";
} else {
echo "col-12";
}
echo "\">
";
// line 43
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.', 43, $this->source); })()), "content2");
echo "
</div>
</div>
</div>
</section>
";
}
// line 49
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 52
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/cmspage-standard.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 212 => 52, 201 => 49, 192 => 43, 183 => 42, 175 => 39, 172 => 38, 170 => 37, 165 => 34, 163 => 33, 158 => 31, 151 => 27, 148 => 26, 141 => 22, 137 => 20, 135 => 19, 130 => 17, 120 => 10, 112 => 7, 109 => 6, 99 => 5, 80 => 3, 61 => 2, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@theme/base.html.twig' %}
{% block metatitle %}{{page.metatitle}}{% endblock %}
{% block metadescription %}{{page.metadescription|striptags|slice(0, 160)}}{% endblock %}
{% block body %}
<div class=\"banner-block pb-6 lazyBackgroundImage\" data-mobile=\"{{ imageCache('/userfiles/images/page/' ~ page.image, 'zoomCrop', 900, 405) }}\" data-desktop=\"{{ imageCache('/userfiles/images/page/' ~ page.image, 'zoomCrop', 3200, 1440) }}\">
<div class=\"container h-full\">
<div class=\"flex items-end h-full\">
<h1>{{ replaceIfComponentDataExists(pageComponents, \"title\", page.title) }}</h1>
</div>
</div>
</div>
<section class=\"page-content pt-12\">
<div class=\"container\">
{{ renderComponents('Before Content', pageComponents)|raw }}
{% if page.content %}
<div class=\"row cms-area\">
<div class=\"col-12 mb-12\">
{{ allowInlineEditor(page, 'content')|raw }}
</div>
</div>
{% endif %}
{{ renderComponents('After Content', pageComponents)|raw }}
</div>
</section>
{{ renderHtmlBlock('CTA', pageHtmlBlocks)|raw }}
{% if page.content2 %}
<section class=\"page-content pb-12\">
<div class=\"container\">
<div class=\"row cms-area\">
{% if page.image2 %}
<div class=\"md:col-4 sm:col-6 col-12\">
<img class=\"max-w-full h-auto\" src=\"{{ imageCache('/userfiles/images/page/' ~ page.image2, 'zoomCrop', 800, 600) }}\" alt=\"{{ page.title }}\" loading=\"lazy\">
</div>
{% endif %}
<div class=\"{% if page.image2 %}md:col-8 sm:col-6 col-12{% else %}col-12{% endif %}\">
{{ allowInlineEditor(page, 'content2')|raw }}
</div>
</div>
</div>
</section>
{% endif %}
{% endblock %}
{% block stylesheets %}
{% endblock %}
", "@theme/templates/cmspage-standard.html.twig", "/var/www/html/s/stablescaffolding/templates/themes/theme/templates/cmspage-standard.html.twig");
}
}