<?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;
/* layouts/layout/slideshow/slideshow.html.twig */
class __TwigTemplate_9f6d49114ce89925a9adeac1c49193c2 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", "layouts/layout/slideshow/slideshow.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layouts/layout/slideshow/slideshow.html.twig"));
// line 1
$context["sliderBlockName"] = "slideblockname";
// line 2
echo "
<section class=\" ";
// line 3
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["sliderBlockName"]) || array_key_exists("sliderBlockName", $context) ? $context["sliderBlockName"] : (function () { throw new RuntimeError('Variable "sliderBlockName" does not exist.', 3, $this->source); })()), 3, $this->source), "html", null, true);
echo " p-0 mb-5 position-relative\" data-aos=\"zoom-out\">
";
// line 4
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 4, $this->source); })())) {
// line 5
echo " <div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
";
// line 8
$context["message"] = "Slideshow: druk op + om een slide toe te voegen";
// line 9
echo " ";
$this->loadTemplate("includes/basicBlocks/admin/message/tip.html.twig", "layouts/layout/slideshow/slideshow.html.twig", 9)->display(twig_array_merge($context, ["message" => (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 9, $this->source); })()), "type" => "info"]));
// line 10
echo "
";
// line 11
$context["block"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", $this->sandbox->ensureToStringAllowed((isset($context["sliderBlockName"]) || array_key_exists("sliderBlockName", $context) ? $context["sliderBlockName"] : (function () { throw new RuntimeError('Variable "sliderBlockName" does not exist.', 11, $this->source); })()), 11, $this->source), ["reload" => true, "limit" => 6]);
// line 12
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 12, $this->source); })()), "iterator", [], "any", false, false, true, 12));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["blockcontent"]) {
// line 13
echo "
<div class=\"border border-primary p-3 mb-3\">
<div class=\"form-group mb-2\">
";
// line 16
$context["message"] = ("Afbeelding " . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 16), 16, $this->source));
// line 17
echo " ";
$this->loadTemplate("includes/basicBlocks/admin/message/tip.html.twig", "layouts/layout/slideshow/slideshow.html.twig", 17)->display(twig_array_merge($context, ["message" => (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 17, $this->source); })()), "type" => "info"]));
// line 18
echo "
";
// line 19
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "slideshowImage", ["title" => "Drag your image here", "width" => 200, "height" => 200]);
// line 23
echo "
</div>
<div class=\"form-group mb-2\">
";
// line 27
$context["message"] = "Titel";
// line 28
echo " ";
$this->loadTemplate("includes/basicBlocks/admin/message/tip.html.twig", "layouts/layout/slideshow/slideshow.html.twig", 28)->display(twig_array_merge($context, ["message" => (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 28, $this->source); })()), "type" => "info"]));
// line 29
echo "
";
// line 30
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "titel", ["class" => "form-control", "placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Titel", [], "admin")]);
// line 33
echo "
</div>
<div class=\"form-group mb-2\">
";
// line 37
$context["message"] = "Tekst";
// line 38
echo " ";
$this->loadTemplate("includes/basicBlocks/admin/message/tip.html.twig", "layouts/layout/slideshow/slideshow.html.twig", 38)->display(twig_array_merge($context, ["message" => (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 38, $this->source); })()), "type" => "info"]));
// line 39
echo "
";
// line 40
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "slidertext", ["class" => "form-control", "placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tekst slider", [], "admin"), "nl2br" => true]);
// line 44
echo "
</div>
<div class=\"form-group mb-2\">
";
// line 48
$context["message"] = "Klik op knop (potlood) om de link in te stellen";
// line 49
echo " ";
$this->loadTemplate("includes/basicBlocks/admin/message/tip.html.twig", "layouts/layout/slideshow/slideshow.html.twig", 49)->display(twig_array_merge($context, ["message" => (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 49, $this->source); })()), "type" => "info"]));
// line 50
echo "
";
// line 51
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "bannerLink");
echo "
</div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blockcontent'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 60
echo " </div>
</div>
</div>
<hr style=\"margin-top:50px;margin-bottom:100px;\">
";
}
// line 65
echo "
";
// line 66
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 66, $this->source); })())) {
// line 67
echo " ";
$context["amount"] = (twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", $this->sandbox->ensureToStringAllowed((isset($context["sliderBlockName"]) || array_key_exists("sliderBlockName", $context) ? $context["sliderBlockName"] : (function () { throw new RuntimeError('Variable "sliderBlockName" does not exist.', 67, $this->source); })()), 67, $this->source)), "getCount", [], "method", false, false, true, 67) - 1);
// line 68
echo " ";
if (((isset($context["amount"]) || array_key_exists("amount", $context) ? $context["amount"] : (function () { throw new RuntimeError('Variable "amount" does not exist.', 68, $this->source); })()) > -1)) {
// line 69
echo " <div class=\"section-banner ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["sliderBlockName"]) || array_key_exists("sliderBlockName", $context) ? $context["sliderBlockName"] : (function () { throw new RuntimeError('Variable "sliderBlockName" does not exist.', 69, $this->source); })()), 69, $this->source), "html", null, true);
echo " p-0\">
<div id=\"";
// line 72
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["sliderBlockName"]) || array_key_exists("sliderBlockName", $context) ? $context["sliderBlockName"] : (function () { throw new RuntimeError('Variable "sliderBlockName" does not exist.', 72, $this->source); })()), 72, $this->source), "html", null, true);
echo "\" class=\"carousel slide\" data-bs-ride=\"carousel\">
";
// line 76
if (((isset($context["amount"]) || array_key_exists("amount", $context) ? $context["amount"] : (function () { throw new RuntimeError('Variable "amount" does not exist.', 76, $this->source); })()) > 0)) {
// line 77
echo " <ol class=\"carousel-indicators\">
";
// line 78
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, (isset($context["amount"]) || array_key_exists("amount", $context) ? $context["amount"] : (function () { throw new RuntimeError('Variable "amount" does not exist.', 78, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 79
echo " <li data-bs-target=\"#";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["sliderBlockName"]) || array_key_exists("sliderBlockName", $context) ? $context["sliderBlockName"] : (function () { throw new RuntimeError('Variable "sliderBlockName" does not exist.', 79, $this->source); })()), 79, $this->source), "html", null, true);
echo "\" data-bs-slide-to=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["i"], 79, $this->source), "html", null, true);
echo "\" class=";
if (($context["i"] == 0)) {
echo "\"active\" aria-current=\"true\"";
}
echo "></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 81
echo " </ol>
";
}
// line 83
echo "
<div class=\"carousel-inner\">
";
// line 85
$context["blocks"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", $this->sandbox->ensureToStringAllowed((isset($context["sliderBlockName"]) || array_key_exists("sliderBlockName", $context) ? $context["sliderBlockName"] : (function () { throw new RuntimeError('Variable "sliderBlockName" does not exist.', 85, $this->source); })()), 85, $this->source), ["limit" => 6]);
// line 86
echo "
";
// line 87
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["blocks"]) || array_key_exists("blocks", $context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.', 87, $this->source); })()), "iterator", [], "any", false, false, true, 87));
foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
// line 88
echo " ";
$context["current"] = twig_get_attribute($this->env, $this->source, (isset($context["blocks"]) || array_key_exists("blocks", $context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.', 88, $this->source); })()), "getCurrent", [], "method", false, false, true, 88);
// line 89
echo " ";
$context["link"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "bannerLink"), "getHref", [], "method", false, false, true, 89);
// line 90
echo "
";
// line 91
if (array_key_exists("link", $context)) {
// line 92
echo " ";
$context["target"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "bannerLink"), "getTarget", [], "method", false, false, true, 92);
// line 93
echo " ";
$context["linktext"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "bannerLink"), "getText", [], "method", false, false, true, 93);
// line 94
echo " ";
}
// line 95
echo "
<div class=\"carousel-item ";
// line 96
if (((isset($context["current"]) || array_key_exists("current", $context) ? $context["current"] : (function () { throw new RuntimeError('Variable "current" does not exist.', 96, $this->source); })()) == 0)) {
echo "active";
}
echo "\" id=\"slide-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["current"]) || array_key_exists("current", $context) ? $context["current"] : (function () { throw new RuntimeError('Variable "current" does not exist.', 96, $this->source); })()), 96, $this->source), "html", null, true);
echo "\">
<div class=\"image position-relative\" data-thumbnail=\"";
// line 97
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "slideshowImage"), "getThumbnail", [0 => "slideshow-homepage"], "method", false, false, true, 97), 97, $this->source), "html", null, true);
echo "\" style=\"background-image: url(";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "slideshowImage"), "getThumbnail", [0 => "slideshow-homepage"], "method", false, false, true, 97), 97, $this->source), "html", null, true);
echo ");\">
<div class=\"container position-relative h-100\">
<div class=\"row align-items-center h-75\">
<div class=\"col-6 text-white py-5\">
<h1 class=\"text-white\">";
// line 102
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "titel");
echo "</h1>
";
// line 104
if ( !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "slidertext"), "isEmpty", [], "method", false, false, true, 104)) {
// line 105
echo " <p>";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "slidertext");
echo "</p>
";
}
// line 107
echo "
";
// line 108
if ((array_key_exists("link", $context) && !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "bannerLink"), "isEmpty", [], "method", false, false, true, 108))) {
// line 109
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 109, $this->source); })()), 109, $this->source), "html", null, true);
echo "\" target=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["target"]) || array_key_exists("target", $context) ? $context["target"] : (function () { throw new RuntimeError('Variable "target" does not exist.', 109, $this->source); })()), 109, $this->source), "html", null, true);
echo "\" class=\"btn btn-primary\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["linktext"]) || array_key_exists("linktext", $context) ? $context["linktext"] : (function () { throw new RuntimeError('Variable "linktext" does not exist.', 109, $this->source); })()), 109, $this->source), "html", null, true);
echo "</a>
";
}
// line 111
echo " </div>
</div>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 117
echo " </div>
";
// line 119
if (((isset($context["amount"]) || array_key_exists("amount", $context) ? $context["amount"] : (function () { throw new RuntimeError('Variable "amount" does not exist.', 119, $this->source); })()) > 0)) {
// line 120
echo " <a class=\"carousel-control-prev\" type=\"button\" data-bs-target=\"#";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["sliderBlockName"]) || array_key_exists("sliderBlockName", $context) ? $context["sliderBlockName"] : (function () { throw new RuntimeError('Variable "sliderBlockName" does not exist.', 120, $this->source); })()), 120, $this->source), "html", null, true);
echo "\" role=\"button\" data-bs-slide=\"prev\">
<span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>
<span class=\"visually-hidden\">";
// line 122
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Previous"), "html", null, true);
echo "</span>
</a>
<a class=\"carousel-control-next\" type=\"button\" data-bs-target=\"#";
// line 125
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["sliderBlockName"]) || array_key_exists("sliderBlockName", $context) ? $context["sliderBlockName"] : (function () { throw new RuntimeError('Variable "sliderBlockName" does not exist.', 125, $this->source); })()), 125, $this->source), "html", null, true);
echo "\" role=\"button\" data-bs-slide=\"next\">
<span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>
<span class=\"visually-hidden\">";
// line 127
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Next"), "html", null, true);
echo "</span>
</a>
";
}
// line 130
echo " </div>
</div>
<svg version=\"1.1\" class=\"";
// line 141
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 141, $this->source); })())) {
echo "position-absolute bottom-0 start-0 mb-n5";
}
echo "\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"
viewBox=\"0 0 3869.3 565.1\" style=\"enable-background:new 0 0 3869.3 565.1;\" xml:space=\"preserve\">
<style type=\"text/css\">
.st0{fill:#FFFFFF;}
</style>
<path class=\"st0\" d=\"M1652.2,98.8c495,191.1,690.4,185.6,946.4,176.8c256-8.8,642-103.8,1270.7,181.3l-1.5,108.1H0L5.7,148
\tc52.8,15.7,213.9,31.6,435.6-30.9C718.3,38.9,1157.3-92.3,1652.2,98.8z\"/>
</svg>
";
}
// line 150
echo "
";
}
// line 152
echo "
</section>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "layouts/layout/slideshow/slideshow.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 386 => 152, 382 => 150, 368 => 141, 355 => 130, 349 => 127, 344 => 125, 338 => 122, 332 => 120, 330 => 119, 326 => 117, 315 => 111, 305 => 109, 303 => 108, 300 => 107, 294 => 105, 292 => 104, 287 => 102, 277 => 97, 269 => 96, 266 => 95, 263 => 94, 260 => 93, 257 => 92, 255 => 91, 252 => 90, 249 => 89, 246 => 88, 242 => 87, 239 => 86, 237 => 85, 233 => 83, 229 => 81, 214 => 79, 210 => 78, 207 => 77, 205 => 76, 198 => 72, 191 => 69, 188 => 68, 185 => 67, 183 => 66, 180 => 65, 173 => 60, 150 => 51, 147 => 50, 144 => 49, 142 => 48, 136 => 44, 134 => 40, 131 => 39, 128 => 38, 126 => 37, 120 => 33, 118 => 30, 115 => 29, 112 => 28, 110 => 27, 104 => 23, 102 => 19, 99 => 18, 96 => 17, 94 => 16, 89 => 13, 71 => 12, 69 => 11, 66 => 10, 63 => 9, 61 => 8, 56 => 5, 54 => 4, 50 => 3, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% set sliderBlockName = 'slideblockname' %}
<section class=\" {{ sliderBlockName }} p-0 mb-5 position-relative\" data-aos=\"zoom-out\">
{% if editmode %}
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
{% set message = 'Slideshow: druk op + om een slide toe te voegen' %}
{% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
{% set block = pimcore_block(sliderBlockName, {'reload' : true, 'limit' : 6}) %}
{% for blockcontent in block.iterator %}
<div class=\"border border-primary p-3 mb-3\">
<div class=\"form-group mb-2\">
{% set message = 'Afbeelding ' ~ loop.index %}
{% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
{{ pimcore_image(\"slideshowImage\", {
\"title\" : \"Drag your image here\",
\"width\" : 200,
\"height\" : 200,
}) }}
</div>
<div class=\"form-group mb-2\">
{% set message = 'Titel' %}
{% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
{{ pimcore_input(\"titel\", {
\"class\": \"form-control\",
\"placeholder\" : \"Titel\"|trans({}, 'admin')
}) }}
</div>
<div class=\"form-group mb-2\">
{% set message = 'Tekst' %}
{% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
{{ pimcore_textarea(\"slidertext\", {
\"class\": \"form-control\",
\"placeholder\" : \"Tekst slider\"|trans({}, 'admin'),
\"nl2br\": true
}) }}
</div>
<div class=\"form-group mb-2\">
{% set message = 'Klik op knop (potlood) om de link in te stellen' %}
{% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
{{ pimcore_link(\"bannerLink\") }}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
<hr style=\"margin-top:50px;margin-bottom:100px;\">
{% endif %}
{% if not editmode %}
{% set amount = pimcore_block(sliderBlockName).getCount() - 1 %}
{% if amount > -1 %}
<div class=\"section-banner {{ sliderBlockName }} p-0\">
<div id=\"{{ sliderBlockName }}\" class=\"carousel slide\" data-bs-ride=\"carousel\">
{% if amount > 0 %}
<ol class=\"carousel-indicators\">
{% for i in 0..amount %}
<li data-bs-target=\"#{{ sliderBlockName }}\" data-bs-slide-to=\"{{ i }}\" class={% if i == 0 %}\"active\" aria-current=\"true\"{% endif %}></li>
{% endfor %}
</ol>
{% endif %}
<div class=\"carousel-inner\">
{% set blocks = pimcore_block(sliderBlockName, {'limit' : 6}) %}
{% for block in blocks.iterator %}
{% set current = blocks.getCurrent() %}
{% set link = pimcore_link(\"bannerLink\").getHref() %}
{% if link is defined %}
{% set target = pimcore_link(\"bannerLink\").getTarget() %}
{% set linktext = pimcore_link(\"bannerLink\").getText() %}
{% endif %}
<div class=\"carousel-item {% if current == 0 %}active{% endif %}\" id=\"slide-{{ current }}\">
<div class=\"image position-relative\" data-thumbnail=\"{{ pimcore_image(\"slideshowImage\").getThumbnail(\"slideshow-homepage\") }}\" style=\"background-image: url({{ pimcore_image(\"slideshowImage\").getThumbnail(\"slideshow-homepage\") }});\">
<div class=\"container position-relative h-100\">
<div class=\"row align-items-center h-75\">
<div class=\"col-6 text-white py-5\">
<h1 class=\"text-white\">{{ pimcore_input(\"titel\") }}</h1>
{% if not pimcore_textarea(\"slidertext\").isEmpty() %}
<p>{{ pimcore_textarea(\"slidertext\") }}</p>
{% endif %}
{% if link is defined and not pimcore_link(\"bannerLink\").isEmpty() %}
<a href=\"{{ link }}\" target=\"{{ target }}\" class=\"btn btn-primary\">{{ linktext }}</a>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
{% if amount > 0 %}
<a class=\"carousel-control-prev\" type=\"button\" data-bs-target=\"#{{ sliderBlockName }}\" role=\"button\" data-bs-slide=\"prev\">
<span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>
<span class=\"visually-hidden\">{{ 'Previous'|trans }}</span>
</a>
<a class=\"carousel-control-next\" type=\"button\" data-bs-target=\"#{{ sliderBlockName }}\" role=\"button\" data-bs-slide=\"next\">
<span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>
<span class=\"visually-hidden\">{{ 'Next'|trans }}</span>
</a>
{% endif %}
</div>
</div>
<svg version=\"1.1\" class=\"{% if not editmode %}position-absolute bottom-0 start-0 mb-n5{% endif %}\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"
viewBox=\"0 0 3869.3 565.1\" style=\"enable-background:new 0 0 3869.3 565.1;\" xml:space=\"preserve\">
<style type=\"text/css\">
.st0{fill:#FFFFFF;}
</style>
<path class=\"st0\" d=\"M1652.2,98.8c495,191.1,690.4,185.6,946.4,176.8c256-8.8,642-103.8,1270.7,181.3l-1.5,108.1H0L5.7,148
\tc52.8,15.7,213.9,31.6,435.6-30.9C718.3,38.9,1157.3-92.3,1652.2,98.8z\"/>
</svg>
{% endif %}
{% endif %}
</section>", "layouts/layout/slideshow/slideshow.html.twig", "/var/www/clients/client2/web45/web/pc/templates/layouts/layout/slideshow/slideshow.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "if" => 4, "include" => 9, "for" => 12);
static $filters = array("escape" => 3, "trans" => 32);
static $functions = array("pimcore_block" => 11, "pimcore_image" => 19, "pimcore_input" => 30, "pimcore_textarea" => 40, "pimcore_link" => 51, "range" => 78);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'include', 'for'],
['escape', 'trans'],
['pimcore_block', 'pimcore_image', 'pimcore_input', 'pimcore_textarea', 'pimcore_link', 'range']
);
} 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;
}
}
}