var/cache/dev/twig/eb/eb1c231eb2a29a95b24d2da98d1ee8cf.php line 58

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/hero/view.html.twig */
  14. class __TwigTemplate_2e6593d37ead73119fc62c67b396b1df 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/hero/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/hero/view.html.twig"));
  38.         $this->parent = $this->loadTemplate("areas_shared/settings.html.twig", "areas/hero/view.html.twig", 2);
  39.         $this->parent->display($context, array_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", false, false, false, 7)) {
  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", [0 => "no-margin-bottom"], "method", false, false, false, 8);
  62.             // line 9
  63.             echo "    ";
  64.         }
  65.         // line 10
  66.         echo "
  67.     ";
  68.         // line 12
  69.         echo "    ";
  70.         $context["large"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "large", ["reload" => true]);
  71.         // line 15
  72.         echo "
  73.     ";
  74.         // line 17
  75.         echo "    ";
  76.         $context["image"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["reload" => true, "width" => 300]);
  77.         // line 21
  78.         echo "
  79.     ";
  80.         // line 23
  81.         echo "    ";
  82.         if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 23, $this->source); })())) {
  83.             // line 24
  84.             echo "        <div class=\"editmode\">
  85.             <div class=\"accordion-container\">
  86.                 <div class=\"accordion-button\">
  87.                     <span class=\"accordion-button-text\">Hero</span>
  88.                     ";
  89.             // line 28
  90.             echo twig_include($this->env, $context, "svg/editmode/setting.html.twig");
  91.             echo "
  92.                 </div>
  93.                 <div class=\"panel\">
  94.                     <div class=\"settings-container\">
  95.                         <div class=\"setting input\">
  96.                             <label>Anker:</label>
  97.                             ";
  98.             // line 35
  99.             echo (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 35, $this->source); })());
  100.             echo "
  101.                         </div>
  102.                         <div class=\"setting checkbox\">
  103.                             <label>";
  104.             // line 39
  105.             echo (isset($context["large"]) || array_key_exists("large", $context) ? $context["large"] : (function () { throw new RuntimeError('Variable "large" does not exist.', 39, $this->source); })());
  106.             echo " Gross</label>
  107.                         </div>
  108.                         <div class=\"setting\">
  109.                             <label>Bild:</label>
  110.                             ";
  111.             // line 44
  112.             echo (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 44, $this->source); })());
  113.             echo "
  114.                         </div>
  115.                         <div class=\"setting select\">
  116.                             <label>Abstand unten:</label>
  117.                             ";
  118.             // line 49
  119.             echo (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 49, $this->source); })());
  120.             echo "
  121.                         </div>
  122.                     </div>
  123.                 </div>
  124.             </div>
  125.         </div>
  126.     ";
  127.         }
  128.         // line 57
  129.         echo "
  130.     ";
  131.         // line 58
  132.         if (twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 58, $this->source); })()), "src", [], "any", false, false, false, 58)) {
  133.             // line 59
  134.             echo "        <div class=\"hero-brick brick-container ";
  135.             echo twig_escape_filter($this->env, 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.', 59, $this->source); })()), "data", [], "any", false, false, false, 59), "html", null, true);
  136.             echo " ";
  137.             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);
  138.             echo "\">
  139.             ";
  140.             // line 62
  141.             echo "            ";
  142.             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)) {
  143.                 // line 63
  144.                 echo "                <div class=\"anchor\" id=\"";
  145.                 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);
  146.                 echo "\"></div>
  147.             ";
  148.             }
  149.             // line 65
  150.             echo "
  151.             <div class=\"container-2500 no-padding\">
  152.                 ";
  153.             // line 69
  154.             echo "                ";
  155.             if ((twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 69, $this->source); })()), "src", [], "any", false, false, false, 69) && twig_get_attribute($this->env, $this->source, (isset($context["large"]) || array_key_exists("large", $context) ? $context["large"] : (function () { throw new RuntimeError('Variable "large" does not exist.', 69, $this->source); })()), "checked", [], "any", false, false, false, 69))) {
  156.                 // line 70
  157.                 echo "                    <div class=\"image large\">
  158.                         ";
  159.                 // line 71
  160.                 echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 71, $this->source); })()), "thumbnail", [0 => "heroLarge"], "method", false, false, false, 71), "html", [0 => ["alt" => twig_get_attribute($this->env, $this->source,                 // line 72
  161. (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 72, $this->source); })()), "alt", [], "any", false, false, false, 72), "disableWidthHeightAttributes" => true, "imgAttributes" => ["width" => 480, "height" => 400, "loading" => "eager"]]], "method", false, false, false, 71);
  162.                 // line 79
  163.                 echo "
  164.                     </div>
  165.                 ";
  166.                 // line 83
  167.                 echo "                ";
  168.             } elseif (twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 83, $this->source); })()), "src", [], "any", false, false, false, 83)) {
  169.                 // line 84
  170.                 echo "                    <div class=\"image\">
  171.                         ";
  172.                 // line 85
  173.                 echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 85, $this->source); })()), "thumbnail", [0 => "heroSmall"], "method", false, false, false, 85), "html", [0 => ["alt" => twig_get_attribute($this->env, $this->source,                 // line 86
  174. (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 86, $this->source); })()), "alt", [], "any", false, false, false, 86), "disableWidthHeightAttributes" => true, "imgAttributes" => ["width" => 480, "height" => 200, "loading" => "eager"]]], "method", false, false, false, 85);
  175.                 // line 93
  176.                 echo "
  177.                     </div>
  178.                 ";
  179.             }
  180.             // line 96
  181.             echo "
  182.                 ";
  183.             // line 98
  184.             echo "                ";
  185.             if ( !twig_get_attribute($this->env, $this->source, (isset($context["large"]) || array_key_exists("large", $context) ? $context["large"] : (function () { throw new RuntimeError('Variable "large" does not exist.', 98, $this->source); })()), "checked", [], "any", false, false, false, 98)) {
  186.                 // line 99
  187.                 echo "                    <div class=\"wave\">
  188.                         ";
  189.                 // line 100
  190.                 echo twig_include($this->env, $context, "svg/hero/wave.html.twig");
  191.                 echo "
  192.                     </div>
  193.                 ";
  194.             }
  195.             // line 103
  196.             echo "
  197.             </div>
  198.         </div>
  199.     ";
  200.         }
  201.         // line 107
  202.         echo "
  203. ";
  204.         
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  206.         
  207.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  208.     }
  209.     public function getTemplateName()
  210.     {
  211.         return "areas/hero/view.html.twig";
  212.     }
  213.     public function isTraitable()
  214.     {
  215.         return false;
  216.     }
  217.     public function getDebugInfo()
  218.     {
  219.         return array (  224 => 107,  218 => 103,  212 => 100,  209 => 99,  206 => 98,  203 => 96,  198 => 93,  196 => 86,  195 => 85,  192 => 84,  189 => 83,  184 => 79,  182 => 72,  181 => 71,  178 => 70,  175 => 69,  170 => 65,  164 => 63,  161 => 62,  153 => 59,  151 => 58,  148 => 57,  137 => 49,  129 => 44,  121 => 39,  114 => 35,  104 => 28,  98 => 24,  95 => 23,  92 => 21,  89 => 17,  86 => 15,  83 => 12,  80 => 10,  77 => 9,  74 => 8,  71 => 7,  68 => 5,  58 => 4,  35 => 2,);
  220.     }
  221.     public function getSourceContext()
  222.     {
  223.         return new Source("{# settings #}
  224. {% extends ('areas_shared/settings.html.twig') %}
  225. {% block content %}
  226.     {# default margin bottom #}
  227.     {% if marginBottom.isEmpty() %}
  228.         {% do marginBottom.setDataFromResource('no-margin-bottom') %}
  229.     {% endif %}
  230.     {# large #}
  231.     {% set large = pimcore_checkbox('large', {
  232.         'reload': true
  233.     }) %}
  234.     {# image #}
  235.     {% set image = pimcore_image('image', {
  236.         'reload': true,
  237.         'width': 300
  238.     }) %}
  239.     {# editmode #}
  240.     {% if editmode %}
  241.         <div class=\"editmode\">
  242.             <div class=\"accordion-container\">
  243.                 <div class=\"accordion-button\">
  244.                     <span class=\"accordion-button-text\">Hero</span>
  245.                     {{ include('svg/editmode/setting.html.twig') }}
  246.                 </div>
  247.                 <div class=\"panel\">
  248.                     <div class=\"settings-container\">
  249.                         <div class=\"setting input\">
  250.                             <label>Anker:</label>
  251.                             {{ anchor|raw }}
  252.                         </div>
  253.                         <div class=\"setting checkbox\">
  254.                             <label>{{ large|raw }} Gross</label>
  255.                         </div>
  256.                         <div class=\"setting\">
  257.                             <label>Bild:</label>
  258.                             {{ image|raw }}
  259.                         </div>
  260.                         <div class=\"setting select\">
  261.                             <label>Abstand unten:</label>
  262.                             {{ marginBottom|raw }}
  263.                         </div>
  264.                     </div>
  265.                 </div>
  266.             </div>
  267.         </div>
  268.     {% endif %}
  269.     {% if image.src %}
  270.         <div class=\"hero-brick brick-container {{ backgroundColor.data }} {{ marginBottom.data }}\">
  271.             {# anchor #}
  272.             {% if anchor.data %}
  273.                 <div class=\"anchor\" id=\"{{ anchor.data }}\"></div>
  274.             {% endif %}
  275.             <div class=\"container-2500 no-padding\">
  276.                 {# large #}
  277.                 {% if image.src and large.checked %}
  278.                     <div class=\"image large\">
  279.                         {{ image.thumbnail('heroLarge').html({
  280.                             'alt': image.alt,
  281.                             'disableWidthHeightAttributes': true,
  282.                             'imgAttributes': {
  283.                                 'width': 480,
  284.                                 'height': 400,
  285.                                 'loading': 'eager'
  286.                             }
  287.                         })|raw }}
  288.                     </div>
  289.                 {# normal #}
  290.                 {% elseif image.src %}
  291.                     <div class=\"image\">
  292.                         {{ image.thumbnail('heroSmall').html({
  293.                             'alt': image.alt,
  294.                             'disableWidthHeightAttributes': true,
  295.                             'imgAttributes': {
  296.                                 'width': 480,
  297.                                 'height': 200,
  298.                                 'loading': 'eager'
  299.                             }
  300.                         })|raw }}
  301.                     </div>
  302.                 {% endif %}
  303.                 {# wave #}
  304.                 {% if not large.checked %}
  305.                     <div class=\"wave\">
  306.                         {{ include('svg/hero/wave.html.twig') }}
  307.                     </div>
  308.                 {% endif %}
  309.             </div>
  310.         </div>
  311.     {% endif %}
  312. {% endblock %}", "areas/hero/view.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/areas/hero/view.html.twig");
  313.     }
  314. }