var/cache/dev/twig/51/516ea7b52a5b91e93ebb1f94c4294212.php line 38

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* areas/galerie/view.html.twig */
  14. class __TwigTemplate_c3ce17187c8e973167197594cf7c23dc extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 2
  29.         return "areas_shared/settings.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/galerie/view.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/galerie/view.html.twig"));
  38.         $this->parent $this->loadTemplate("areas_shared/settings.html.twig""areas/galerie/view.html.twig"2);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 4
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 5
  54.         echo "
  55.     ";
  56.         // line 7
  57.         echo "    ";
  58.         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"falsefalsefalse7)) {
  59.             // line 8
  60.             echo "        ";
  61.             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", [=> "full-margin-bottom"], "method"falsefalsefalse8);
  62.             // line 9
  63.             echo "    ";
  64.         }
  65.         // line 10
  66.         echo "
  67.     ";
  68.         // line 12
  69.         echo "    ";
  70.         $context["galleries"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""galleries", ["types" => [=> "object"], "subtypes" => ["object" => [=> "object"]], "classes" => [=> "Galerie"], "reload" => true]);
  71.         // line 26
  72.         echo "
  73.     ";
  74.         // line 28
  75.         echo "    ";
  76.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'28$this->source); })())) {
  77.             // line 29
  78.             echo "        <div class=\"editmode\">
  79.             <div class=\"accordion-container\">
  80.                 <div class=\"accordion-button\">
  81.                     <span class=\"accordion-button-text\">Galerie</span>
  82.                     ";
  83.             // line 33
  84.             echo twig_include($this->env$context"svg/editmode/setting.html.twig");
  85.             echo "
  86.                 </div>
  87.                 <div class=\"panel\">
  88.                     <div class=\"settings-container\">
  89.                         
  90.                         <div class=\"setting input\">
  91.                             <label>Anker:</label>
  92.                             ";
  93.             // line 40
  94.             echo (isset($context["anchor"]) || array_key_exists("anchor"$context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.'40$this->source); })());
  95.             echo "
  96.                         </div>
  97.                         <div class=\"setting select\">
  98.                             <label>Abstand unten:</label>
  99.                             ";
  100.             // line 45
  101.             echo (isset($context["marginBottom"]) || array_key_exists("marginBottom"$context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.'45$this->source); })());
  102.             echo "
  103.                         </div>
  104.                         <div class=\"setting relation\">
  105.                             <label>Galerien</label>
  106.                             ";
  107.             // line 50
  108.             echo (isset($context["galleries"]) || array_key_exists("galleries"$context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.'50$this->source); })());
  109.             echo "
  110.                         </div>
  111.                     </div>
  112.                 </div>
  113.             </div>
  114.         </div>
  115.     ";
  116.         }
  117.         // line 58
  118.         echo "
  119.     <div class=\"galerie-brick brick-container ";
  120.         // line 59
  121.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse59), "html"nulltrue);
  122.         echo "\">
  123.         ";
  124.         // line 62
  125.         echo "        ";
  126.         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"falsefalsefalse62)) {
  127.             // line 63
  128.             echo "            <div class=\"anchor\" id=\"";
  129.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse63), "html"nulltrue);
  130.             echo "\"></div>
  131.         ";
  132.         }
  133.         // line 65
  134.         echo "
  135.         <div class=\"container-1420\">
  136.             ";
  137.         // line 69
  138.         echo "            <div class=\"toggle-gallery-filter\" id=\"toggleGalleryFilter\">
  139.                 <div class=\"icon\">
  140.                     <div class=\"vertical\">
  141.                         ";
  142.         // line 73
  143.         echo twig_include($this->env$context"svg/akkordeon/akkordeon-vertical-icon.html.twig");
  144.         echo "
  145.                     </div>
  146.                     
  147.                     <div class=\"horizontal\">
  148.                         ";
  149.         // line 77
  150.         echo twig_include($this->env$context"svg/akkordeon/akkordeon-horizontal-icon.html.twig");
  151.         echo "
  152.                     </div>
  153.                 </div>
  154.                 <span>";
  155.         // line 81
  156.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("gallery.filter.mobile-filter"), "html"nulltrue);
  157.         echo "</span>
  158.                 
  159.             </div>
  160.             ";
  161.         // line 86
  162.         echo "            <div class=\"filter-container\">
  163.                 <div class=\"filters hidden\" id=\"galleryFilters\">
  164.                     ";
  165.         // line 90
  166.         echo "                    <div class=\"gallery-filter active show-all\">
  167.                         <span>";
  168.         // line 91
  169.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("gallery.filter.all"), "html"nulltrue);
  170.         echo "</span>
  171.                     </div>
  172.                     ";
  173.         // line 95
  174.         echo "                    ";
  175.         $context['_parent'] = $context;
  176.         $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); })()));
  177.         foreach ($context['_seq'] as $context["_key"] => $context["gallery"]) {
  178.             // line 96
  179.             echo "                        ";
  180.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["gallery"], "images", [], "any"falsefalsefalse96)) > 0)) {
  181.                 // line 97
  182.                 echo "
  183.                             <div class=\"gallery-filter\" data-id=\"";
  184.                 // line 98
  185.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["gallery"], "id", [], "any"falsefalsefalse98), "html"nulltrue);
  186.                 echo "\">
  187.                                 <span>";
  188.                 // line 99
  189.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["gallery"], "title", [], "any"falsefalsefalse99), "html"nulltrue);
  190.                 echo "</span>
  191.                             </div>
  192.                         ";
  193.             }
  194.             // line 103
  195.             echo "                    ";
  196.         }
  197.         $_parent $context['_parent'];
  198.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['gallery'], $context['_parent'], $context['loop']);
  199.         $context array_intersect_key($context$_parent) + $_parent;
  200.         // line 104
  201.         echo "                    
  202.                 </div>
  203.             </div>
  204.             ";
  205.         // line 109
  206.         echo "            <div class=\"galleries masonry-grid\">
  207.                 ";
  208.         // line 112
  209.         echo "                <div class=\"grid-sizer\"></div>
  210.                 ";
  211.         // line 114
  212.         $context['_parent'] = $context;
  213.         $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); })()));
  214.         foreach ($context['_seq'] as $context["_key"] => $context["gallery"]) {
  215.             // line 115
  216.             echo "                    ";
  217.             $context['_parent'] = $context;
  218.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["gallery"], "images", [], "any"falsefalsefalse115));
  219.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  220.                 // line 116
  221.                 echo "
  222.                         <div class=\"gallery-image active\" data-filter=\"";
  223.                 // line 117
  224.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["gallery"], "id", [], "any"falsefalsefalse117), "html"nulltrue);
  225.                 echo "\">
  226.                             <a href=\"";
  227.                 // line 118
  228.                 echo twig_escape_filter($this->env$context["image"], "html"nulltrue);
  229.                 echo "\" class=\"glightbox\" data-gallery=\"";
  230.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\Extension\ToUrlExtension']->toUrl(twig_get_attribute($this->env$this->source$context["gallery"], "title", [], "any"falsefalsefalse118)), "html"nulltrue);
  231.                 echo "\" style=\"display: block;\">
  232.                                 ";
  233.                 // line 121
  234.                 echo "
  235.                                 ";
  236.                 // line 122
  237.                 echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["image"], "thumbnail", [=> "galerie"], "method"falsefalsefalse122), "html", [=> ["disableWidthHeightAttributes" => true"imgAttributes" => ["loading" => "lazy"]]], "method"falsefalsefalse122);
  238.                 // line 127
  239.                 echo "
  240.                             </a>
  241.                         </div>
  242.                     ";
  243.             }
  244.             $_parent $context['_parent'];
  245.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  246.             $context array_intersect_key($context$_parent) + $_parent;
  247.             // line 133
  248.             echo "                ";
  249.         }
  250.         $_parent $context['_parent'];
  251.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['gallery'], $context['_parent'], $context['loop']);
  252.         $context array_intersect_key($context$_parent) + $_parent;
  253.         // line 134
  254.         echo "
  255.             </div>
  256.         </div>
  257.     </div>
  258. ";
  259.         
  260.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  261.         
  262.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  263.     }
  264.     public function getTemplateName()
  265.     {
  266.         return "areas/galerie/view.html.twig";
  267.     }
  268.     public function isTraitable()
  269.     {
  270.         return false;
  271.     }
  272.     public function getDebugInfo()
  273.     {
  274.         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,);
  275.     }
  276.     public function getSourceContext()
  277.     {
  278.         return new Source("{# settings #}
  279. {% extends ('areas_shared/settings.html.twig') %}
  280. {% block content %}
  281.     {# default margin #}
  282.     {% if marginBottom.isEmpty() %}
  283.         {% do marginBottom.setDataFromResource('full-margin-bottom') %}
  284.     {% endif %}
  285.     {# galleries #}
  286.     {% set galleries = pimcore_relations('galleries', {
  287.         'types': [
  288.             'object'
  289.         ],
  290.         'subtypes': {
  291.             'object': [
  292.                 'object'
  293.             ]
  294.         },
  295.         'classes': [
  296.             'Galerie'
  297.         ],
  298.         'reload': true
  299.     }) %}
  300.     {# editmode #}
  301.     {% if editmode %}
  302.         <div class=\"editmode\">
  303.             <div class=\"accordion-container\">
  304.                 <div class=\"accordion-button\">
  305.                     <span class=\"accordion-button-text\">Galerie</span>
  306.                     {{ include('svg/editmode/setting.html.twig') }}
  307.                 </div>
  308.                 <div class=\"panel\">
  309.                     <div class=\"settings-container\">
  310.                         
  311.                         <div class=\"setting input\">
  312.                             <label>Anker:</label>
  313.                             {{ anchor|raw }}
  314.                         </div>
  315.                         <div class=\"setting select\">
  316.                             <label>Abstand unten:</label>
  317.                             {{ marginBottom|raw }}
  318.                         </div>
  319.                         <div class=\"setting relation\">
  320.                             <label>Galerien</label>
  321.                             {{ galleries|raw }}
  322.                         </div>
  323.                     </div>
  324.                 </div>
  325.             </div>
  326.         </div>
  327.     {% endif %}
  328.     <div class=\"galerie-brick brick-container {{ marginBottom.data }}\">
  329.         {# anchor #}
  330.         {% if anchor.data %}
  331.             <div class=\"anchor\" id=\"{{ anchor.data }}\"></div>
  332.         {% endif %}
  333.         <div class=\"container-1420\">
  334.             {# mobile toggle filter #}
  335.             <div class=\"toggle-gallery-filter\" id=\"toggleGalleryFilter\">
  336.                 <div class=\"icon\">
  337.                     <div class=\"vertical\">
  338.                         {{ include('svg/akkordeon/akkordeon-vertical-icon.html.twig') }}
  339.                     </div>
  340.                     
  341.                     <div class=\"horizontal\">
  342.                         {{ include('svg/akkordeon/akkordeon-horizontal-icon.html.twig') }}
  343.                     </div>
  344.                 </div>
  345.                 <span>{{ 'gallery.filter.mobile-filter'|trans }}</span>
  346.                 
  347.             </div>
  348.             {# filters #}
  349.             <div class=\"filter-container\">
  350.                 <div class=\"filters hidden\" id=\"galleryFilters\">
  351.                     {# all #}
  352.                     <div class=\"gallery-filter active show-all\">
  353.                         <span>{{ 'gallery.filter.all'|trans }}</span>
  354.                     </div>
  355.                     {# galleries with images #}
  356.                     {% for gallery in galleries %}
  357.                         {% if gallery.images|length > 0 %}
  358.                             <div class=\"gallery-filter\" data-id=\"{{ gallery.id }}\">
  359.                                 <span>{{ gallery.title }}</span>
  360.                             </div>
  361.                         {% endif %}
  362.                     {% endfor %}
  363.                     
  364.                 </div>
  365.             </div>
  366.             {# galleries #}
  367.             <div class=\"galleries masonry-grid\">
  368.                 {# columns #}
  369.                 <div class=\"grid-sizer\"></div>
  370.                 {% for gallery in galleries %}
  371.                     {% for image in gallery.images %}
  372.                         <div class=\"gallery-image active\" data-filter=\"{{ gallery.id }}\">
  373.                             <a href=\"{{ image }}\" class=\"glightbox\" data-gallery=\"{{ toUrl(gallery.title) }}\" style=\"display: block;\">
  374.                                 {# <img src=\"{{ image.thumbnail('galerie') }}\"> #}
  375.                                 {{ image.thumbnail('galerie').html({
  376.                                     'disableWidthHeightAttributes': true,
  377.                                     'imgAttributes': {
  378.                                         'loading': 'lazy'
  379.                                     }
  380.                                 })|raw }}
  381.                             </a>
  382.                         </div>
  383.                     {% endfor %}
  384.                 {% endfor %}
  385.             </div>
  386.         </div>
  387.     </div>
  388. {% endblock %}""areas/galerie/view.html.twig""/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/areas/galerie/view.html.twig");
  389.     }
  390. }