<?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;
/* includes/cta-bottom.html.twig */
class __TwigTemplate_3cf252a6036c9b35464f7cf1cbd6843f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
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", "includes/cta-bottom.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/cta-bottom.html.twig"));
// line 1
if (((twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "ctaLink"), "getHref", [], "method", false, false, true, 1) && $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "ctaTitle")) || (isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 1, $this->source); })()))) {
// line 2
echo "
<section class=\"cta-bottom\">
<div class=\"container-fluid\">
<div class=\"row align-items-center\">
<div class=\"col-lg-10 offset-lg-1\">
<div class=\"row\">
<div class=\"col-md-8 mb-4 mb-md-0 d-flex justify-content-center flex-column px-md-0\">
<h3 class=\"text-uppercase\">";
// line 9
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "ctaTitle", ["placeholder" => "Titel..."]), "render", [], "method", false, false, true, 9), 9, $this->source);
echo "</h3>
<p class=\"cta-bottom__title\">";
// line 10
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "ctaIntro", ["placeholder" => "Titel...", "nl2br" => true]), "render", [], "method", false, false, true, 10), 10, $this->source);
echo "</p>
</div>
<div class=\"col-md-4 justify-content-md-end d-flex px-md-0\">
<div class=\"d-flex align-items-center download__hover text-end\">
";
// line 15
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 15, $this->source); })())) {
// line 16
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "ctaLink", ["class" => "cta-bottom__button", "placeholder" => "Knop..."]);
echo "
";
} else {
// line 18
echo " ";
$context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "ctaLink");
// line 19
echo "
<a href=\"";
// line 20
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 20, $this->source); })()), "getHref", [], "method", false, false, true, 20), 20, $this->source), "html", null, true);
echo "\" class=\"cta-bottom__button px-md-0\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 20, $this->source); })()), "getText", [], "method", false, false, true, 20), 20, $this->source), "html", null, true);
echo "</a>
<a href=\"";
// line 22
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 22, $this->source); })()), "getHref", [], "method", false, false, true, 22), 22, $this->source), "html", null, true);
echo "\" class=\"text-end\">
<img class=\"w-50\" src=\"";
// line 23
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/arrow_download.png"), "html", null, true);
echo "\" alt=\"\">
</a>
";
}
// line 26
echo " </div>
</div>
</div><!--/ .row -->
</div>
</div>
</div><!--/ .container-fluid -->
</section>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "includes/cta-bottom.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 99 => 26, 93 => 23, 89 => 22, 82 => 20, 79 => 19, 76 => 18, 70 => 16, 68 => 15, 60 => 10, 56 => 9, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% if (pimcore_link('ctaLink').getHref() and pimcore_input('ctaTitle')) or editmode %}
<section class=\"cta-bottom\">
<div class=\"container-fluid\">
<div class=\"row align-items-center\">
<div class=\"col-lg-10 offset-lg-1\">
<div class=\"row\">
<div class=\"col-md-8 mb-4 mb-md-0 d-flex justify-content-center flex-column px-md-0\">
<h3 class=\"text-uppercase\">{{ pimcore_input(\"ctaTitle\", {\"placeholder\": \"Titel...\"}).render()|raw }}</h3>
<p class=\"cta-bottom__title\">{{ pimcore_input(\"ctaIntro\", {\"placeholder\": \"Titel...\", 'nl2br': true}).render()|raw }}</p>
</div>
<div class=\"col-md-4 justify-content-md-end d-flex px-md-0\">
<div class=\"d-flex align-items-center download__hover text-end\">
{% if editmode %}
{{ pimcore_link('ctaLink', {'class': 'cta-bottom__button', \"placeholder\": \"Knop...\"}) }}
{% else %}
{% set link = pimcore_link('ctaLink') %}
<a href=\"{{ link.getHref() }}\" class=\"cta-bottom__button px-md-0\">{{ link.getText() }}</a>
<a href=\"{{ link.getHref() }}\" class=\"text-end\">
<img class=\"w-50\" src=\"{{ asset('/img/arrow_download.png') }}\" alt=\"\">
</a>
{% endif %}
</div>
</div>
</div><!--/ .row -->
</div>
</div>
</div><!--/ .container-fluid -->
</section>
{% endif %}", "includes/cta-bottom.html.twig", "/data/sites/web/gc-architectenntrigapimbe/subsites/gc2025.dspdev.be/templates/includes/cta-bottom.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 1, "set" => 18);
static $filters = array("raw" => 9, "escape" => 20);
static $functions = array("pimcore_link" => 1, "pimcore_input" => 1, "asset" => 23);
try {
$this->sandbox->checkSecurity(
['if', 'set'],
['raw', 'escape'],
['pimcore_link', 'pimcore_input', 'asset']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}