<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* areas/content-brick/partials/_gallery.html.twig */
class __TwigTemplate_bd03f5cfb1da9bdf480fc7a0394669b7c4d256771079463dd8ceffc0d598b78f extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/content-brick/partials/_gallery.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/content-brick/partials/_gallery.html.twig"));
// line 1
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 1, $this->source); })())) {
// line 2
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "gallery"), "isEmpty", [], "method", false, false, true, 2) && array_key_exists("defaultGalleryItems", $context))) {
// line 3
yield " ";
yield from $this->loadTemplate("areas/content-brick/partials/_gallery.html.twig", "areas/content-brick/partials/_gallery.html.twig", 3, "1652391233")->unwrap()->yield($context);
// line 18
yield " ";
}
// line 19
yield "
";
// line 20
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "gallery", ["reload" => true, "limit" => 4]), "iterator", [], "any", false, false, true, 20));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 21
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["thumbnail" => "gallery", "reload" => "true", "class" => "w-full", "pictureAttributes" => ["class" => "w-full"]]);
// line 28
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['i'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
} else {
// line 31
yield " <div class=\"!-mx-5 md:!mx-auto md:rounded-md overflow-hidden swiper slideshow-swiper max-h-60 md:max-h-full\">
<div class=\" swiper-wrapper\">
";
// line 34
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "gallery", ["reload" => true, "limit" => 4]), "iterator", [], "any", false, false, true, 34));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 35
yield " <div class=\"swiper-slide\">
";
// line 36
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["thumbnail" => "gallery", "reload" => "true", "pictureAttributes" => ["class" => "w-full block aspect-[4/3] rounded-md "], "imgAttributes" => ["class" => "w-full h-full object-cover object-center max-h-60 md:max-h-full"]]);
// line 43
yield "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['i'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 46
yield "
";
// line 49
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "gallery"), "isEmpty", [], "method", false, false, true, 49) && // line 50
array_key_exists("defaultGalleryItems", $context))) {
// line 51
yield "
";
// line 52
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["defaultGalleryItems"]) || array_key_exists("defaultGalleryItems", $context) ? $context["defaultGalleryItems"] : (function () { throw new RuntimeError('Variable "defaultGalleryItems" does not exist.', 52, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 53
yield " <div class=\"swiper-slide\">
";
// line 54
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["image"], "thumbnail", ["gallery"], "method", false, false, true, 54), "html", [["pictureAttributes" => ["class" => "w-full block aspect-[4/3] rounded-md"], "imgAttributes" => ["class" => "w-full h-full object-cover object-center max-h-60 md:max-h-full"]]], "method", false, false, true, 54), 54, $this->source);
// line 61
yield "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['image'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 64
yield "
";
}
// line 66
yield "
</div>
<div class=\"absolute z-20 flex gap-2 bottom-4 right-4\">
<div class=\"custom-swiper-button-prev\">
<svg class=\"w-4 h-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 12\">
<path fill=\"#FFF\" fill-rule=\"evenodd\"
d=\"M15.106 6.883H3.396l3.218 3.218a.885.885 0 1 1-1.252 1.252L.707 6.695a1 1 0 0 1 0-1.414L5.362.626a.885.885 0 1 1 1.252 1.252L3.396 5.095h11.71a.894.894 0 0 1 0 1.788Z\"/>
</svg>
</div>
<div class=\"custom-swiper-button-next\">
<svg class=\"w-4 h-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 12\">
<path fill=\"#FFF\" fill-rule=\"evenodd\"
d=\"M.894 5.095h11.71L9.386 1.878A.885.885 0 1 1 10.638.626l4.655 4.656a1 1 0 0 1 0 1.414l-4.655 4.656A.885.885 0 1 1 9.386 10.1l3.218-3.217H.894a.894.894 0 0 1 0-1.788Z\"/>
</svg>
</div>
</div>
</div>
";
// line 86
yield " ";
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 86, $this->source); })())) {
// line 87
yield " <div class=\"absolute z-20 hidden gap-2 ml-4 -mt-16 md:inline-flex\">
";
// line 89
if (CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "gallery"), "getCount", [], "method", false, false, true, 89)) {
// line 90
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "gallery"), "iterator", [], "any", false, false, true, 90));
foreach ($context['_seq'] as $context["_key"] => $context["gallery"]) {
// line 91
yield " <div data-id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["gallery"] - (((true && !(null === 1))) ? (1) : ("0"))), "html", null, true);
yield "\" class=\"cursor-pointer swiper-thumbnail\">
";
// line 92
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["thumbnail" => "gallery-navigation", "pictureAttributes" => ["class" => "overflow-hidden inline-block w-10 h-10 rounded-md md:w-20 md:h-20 aspect-square"], "imgAttributes" => ["class" => "w-full h-full object-cover object-center"]]);
// line 102
yield "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['gallery'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 105
yield " ";
}
// line 106
yield "
";
// line 107
if ((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "gallery"), "isEmpty", [], "method", false, false, true, 107) && // line 108
array_key_exists("defaultGalleryItems", $context))) {
// line 109
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["defaultGalleryItems"]) || array_key_exists("defaultGalleryItems", $context) ? $context["defaultGalleryItems"] : (function () { throw new RuntimeError('Variable "defaultGalleryItems" does not exist.', 109, $this->source); })()));
$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["image"]) {
// line 110
yield " <div data-id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, true, 110), 110, $this->source), "html", null, true);
yield "\" class=\"cursor-pointer swiper-thumbnail\">
";
// line 111
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["image"], "thumbnail", ["gallery-navigation"], "method", false, false, true, 111), "html", [["pictureAttributes" => ["class" => "overflow-hidden inline-block w-10 h-10 rounded-md md:w-20 md:h-20 aspect-square"], "imgAttributes" => ["class" => "w-full h-full object-cover object-center"]]], "method", false, false, true, 111), 111, $this->source);
// line 120
yield "
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 123
yield " ";
}
// line 124
yield " </div>
";
}
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/content-brick/partials/_gallery.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 234 => 124, 231 => 123, 215 => 120, 213 => 111, 208 => 110, 190 => 109, 188 => 108, 187 => 107, 184 => 106, 181 => 105, 173 => 102, 171 => 92, 166 => 91, 161 => 90, 159 => 89, 155 => 87, 152 => 86, 132 => 66, 128 => 64, 120 => 61, 118 => 54, 115 => 53, 111 => 52, 108 => 51, 106 => 50, 104 => 49, 101 => 46, 93 => 43, 91 => 36, 88 => 35, 83 => 34, 79 => 31, 71 => 28, 68 => 21, 64 => 20, 61 => 19, 58 => 18, 55 => 3, 52 => 2, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if editmode %}
{% if pimcore_block('gallery').isEmpty() and defaultGalleryItems is defined %}
{% embed 'app/editmodenotice.html.twig' %}
{% block title %} Standaard Afbeeldingen automatisch geselecteerd {% endblock %}
{% block information %}
Vanuit een koppeling met een gerelateerd Object zijn er afbeeldingen gekozen om te tonen.
Indien u gebruik wenst te maken van andere afbeeldingen dan vult u hier nieuwe afbeeldingen.
{% for image in defaultGalleryItems %}
{{ image.thumbnail('gallery').html({
'class':'w-full',
'pictureAttributes': {
class: 'w-full'
}
}) | raw }}
{% endfor %}
{% endblock %}
{% endembed %}
{% endif %}
{% for i in pimcore_block('gallery', {'reload': true, 'limit' : 4}).iterator %}
{{ pimcore_image('image',
{
'thumbnail': 'gallery',
'reload': 'true',
'class':'w-full',
'pictureAttributes': {class: 'w-full'}
}
) }}
{% endfor %}
{% else %}
<div class=\"!-mx-5 md:!mx-auto md:rounded-md overflow-hidden swiper slideshow-swiper max-h-60 md:max-h-full\">
<div class=\" swiper-wrapper\">
{# Load the manually selectable gallery items #}
{% for i in pimcore_block('gallery', {'reload': true, 'limit' : 4}).iterator %}
<div class=\"swiper-slide\">
{{ pimcore_image('image',
{
'thumbnail': 'gallery',
'reload': 'true',
'pictureAttributes': {class: 'w-full block aspect-[4/3] rounded-md '},
'imgAttributes': {class: 'w-full h-full object-cover object-center max-h-60 md:max-h-full'}
}
) }}
</div>
{% endfor %}
{# If a default set of gallery items is available and no manual gallery items are added
iterate through the supplied defaultGalleryItems. #}
{% if pimcore_block('gallery').isEmpty()
and defaultGalleryItems is defined %}
{% for image in defaultGalleryItems %}
<div class=\"swiper-slide\">
{{ image.thumbnail('gallery').html({
'pictureAttributes': {
class: 'w-full block aspect-[4/3] rounded-md'
},
'imgAttributes': {
class: 'w-full h-full object-cover object-center max-h-60 md:max-h-full'
}
})|raw }}
</div>
{% endfor %}
{% endif %}
</div>
<div class=\"absolute z-20 flex gap-2 bottom-4 right-4\">
<div class=\"custom-swiper-button-prev\">
<svg class=\"w-4 h-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 12\">
<path fill=\"#FFF\" fill-rule=\"evenodd\"
d=\"M15.106 6.883H3.396l3.218 3.218a.885.885 0 1 1-1.252 1.252L.707 6.695a1 1 0 0 1 0-1.414L5.362.626a.885.885 0 1 1 1.252 1.252L3.396 5.095h11.71a.894.894 0 0 1 0 1.788Z\"/>
</svg>
</div>
<div class=\"custom-swiper-button-next\">
<svg class=\"w-4 h-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 12\">
<path fill=\"#FFF\" fill-rule=\"evenodd\"
d=\"M.894 5.095h11.71L9.386 1.878A.885.885 0 1 1 10.638.626l4.655 4.656a1 1 0 0 1 0 1.414l-4.655 4.656A.885.885 0 1 1 9.386 10.1l3.218-3.217H.894a.894.894 0 0 1 0-1.788Z\"/>
</svg>
</div>
</div>
</div>
{# Do not iterate gallery block twice in editmode as this breaks pimcore admin editmode.
Pimcore will try and create two gallery items and this results in a name conflict. #}
{% if not editmode %}
<div class=\"absolute z-20 hidden gap-2 ml-4 -mt-16 md:inline-flex\">
{% if pimcore_block('gallery').getCount() %}
{% for gallery in pimcore_block('gallery').iterator %}
<div data-id=\"{{ gallery-1 ?? \"0\" }}\" class=\"cursor-pointer swiper-thumbnail\">
{{ pimcore_image('image',
{
'thumbnail': 'gallery-navigation',
'pictureAttributes': {
class: 'overflow-hidden inline-block w-10 h-10 rounded-md md:w-20 md:h-20 aspect-square'
},
'imgAttributes': {
class: 'w-full h-full object-cover object-center'
}
}
) }}
</div>
{% endfor %}
{% endif %}
{% if pimcore_block('gallery').isEmpty()
and defaultGalleryItems is defined %}
{% for image in defaultGalleryItems %}
<div data-id=\"{{ loop.index0 }}\" class=\"cursor-pointer swiper-thumbnail\">
{{ image.thumbnail('gallery-navigation').html(
{
'pictureAttributes': {
class: 'overflow-hidden inline-block w-10 h-10 rounded-md md:w-20 md:h-20 aspect-square'
},
'imgAttributes': {
class: 'w-full h-full object-cover object-center'
}
}
)|raw }}
</div>
{% endfor %}
{% endif %}
</div>
{% endif %}
{% endif %}
", "areas/content-brick/partials/_gallery.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/content-brick/partials/_gallery.html.twig");
}
public function checkSecurity()
{
static $tags = ["if" => 1, "embed" => 3, "for" => 20];
static $filters = ["raw" => 61, "escape" => 91];
static $functions = ["pimcore_block" => 2, "pimcore_image" => 21];
try {
$this->sandbox->checkSecurity(
['if', 'embed', 'for'],
['raw', 'escape'],
['pimcore_block', 'pimcore_image'],
$this->source
);
} 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;
}
}
}
/* areas/content-brick/partials/_gallery.html.twig */
class __TwigTemplate_bd03f5cfb1da9bdf480fc7a0394669b7c4d256771079463dd8ceffc0d598b78f___1652391233 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'information' => [$this, 'block_information'],
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 3
return "app/editmodenotice.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/content-brick/partials/_gallery.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/content-brick/partials/_gallery.html.twig"));
$this->parent = $this->loadTemplate("app/editmodenotice.html.twig", "areas/content-brick/partials/_gallery.html.twig", 3);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield " Standaard Afbeeldingen automatisch geselecteerd ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_information(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "information"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "information"));
// line 6
yield " Vanuit een koppeling met een gerelateerd Object zijn er afbeeldingen gekozen om te tonen.
Indien u gebruik wenst te maken van andere afbeeldingen dan vult u hier nieuwe afbeeldingen.
";
// line 8
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["defaultGalleryItems"]) || array_key_exists("defaultGalleryItems", $context) ? $context["defaultGalleryItems"] : (function () { throw new RuntimeError('Variable "defaultGalleryItems" does not exist.', 8, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 9
yield " ";
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["image"], "thumbnail", ["gallery"], "method", false, false, true, 9), "html", [["class" => "w-full", "pictureAttributes" => ["class" => "w-full"]]], "method", false, false, true, 9), 9, $this->source);
// line 14
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['image'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 16
yield " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/content-brick/partials/_gallery.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 536 => 16, 529 => 14, 526 => 9, 522 => 8, 518 => 6, 505 => 5, 482 => 4, 459 => 3, 234 => 124, 231 => 123, 215 => 120, 213 => 111, 208 => 110, 190 => 109, 188 => 108, 187 => 107, 184 => 106, 181 => 105, 173 => 102, 171 => 92, 166 => 91, 161 => 90, 159 => 89, 155 => 87, 152 => 86, 132 => 66, 128 => 64, 120 => 61, 118 => 54, 115 => 53, 111 => 52, 108 => 51, 106 => 50, 104 => 49, 101 => 46, 93 => 43, 91 => 36, 88 => 35, 83 => 34, 79 => 31, 71 => 28, 68 => 21, 64 => 20, 61 => 19, 58 => 18, 55 => 3, 52 => 2, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if editmode %}
{% if pimcore_block('gallery').isEmpty() and defaultGalleryItems is defined %}
{% embed 'app/editmodenotice.html.twig' %}
{% block title %} Standaard Afbeeldingen automatisch geselecteerd {% endblock %}
{% block information %}
Vanuit een koppeling met een gerelateerd Object zijn er afbeeldingen gekozen om te tonen.
Indien u gebruik wenst te maken van andere afbeeldingen dan vult u hier nieuwe afbeeldingen.
{% for image in defaultGalleryItems %}
{{ image.thumbnail('gallery').html({
'class':'w-full',
'pictureAttributes': {
class: 'w-full'
}
}) | raw }}
{% endfor %}
{% endblock %}
{% endembed %}
{% endif %}
{% for i in pimcore_block('gallery', {'reload': true, 'limit' : 4}).iterator %}
{{ pimcore_image('image',
{
'thumbnail': 'gallery',
'reload': 'true',
'class':'w-full',
'pictureAttributes': {class: 'w-full'}
}
) }}
{% endfor %}
{% else %}
<div class=\"!-mx-5 md:!mx-auto md:rounded-md overflow-hidden swiper slideshow-swiper max-h-60 md:max-h-full\">
<div class=\" swiper-wrapper\">
{# Load the manually selectable gallery items #}
{% for i in pimcore_block('gallery', {'reload': true, 'limit' : 4}).iterator %}
<div class=\"swiper-slide\">
{{ pimcore_image('image',
{
'thumbnail': 'gallery',
'reload': 'true',
'pictureAttributes': {class: 'w-full block aspect-[4/3] rounded-md '},
'imgAttributes': {class: 'w-full h-full object-cover object-center max-h-60 md:max-h-full'}
}
) }}
</div>
{% endfor %}
{# If a default set of gallery items is available and no manual gallery items are added
iterate through the supplied defaultGalleryItems. #}
{% if pimcore_block('gallery').isEmpty()
and defaultGalleryItems is defined %}
{% for image in defaultGalleryItems %}
<div class=\"swiper-slide\">
{{ image.thumbnail('gallery').html({
'pictureAttributes': {
class: 'w-full block aspect-[4/3] rounded-md'
},
'imgAttributes': {
class: 'w-full h-full object-cover object-center max-h-60 md:max-h-full'
}
})|raw }}
</div>
{% endfor %}
{% endif %}
</div>
<div class=\"absolute z-20 flex gap-2 bottom-4 right-4\">
<div class=\"custom-swiper-button-prev\">
<svg class=\"w-4 h-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 12\">
<path fill=\"#FFF\" fill-rule=\"evenodd\"
d=\"M15.106 6.883H3.396l3.218 3.218a.885.885 0 1 1-1.252 1.252L.707 6.695a1 1 0 0 1 0-1.414L5.362.626a.885.885 0 1 1 1.252 1.252L3.396 5.095h11.71a.894.894 0 0 1 0 1.788Z\"/>
</svg>
</div>
<div class=\"custom-swiper-button-next\">
<svg class=\"w-4 h-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 12\">
<path fill=\"#FFF\" fill-rule=\"evenodd\"
d=\"M.894 5.095h11.71L9.386 1.878A.885.885 0 1 1 10.638.626l4.655 4.656a1 1 0 0 1 0 1.414l-4.655 4.656A.885.885 0 1 1 9.386 10.1l3.218-3.217H.894a.894.894 0 0 1 0-1.788Z\"/>
</svg>
</div>
</div>
</div>
{# Do not iterate gallery block twice in editmode as this breaks pimcore admin editmode.
Pimcore will try and create two gallery items and this results in a name conflict. #}
{% if not editmode %}
<div class=\"absolute z-20 hidden gap-2 ml-4 -mt-16 md:inline-flex\">
{% if pimcore_block('gallery').getCount() %}
{% for gallery in pimcore_block('gallery').iterator %}
<div data-id=\"{{ gallery-1 ?? \"0\" }}\" class=\"cursor-pointer swiper-thumbnail\">
{{ pimcore_image('image',
{
'thumbnail': 'gallery-navigation',
'pictureAttributes': {
class: 'overflow-hidden inline-block w-10 h-10 rounded-md md:w-20 md:h-20 aspect-square'
},
'imgAttributes': {
class: 'w-full h-full object-cover object-center'
}
}
) }}
</div>
{% endfor %}
{% endif %}
{% if pimcore_block('gallery').isEmpty()
and defaultGalleryItems is defined %}
{% for image in defaultGalleryItems %}
<div data-id=\"{{ loop.index0 }}\" class=\"cursor-pointer swiper-thumbnail\">
{{ image.thumbnail('gallery-navigation').html(
{
'pictureAttributes': {
class: 'overflow-hidden inline-block w-10 h-10 rounded-md md:w-20 md:h-20 aspect-square'
},
'imgAttributes': {
class: 'w-full h-full object-cover object-center'
}
}
)|raw }}
</div>
{% endfor %}
{% endif %}
</div>
{% endif %}
{% endif %}
", "areas/content-brick/partials/_gallery.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/content-brick/partials/_gallery.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 3, "for" => 8];
static $filters = ["raw" => 14];
static $functions = [];
try {
$this->sandbox->checkSecurity(
['extends', 'for'],
['raw'],
[],
$this->source
);
} 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;
}
}
}