<?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-banner.html.twig */
class __TwigTemplate_345ad76623c1d67404202e20e775c556 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-banner.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-banner.html.twig"));
$this->parent = $this->loadTemplate("@theme/base.html.twig", "@theme/templates/cmspage-banner.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 "
";
// line 7
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.', 7, $this->source); })()), "image", [], "any", false, false, false, 7)) {
// line 8
echo " <div class=\"banner-image lazyBackgroundImage\" data-mobile=\"";
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.', 8, $this->source); })()), "image", [], "any", false, false, false, 8)), "zoomCrop", 1566, 822), "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.', 8, $this->source); })()), "image", [], "any", false, false, false, 8)), "zoomCrop", 3200, 1680), "html", null, true);
echo "\"></div>
";
}
// line 10
echo "
<section class=\"page-content";
// line 11
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.', 11, $this->source); })()), "image", [], "any", false, false, false, 11) == null)) {
echo " pt-[148px] md:pt-[163px]";
}
echo "\">
<div class=\"container\">
";
// line 13
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.', 13, $this->source); })()), "kicker", [], "any", false, false, false, 13)) {
// line 14
echo " <h1>";
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.', 14, $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.', 14, $this->source); })()), "title", [], "any", false, false, false, 14)), "html", null, true);
echo "</h1>
<h3>";
// line 15
echo 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); })()), "subtitle", [], "any", false, false, false, 15);
echo "</h3>
";
// line 16
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.', 16, $this->source); })()), "kicker");
echo "
";
}
// line 18
echo "
";
// line 19
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.', 19, $this->source); })()));
echo "
<div class=\"row cms-area\">
<div class=\"col-12 text-center ";
// line 22
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.', 22, $this->source); })()), "content", [], "any", false, false, false, 22)) {
echo "py-12";
} else {
echo " pt-12 pb-6";
}
echo "\">
";
// line 23
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.', 23, $this->source); })()), "kicker", [], "any", false, false, false, 23) == null)) {
// line 24
echo " <h1>";
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.', 24, $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.', 24, $this->source); })()), "title", [], "any", false, false, false, 24)), "html", null, true);
echo "</h1>
<h3 class=\"text-green\">";
// line 25
echo 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.', 25, $this->source); })()), "subtitle", [], "any", false, false, false, 25);
echo "</h3>
";
}
// line 27
echo "
";
// line 28
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.', 28, $this->source); })()), "content", [], "any", false, false, false, 28)) {
// line 29
echo " ";
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.', 29, $this->source); })()), "content");
echo "
";
}
// line 31
echo "
";
// line 32
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.', 32, $this->source); })()), "file", [], "any", false, false, false, 32)) {
// line 33
echo " <video src=\"";
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.', 33, $this->source); })()), "getFileUrl", [], "any", false, false, false, 33), "html", null, true);
echo "\" controls></video>
";
}
// line 35
echo " </div>
</div>
";
// line 38
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.', 38, $this->source); })()));
echo "
";
// line 40
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.', 40, $this->source); })()), "content2", [], "any", false, false, false, 40)) {
// line 41
echo " <div class=\"row cms-area pb-12\">
";
// line 42
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); })()), "image3", [], "any", false, false, false, 42)) {
// line 43
echo " <div class=\"sm:col-6 col-12\">
<img class=\"max-w-full h-auto\" src=\"";
// line 44
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.', 44, $this->source); })()), "image3", [], "any", false, false, false, 44)), "zoomCrop", 1140, 1200), "html", null, true);
echo "\" width=\"670\" height=\"706\" 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.', 44, $this->source); })()), "title", [], "any", false, false, false, 44), "html", null, true);
echo "\" loading=\"lazy\" />
</div>
";
}
// line 47
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.', 47, $this->source); })()), "image3", [], "any", false, false, false, 47)) {
echo "sm:col-6 col-12";
} else {
echo "col-12";
}
echo "\">
";
// line 48
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.', 48, $this->source); })()), "content2");
echo "
</div>
</div>
";
}
// line 52
echo " </div>
";
// line 54
echo $this->extensions['App\Twig\TwigExtension']->renderHtmlBlock($this->env, "Content Block", (isset($context["pageHtmlBlocks"]) || array_key_exists("pageHtmlBlocks", $context) ? $context["pageHtmlBlocks"] : (function () { throw new RuntimeError('Variable "pageHtmlBlocks" does not exist.', 54, $this->source); })()), (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 54, $this->source); })()));
echo "
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 60
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-banner.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 262 => 60, 247 => 54, 243 => 52, 236 => 48, 227 => 47, 219 => 44, 216 => 43, 214 => 42, 211 => 41, 209 => 40, 204 => 38, 199 => 35, 193 => 33, 191 => 32, 188 => 31, 182 => 29, 180 => 28, 177 => 27, 172 => 25, 167 => 24, 165 => 23, 157 => 22, 151 => 19, 148 => 18, 143 => 16, 139 => 15, 134 => 14, 132 => 13, 125 => 11, 122 => 10, 114 => 8, 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 %}
{% if page.image %}
<div class=\"banner-image lazyBackgroundImage\" data-mobile=\"{{ imageCache('/userfiles/images/page/' ~ page.image, 'zoomCrop', 1566, 822) }}\" data-desktop=\"{{ imageCache('/userfiles/images/page/' ~ page.image, 'zoomCrop', 3200, 1680) }}\"></div>
{% endif %}
<section class=\"page-content{% if page.image == null %} pt-[148px] md:pt-[163px]{% endif %}\">
<div class=\"container\">
{% if page.kicker %}
<h1>{{ replaceIfComponentDataExists(pageComponents, \"title\", page.title) }}</h1>
<h3>{{ page.subtitle|raw }}</h3>
{{ allowInlineEditor(page, 'kicker')|raw }}
{% endif %}
{{ renderComponents('Before Content', pageComponents)|raw }}
<div class=\"row cms-area\">
<div class=\"col-12 text-center {% if page.content %}py-12{% else %} pt-12 pb-6{% endif %}\">
{% if page.kicker == null %}
<h1>{{ replaceIfComponentDataExists(pageComponents, \"title\", page.title) }}</h1>
<h3 class=\"text-green\">{{ page.subtitle|raw }}</h3>
{% endif %}
{% if page.content %}
{{ allowInlineEditor(page, 'content')|raw }}
{% endif %}
{% if page.file %}
<video src=\"{{ page.getFileUrl }}\" controls></video>
{% endif %}
</div>
</div>
{{ renderComponents('After Content', pageComponents)|raw }}
{% if page.content2 %}
<div class=\"row cms-area pb-12\">
{% if page.image3 %}
<div class=\"sm:col-6 col-12\">
<img class=\"max-w-full h-auto\" src=\"{{ imageCache('/userfiles/images/page/' ~ page.image3, 'zoomCrop', 1140, 1200) }}\" width=\"670\" height=\"706\" alt=\"{{ page.title }}\" loading=\"lazy\" />
</div>
{% endif %}
<div class=\"{% if page.image3 %}sm:col-6 col-12{% else %}col-12{% endif %}\">
{{ allowInlineEditor(page, 'content2')|raw }}
</div>
</div>
{% endif %}
</div>
{{ renderHtmlBlock('Content Block', pageHtmlBlocks, page)|raw }}
</section>
{% endblock %}
{% block stylesheets %}
{% endblock %}
", "@theme/templates/cmspage-banner.html.twig", "/var/www/html/k/kasscaffolding/templates/themes/theme/templates/cmspage-banner.html.twig");
}
}