var/cache/dev/twig/dd/dd05250b98abaeeeb6f94d61279e81de.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/downloads/view.html.twig */
  14. class __TwigTemplate_1f6298459da34c3193dbb1793fe2c658 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/downloads/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/downloads/view.html.twig"));
  38.         $this->parent $this->loadTemplate("areas_shared/settings.html.twig""areas/downloads/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.         if (twig_get_attribute($this->env$this->source, (isset($context["paddingBottom"]) || array_key_exists("paddingBottom"$context) ? $context["paddingBottom"] : (function () { throw new RuntimeError('Variable "paddingBottom" does not exist.'12$this->source); })()), "isEmpty", [], "method"falsefalsefalse12)) {
  71.             // line 13
  72.             echo "        ";
  73.             twig_get_attribute($this->env$this->source, (isset($context["paddingBottom"]) || array_key_exists("paddingBottom"$context) ? $context["paddingBottom"] : (function () { throw new RuntimeError('Variable "paddingBottom" does not exist.'13$this->source); })()), "setDataFromResource", [=> "no-padding-bottom"], "method"falsefalsefalse13);
  74.             // line 14
  75.             echo "    ";
  76.         }
  77.         // line 15
  78.         echo "
  79.     ";
  80.         // line 17
  81.         echo "    ";
  82.         if (twig_get_attribute($this->env$this->source, (isset($context["backgroundColor"]) || array_key_exists("backgroundColor"$context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.'17$this->source); })()), "isEmpty", [], "method"falsefalsefalse17)) {
  83.             // line 18
  84.             echo "        ";
  85.             twig_get_attribute($this->env$this->source, (isset($context["backgroundColor"]) || array_key_exists("backgroundColor"$context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.'18$this->source); })()), "setDataFromResource", [=> "background-white"], "method"falsefalsefalse18);
  86.             // line 19
  87.             echo "    ";
  88.         }
  89.         // line 20
  90.         echo "
  91.     ";
  92.         // line 22
  93.         echo "    ";
  94.         $context["title"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title", ["placeholder" => "Titel"]);
  95.         // line 25
  96.         echo "
  97.     ";
  98.         // line 27
  99.         echo "    ";
  100.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'27$this->source); })())) {
  101.             // line 28
  102.             echo "        <div class=\"editmode\">
  103.             <div class=\"accordion-container\">
  104.                 <div class=\"accordion-button\">
  105.                     <span class=\"accordion-button-text\">Downloads</span>
  106.                     ";
  107.             // line 32
  108.             echo twig_include($this->env$context"svg/editmode/setting.html.twig");
  109.             echo "
  110.                 </div>
  111.                 <div class=\"panel\">
  112.                     <div class=\"settings-container\">
  113.                         
  114.                         <div class=\"setting input\">
  115.                             <label>Anker:</label>
  116.                             ";
  117.             // line 39
  118.             echo (isset($context["anchor"]) || array_key_exists("anchor"$context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.'39$this->source); })());
  119.             echo "
  120.                         </div>
  121.                         <div class=\"setting select\">
  122.                             <label>Abstand unten:</label>
  123.                             ";
  124.             // line 44
  125.             echo (isset($context["marginBottom"]) || array_key_exists("marginBottom"$context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.'44$this->source); })());
  126.             echo "
  127.                         </div>
  128.                     </div>
  129.                 </div>
  130.             </div>
  131.         </div>
  132.     ";
  133.         }
  134.         // line 52
  135.         echo "
  136.     <div class=\"downloads-brick brick-container ";
  137.         // line 53
  138.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["backgroundColor"]) || array_key_exists("backgroundColor"$context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.'53$this->source); })()), "data", [], "any"falsefalsefalse53), "html"nulltrue);
  139.         echo " ";
  140.         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.'53$this->source); })()), "data", [], "any"falsefalsefalse53), "html"nulltrue);
  141.         echo "\">
  142.         ";
  143.         // line 56
  144.         echo "        ";
  145.         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.'56$this->source); })()), "data", [], "any"falsefalsefalse56)) {
  146.             // line 57
  147.             echo "            <div class=\"anchor\" id=\"";
  148.             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.'57$this->source); })()), "data", [], "any"falsefalsefalse57), "html"nulltrue);
  149.             echo "\"></div>
  150.         ";
  151.         }
  152.         // line 59
  153.         echo "
  154.         <div class=\"container-1420\">
  155.             <div class=\"content\">
  156.                 
  157.                 ";
  158.         // line 64
  159.         echo "                ";
  160.         if (((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'64$this->source); })()) || twig_get_attribute($this->env$this->source, (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'64$this->source); })()), "data", [], "any"falsefalsefalse64))) {
  161.             // line 65
  162.             echo "                    <div class=\"title\">
  163.                         <p>
  164.                             ";
  165.             // line 67
  166.             echo (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'67$this->source); })());
  167.             echo "
  168.                         </p>
  169.                     </div>
  170.                 ";
  171.         }
  172.         // line 71
  173.         echo "
  174.                 ";
  175.         // line 73
  176.         echo "                <div class=\"downloads\">
  177.                     ";
  178.         // line 75
  179.         $context['_parent'] = $context;
  180.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""contentblock"), "iterator", [], "any"falsefalsefalse75));
  181.         $context['loop'] = [
  182.           'parent' => $context['_parent'],
  183.           'index0' => 0,
  184.           'index'  => 1,
  185.           'first'  => true,
  186.         ];
  187.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  188.             $length count($context['_seq']);
  189.             $context['loop']['revindex0'] = $length 1;
  190.             $context['loop']['revindex'] = $length;
  191.             $context['loop']['length'] = $length;
  192.             $context['loop']['last'] = === $length;
  193.         }
  194.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  195.             // line 76
  196.             echo "
  197.                         ";
  198.             // line 78
  199.             echo "                        ";
  200.             $context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""link");
  201.             // line 79
  202.             echo "                        
  203.                         ";
  204.             // line 80
  205.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'80$this->source); })())) {
  206.                 // line 81
  207.                 echo "                            <div class=\"download-editmode\">
  208.                                 ";
  209.                 // line 82
  210.                 echo (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'82$this->source); })());
  211.                 echo "
  212.                             </div>
  213.                         ";
  214.             } elseif (twig_get_attribute($this->env$this->source,             // line 84
  215. (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'84$this->source); })()), "href", [], "method"falsefalsefalse84)) {
  216.                 // line 85
  217.                 echo "                            ";
  218.                 if (twig_get_attribute($this->env$this->source, (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'85$this->source); })()), "target", [], "any"falsefalsefalse85)) {
  219.                     echo "    
  220.                                 ";
  221.                     // line 86
  222.                     $context["target"] = (("target=\"" twig_get_attribute($this->env$this->source, (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'86$this->source); })()), "target", [], "any"falsefalsefalse86)) . "\"");
  223.                     // line 87
  224.                     echo "                            ";
  225.                 } else {
  226.                     // line 88
  227.                     echo "                                ";
  228.                     $context["target"] = "";
  229.                     // line 89
  230.                     echo "                            ";
  231.                 }
  232.                 // line 90
  233.                 echo "
  234.                             <div class=\"download\">
  235.                                 <a class=\"link\" href=\"";
  236.                 // line 92
  237.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'92$this->source); })()), "href", [], "any"falsefalsefalse92), "html"nulltrue);
  238.                 echo "\" ";
  239.                 echo (isset($context["target"]) || array_key_exists("target"$context) ? $context["target"] : (function () { throw new RuntimeError('Variable "target" does not exist.'92$this->source); })());
  240.                 echo ">
  241.                                     ";
  242.                 // line 93
  243.                 echo twig_include($this->env$context"svg/download/download.svg");
  244.                 echo "
  245.                                     <span>";
  246.                 // line 94
  247.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'94$this->source); })()), "text", [], "any"falsefalsefalse94), "html"nulltrue);
  248.                 echo "</span>
  249.                                 </a>
  250.                             </div>
  251.                         ";
  252.             }
  253.             // line 98
  254.             echo "
  255.                     ";
  256.             ++$context['loop']['index0'];
  257.             ++$context['loop']['index'];
  258.             $context['loop']['first'] = false;
  259.             if (isset($context['loop']['length'])) {
  260.                 --$context['loop']['revindex0'];
  261.                 --$context['loop']['revindex'];
  262.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  263.             }
  264.         }
  265.         $_parent $context['_parent'];
  266.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  267.         $context array_intersect_key($context$_parent) + $_parent;
  268.         // line 100
  269.         echo "
  270.                 </div>
  271.             </div>
  272.         </div>
  273.     </div>
  274. ";
  275.         
  276.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  277.         
  278.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  279.     }
  280.     public function getTemplateName()
  281.     {
  282.         return "areas/downloads/view.html.twig";
  283.     }
  284.     public function isTraitable()
  285.     {
  286.         return false;
  287.     }
  288.     public function getDebugInfo()
  289.     {
  290.         return array (  287 => 100,  272 => 98,  265 => 94,  261 => 93,  255 => 92,  251 => 90,  248 => 89,  245 => 88,  242 => 87,  240 => 86,  235 => 85,  233 => 84,  228 => 82,  225 => 81,  223 => 80,  220 => 79,  217 => 78,  214 => 76,  197 => 75,  193 => 73,  190 => 71,  183 => 67,  179 => 65,  176 => 64,  170 => 59,  164 => 57,  161 => 56,  154 => 53,  151 => 52,  140 => 44,  132 => 39,  122 => 32,  116 => 28,  113 => 27,  110 => 25,  107 => 22,  104 => 20,  101 => 19,  98 => 18,  95 => 17,  92 => 15,  89 => 14,  86 => 13,  83 => 12,  80 => 10,  77 => 9,  74 => 8,  71 => 7,  68 => 5,  58 => 4,  35 => 2,);
  291.     }
  292.     public function getSourceContext()
  293.     {
  294.         return new Source("{# settings #}
  295. {% extends ('areas_shared/settings.html.twig') %}
  296. {% block content %}
  297.     {# default margin #}
  298.     {% if marginBottom.isEmpty() %}
  299.         {% do marginBottom.setDataFromResource('full-margin-bottom') %}
  300.     {% endif %}
  301.     {# default padding #}
  302.     {% if paddingBottom.isEmpty() %}
  303.         {% do paddingBottom.setDataFromResource('no-padding-bottom') %}
  304.     {% endif %}
  305.     {# default background color #}
  306.     {% if backgroundColor.isEmpty() %}
  307.         {% do backgroundColor.setDataFromResource('background-white') %}
  308.     {% endif %}
  309.     {# title #}
  310.     {% set title = pimcore_input('title', {
  311.         'placeholder': 'Titel'
  312.     }) %}
  313.     {# editmode #}
  314.     {% if editmode %}
  315.         <div class=\"editmode\">
  316.             <div class=\"accordion-container\">
  317.                 <div class=\"accordion-button\">
  318.                     <span class=\"accordion-button-text\">Downloads</span>
  319.                     {{ include('svg/editmode/setting.html.twig') }}
  320.                 </div>
  321.                 <div class=\"panel\">
  322.                     <div class=\"settings-container\">
  323.                         
  324.                         <div class=\"setting input\">
  325.                             <label>Anker:</label>
  326.                             {{ anchor|raw }}
  327.                         </div>
  328.                         <div class=\"setting select\">
  329.                             <label>Abstand unten:</label>
  330.                             {{ marginBottom|raw }}
  331.                         </div>
  332.                     </div>
  333.                 </div>
  334.             </div>
  335.         </div>
  336.     {% endif %}
  337.     <div class=\"downloads-brick brick-container {{ backgroundColor.data }} {{ marginBottom.data }}\">
  338.         {# anchor #}
  339.         {% if anchor.data %}
  340.             <div class=\"anchor\" id=\"{{ anchor.data }}\"></div>
  341.         {% endif %}
  342.         <div class=\"container-1420\">
  343.             <div class=\"content\">
  344.                 
  345.                 {# title #}
  346.                 {% if editmode or title.data %}
  347.                     <div class=\"title\">
  348.                         <p>
  349.                             {{ title|raw }}
  350.                         </p>
  351.                     </div>
  352.                 {% endif %}
  353.                 {# downloads #}
  354.                 <div class=\"downloads\">
  355.                     {% for i in pimcore_block('contentblock').iterator %}
  356.                         {# link #}
  357.                         {% set link = pimcore_link('link') %}
  358.                         
  359.                         {% if editmode %}
  360.                             <div class=\"download-editmode\">
  361.                                 {{ link|raw }}
  362.                             </div>
  363.                         {% elseif link.href() %}
  364.                             {% if link.target %}    
  365.                                 {% set target = 'target=\"' ~ link.target ~ '\"' %}
  366.                             {% else %}
  367.                                 {% set target = '' %}
  368.                             {% endif %}
  369.                             <div class=\"download\">
  370.                                 <a class=\"link\" href=\"{{ link.href }}\" {{ target|raw }}>
  371.                                     {{ include('svg/download/download.svg') }}
  372.                                     <span>{{ link.text }}</span>
  373.                                 </a>
  374.                             </div>
  375.                         {% endif %}
  376.                     {% endfor %}
  377.                 </div>
  378.             </div>
  379.         </div>
  380.     </div>
  381. {% endblock %}""areas/downloads/view.html.twig""/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/areas/downloads/view.html.twig");
  382.     }
  383. }