<?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;
/* areas/galerie/view.html.twig */
class __TwigTemplate_c3ce17187c8e973167197594cf7c23dc extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "areas_shared/settings.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", "areas/galerie/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/galerie/view.html.twig"));
$this->parent = $this->loadTemplate("areas_shared/settings.html.twig", "areas/galerie/view.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 5
echo "
";
// line 7
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 7, $this->source); })()), "isEmpty", [], "method", false, false, false, 7)) {
// line 8
echo " ";
twig_get_attribute($this->env, $this->source, (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 8, $this->source); })()), "setDataFromResource", [0 => "full-margin-bottom"], "method", false, false, false, 8);
// line 9
echo " ";
}
// line 10
echo "
";
// line 12
echo " ";
$context["galleries"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "galleries", ["types" => [0 => "object"], "subtypes" => ["object" => [0 => "object"]], "classes" => [0 => "Galerie"], "reload" => true]);
// line 26
echo "
";
// line 28
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 28, $this->source); })())) {
// line 29
echo " <div class=\"editmode\">
<div class=\"accordion-container\">
<div class=\"accordion-button\">
<span class=\"accordion-button-text\">Galerie</span>
";
// line 33
echo twig_include($this->env, $context, "svg/editmode/setting.html.twig");
echo "
</div>
<div class=\"panel\">
<div class=\"settings-container\">
<div class=\"setting input\">
<label>Anker:</label>
";
// line 40
echo (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 40, $this->source); })());
echo "
</div>
<div class=\"setting select\">
<label>Abstand unten:</label>
";
// line 45
echo (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 45, $this->source); })());
echo "
</div>
<div class=\"setting relation\">
<label>Galerien</label>
";
// line 50
echo (isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 50, $this->source); })());
echo "
</div>
</div>
</div>
</div>
</div>
";
}
// line 58
echo "
<div class=\"galerie-brick brick-container ";
// line 59
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 59, $this->source); })()), "data", [], "any", false, false, false, 59), "html", null, true);
echo "\">
";
// line 62
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 62, $this->source); })()), "data", [], "any", false, false, false, 62)) {
// line 63
echo " <div class=\"anchor\" id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 63, $this->source); })()), "data", [], "any", false, false, false, 63), "html", null, true);
echo "\"></div>
";
}
// line 65
echo "
<div class=\"container-1420\">
";
// line 69
echo " <div class=\"toggle-gallery-filter\" id=\"toggleGalleryFilter\">
<div class=\"icon\">
<div class=\"vertical\">
";
// line 73
echo twig_include($this->env, $context, "svg/akkordeon/akkordeon-vertical-icon.html.twig");
echo "
</div>
<div class=\"horizontal\">
";
// line 77
echo twig_include($this->env, $context, "svg/akkordeon/akkordeon-horizontal-icon.html.twig");
echo "
</div>
</div>
<span>";
// line 81
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("gallery.filter.mobile-filter"), "html", null, true);
echo "</span>
</div>
";
// line 86
echo " <div class=\"filter-container\">
<div class=\"filters hidden\" id=\"galleryFilters\">
";
// line 90
echo " <div class=\"gallery-filter active show-all\">
<span>";
// line 91
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("gallery.filter.all"), "html", null, true);
echo "</span>
</div>
";
// line 95
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 95, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["gallery"]) {
// line 96
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["gallery"], "images", [], "any", false, false, false, 96)) > 0)) {
// line 97
echo "
<div class=\"gallery-filter\" data-id=\"";
// line 98
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["gallery"], "id", [], "any", false, false, false, 98), "html", null, true);
echo "\">
<span>";
// line 99
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["gallery"], "title", [], "any", false, false, false, 99), "html", null, true);
echo "</span>
</div>
";
}
// line 103
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['gallery'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 104
echo "
</div>
</div>
";
// line 109
echo " <div class=\"galleries masonry-grid\">
";
// line 112
echo " <div class=\"grid-sizer\"></div>
";
// line 114
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 114, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["gallery"]) {
// line 115
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["gallery"], "images", [], "any", false, false, false, 115));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 116
echo "
<div class=\"gallery-image active\" data-filter=\"";
// line 117
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["gallery"], "id", [], "any", false, false, false, 117), "html", null, true);
echo "\">
<a href=\"";
// line 118
echo twig_escape_filter($this->env, $context["image"], "html", null, true);
echo "\" class=\"glightbox\" data-gallery=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\ToUrlExtension']->toUrl(twig_get_attribute($this->env, $this->source, $context["gallery"], "title", [], "any", false, false, false, 118)), "html", null, true);
echo "\" style=\"display: block;\">
";
// line 121
echo "
";
// line 122
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "thumbnail", [0 => "galerie"], "method", false, false, false, 122), "html", [0 => ["disableWidthHeightAttributes" => true, "imgAttributes" => ["loading" => "lazy"]]], "method", false, false, false, 122);
// line 127
echo "
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 133
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['gallery'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 134
echo "
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "areas/galerie/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 285 => 134, 279 => 133, 268 => 127, 266 => 122, 263 => 121, 256 => 118, 252 => 117, 249 => 116, 244 => 115, 240 => 114, 236 => 112, 232 => 109, 226 => 104, 220 => 103, 213 => 99, 209 => 98, 206 => 97, 203 => 96, 198 => 95, 192 => 91, 189 => 90, 184 => 86, 177 => 81, 170 => 77, 163 => 73, 157 => 69, 152 => 65, 146 => 63, 143 => 62, 138 => 59, 135 => 58, 124 => 50, 116 => 45, 108 => 40, 98 => 33, 92 => 29, 89 => 28, 86 => 26, 83 => 12, 80 => 10, 77 => 9, 74 => 8, 71 => 7, 68 => 5, 58 => 4, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{# settings #}
{% extends ('areas_shared/settings.html.twig') %}
{% block content %}
{# default margin #}
{% if marginBottom.isEmpty() %}
{% do marginBottom.setDataFromResource('full-margin-bottom') %}
{% endif %}
{# galleries #}
{% set galleries = pimcore_relations('galleries', {
'types': [
'object'
],
'subtypes': {
'object': [
'object'
]
},
'classes': [
'Galerie'
],
'reload': true
}) %}
{# editmode #}
{% if editmode %}
<div class=\"editmode\">
<div class=\"accordion-container\">
<div class=\"accordion-button\">
<span class=\"accordion-button-text\">Galerie</span>
{{ include('svg/editmode/setting.html.twig') }}
</div>
<div class=\"panel\">
<div class=\"settings-container\">
<div class=\"setting input\">
<label>Anker:</label>
{{ anchor|raw }}
</div>
<div class=\"setting select\">
<label>Abstand unten:</label>
{{ marginBottom|raw }}
</div>
<div class=\"setting relation\">
<label>Galerien</label>
{{ galleries|raw }}
</div>
</div>
</div>
</div>
</div>
{% endif %}
<div class=\"galerie-brick brick-container {{ marginBottom.data }}\">
{# anchor #}
{% if anchor.data %}
<div class=\"anchor\" id=\"{{ anchor.data }}\"></div>
{% endif %}
<div class=\"container-1420\">
{# mobile toggle filter #}
<div class=\"toggle-gallery-filter\" id=\"toggleGalleryFilter\">
<div class=\"icon\">
<div class=\"vertical\">
{{ include('svg/akkordeon/akkordeon-vertical-icon.html.twig') }}
</div>
<div class=\"horizontal\">
{{ include('svg/akkordeon/akkordeon-horizontal-icon.html.twig') }}
</div>
</div>
<span>{{ 'gallery.filter.mobile-filter'|trans }}</span>
</div>
{# filters #}
<div class=\"filter-container\">
<div class=\"filters hidden\" id=\"galleryFilters\">
{# all #}
<div class=\"gallery-filter active show-all\">
<span>{{ 'gallery.filter.all'|trans }}</span>
</div>
{# galleries with images #}
{% for gallery in galleries %}
{% if gallery.images|length > 0 %}
<div class=\"gallery-filter\" data-id=\"{{ gallery.id }}\">
<span>{{ gallery.title }}</span>
</div>
{% endif %}
{% endfor %}
</div>
</div>
{# galleries #}
<div class=\"galleries masonry-grid\">
{# columns #}
<div class=\"grid-sizer\"></div>
{% for gallery in galleries %}
{% for image in gallery.images %}
<div class=\"gallery-image active\" data-filter=\"{{ gallery.id }}\">
<a href=\"{{ image }}\" class=\"glightbox\" data-gallery=\"{{ toUrl(gallery.title) }}\" style=\"display: block;\">
{# <img src=\"{{ image.thumbnail('galerie') }}\"> #}
{{ image.thumbnail('galerie').html({
'disableWidthHeightAttributes': true,
'imgAttributes': {
'loading': 'lazy'
}
})|raw }}
</a>
</div>
{% endfor %}
{% endfor %}
</div>
</div>
</div>
{% endblock %}", "areas/galerie/view.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/areas/galerie/view.html.twig");
}
}