<?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-kicker.html.twig */
class __TwigTemplate_8e238ae54d9718d13ffc6e47edd1f126 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-kicker.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-kicker.html.twig"));
$this->parent = $this->loadTemplate("@theme/base.html.twig", "@theme/templates/cmspage-kicker.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 banner-image--gradient lazyBackgroundImage\" data-mobile=\"";
echo twig_escape_filter($this->env, $this->env->getFunction('imageCache')->getCallable()(("/" . 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); })()), "getFullImagePath", [], "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()(("/" . 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); })()), "getFullImagePath", [], "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\">
<div class=\"bg-primary text-center text-white px-10 py-12 relative z-20 mb-12 ";
// 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); })()), "image", [], "any", false, false, false, 13) != null)) {
echo " -mt-12 sm:-mt-24 md:-mt-52";
} else {
echo "mt-12";
}
echo "\">
<h1 class=\"text-white\">";
// line 14
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>
";
// line 15
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.', 15, $this->source); })()), "subtitle", [], "any", false, false, false, 15)) {
// line 16
echo " <h3 class=\"text-white\">";
echo twig_escape_filter($this->env, twig_striptags($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); })()), "subtitle")), "html", null, true);
echo "</h3>
";
}
// line 18
echo " ";
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.', 18, $this->source); })()), "kicker", [], "any", false, false, false, 18)) {
// line 19
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.', 19, $this->source); })()), "kicker");
echo "
";
}
// line 21
echo " </div>
";
// 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)) {
// line 23
echo " <div class=\"row cms-area mb-12\">
<div class=\"md:col-10 md:offset-1 green-title\">
";
// line 25
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.', 25, $this->source); })()), "content");
echo "
";
// line 26
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.', 26, $this->source); })()), "file", [], "any", false, false, false, 26)) {
// line 27
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.', 27, $this->source); })()), "getFileUrl", [], "any", false, false, false, 27), "html", null, true);
echo "\" controls></video>
";
}
// line 29
echo " </div>
</div>
";
}
// line 32
echo " ";
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); })()), "image2", [], "any", false, false, false, 32) || 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); })()), "image3", [], "any", false, false, false, 32))) {
// line 33
echo " <div class=\"row mb-12\">
";
// line 34
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.', 34, $this->source); })()), "image2", [], "any", false, false, false, 34)) {
// line 35
echo " <div class=\"sm:col-6 mb-8 sm:mb-0\">
<img src=\"";
// line 36
echo twig_escape_filter($this->env, $this->env->getFunction('imageCache')->getCallable()(("/" . 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.', 36, $this->source); })()), "getFullImage2Path", [], "any", false, false, false, 36)), "zoomCrop", 1140, 1040), "html", null, true);
echo "\" width=\"670\" height=\"612\" 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.', 36, $this->source); })()), "title", [], "any", false, false, false, 36), "html", null, true);
echo "\" loading=\"lazy\" />
</div>
";
}
// line 39
echo " ";
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.', 39, $this->source); })()), "image3", [], "any", false, false, false, 39)) {
// line 40
echo " <div class=\"sm:col-6\">
<img src=\"";
// line 41
echo twig_escape_filter($this->env, $this->env->getFunction('imageCache')->getCallable()(("/" . 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.', 41, $this->source); })()), "getFullImage3Path", [], "any", false, false, false, 41)), "zoomCrop", 1140, 1040), "html", null, true);
echo "\" width=\"670\" height=\"612\" 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.', 41, $this->source); })()), "title", [], "any", false, false, false, 41), "html", null, true);
echo "\" loading=\"lazy\" />
</div>
";
}
// line 44
echo " </div>
";
}
// line 46
echo " ";
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.', 46, $this->source); })()), "content2", [], "any", false, false, false, 46)) {
// line 47
echo " <div class=\"row cms-area mb-12 green-title\">
<div class=\"md:col-10 md:offset-1\">
";
// 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); })()), "content2");
echo "
</div>
</div>
";
}
// line 53
echo " </div>
</section>
";
// line 56
echo $this->env->getFunction('renderComponents')->getCallable()("Block 1", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 56, $this->source); })()));
echo "
";
// line 58
echo $this->env->getFunction('renderComponents')->getCallable()("Block 2", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 58, $this->source); })()));
echo "
";
// line 60
echo $this->env->getFunction('renderComponents')->getCallable()("Block 3", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 60, $this->source); })()));
echo "
";
// line 62
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.', 62, $this->source); })()), "id", [], "any", false, false, false, 62) == 19)) {
// line 63
echo " ";
$this->loadTemplate("@theme/common/company-info.html.twig", "@theme/templates/cmspage-kicker.html.twig", 63)->display($context);
}
// line 65
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 68
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-kicker.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 275 => 68, 264 => 65, 260 => 63, 258 => 62, 253 => 60, 248 => 58, 243 => 56, 238 => 53, 231 => 49, 227 => 47, 224 => 46, 220 => 44, 212 => 41, 209 => 40, 206 => 39, 198 => 36, 195 => 35, 193 => 34, 190 => 33, 187 => 32, 182 => 29, 176 => 27, 174 => 26, 170 => 25, 166 => 23, 164 => 22, 161 => 21, 155 => 19, 152 => 18, 146 => 16, 144 => 15, 140 => 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 banner-image--gradient lazyBackgroundImage\" data-mobile=\"{{ imageCache('/'~ page.getFullImagePath, 'zoomCrop', 1566, 822) }}\" data-desktop=\"{{ imageCache('/'~ page.getFullImagePath, 'zoomCrop', 3200, 1680) }}\"></div>
{% endif %}
<section class=\"page-content{% if page.image == null %} pt-[148px] md:pt-[163px]{% endif %}\">
<div class=\"container\">
<div class=\"bg-primary text-center text-white px-10 py-12 relative z-20 mb-12 {% if page.image != null %} -mt-12 sm:-mt-24 md:-mt-52{% else %}mt-12{% endif %}\">
<h1 class=\"text-white\">{{ replaceIfComponentDataExists(pageComponents, \"title\", page.title) }}</h1>
{% if page.subtitle %}
<h3 class=\"text-white\">{{ allowInlineEditor(page, 'subtitle')|striptags }}</h3>
{% endif %}
{% if page.kicker %}
{{ allowInlineEditor(page, 'kicker')|raw }}
{% endif %}
</div>
{% if page.content %}
<div class=\"row cms-area mb-12\">
<div class=\"md:col-10 md:offset-1 green-title\">
{{ allowInlineEditor(page, 'content')|raw }}
{% if page.file %}
<video src=\"{{ page.getFileUrl }}\" controls></video>
{% endif %}
</div>
</div>
{% endif %}
{% if page.image2 or page.image3 %}
<div class=\"row mb-12\">
{% if page.image2 %}
<div class=\"sm:col-6 mb-8 sm:mb-0\">
<img src=\"{{ imageCache('/'~ page.getFullImage2Path, 'zoomCrop', 1140, 1040) }}\" width=\"670\" height=\"612\" alt=\"{{ page.title }}\" loading=\"lazy\" />
</div>
{% endif %}
{% if page.image3 %}
<div class=\"sm:col-6\">
<img src=\"{{ imageCache('/'~ page.getFullImage3Path, 'zoomCrop', 1140, 1040) }}\" width=\"670\" height=\"612\" alt=\"{{ page.title }}\" loading=\"lazy\" />
</div>
{% endif %}
</div>
{% endif %}
{% if page.content2 %}
<div class=\"row cms-area mb-12 green-title\">
<div class=\"md:col-10 md:offset-1\">
{{ allowInlineEditor(page, 'content2')|raw }}
</div>
</div>
{% endif %}
</div>
</section>
{{ renderComponents('Block 1', pageComponents)|raw }}
{{ renderComponents('Block 2', pageComponents)|raw }}
{{ renderComponents('Block 3', pageComponents)|raw }}
{% if page.id == 19 %}
{% include '@theme/common/company-info.html.twig' %}
{% endif %}
{% endblock %}
{% block stylesheets %}
{% endblock %}
", "@theme/templates/cmspage-kicker.html.twig", "/var/www/html/k/kasscaffolding/templates/themes/theme/templates/cmspage-kicker.html.twig");
}
}