var/cache/dev/twig/f6/f60fa1f5f8538d942c8ce4f4616bf521.php line 48

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/bild-text/view.html.twig */
  14. class __TwigTemplate_699f6da52cb456cd4800849d3d97ca55 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/bild-text/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/bild-text/view.html.twig"));
  38.         $this->parent $this->loadTemplate("areas_shared/settings.html.twig""areas/bild-text/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", [=> "no-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["backgroundColor"]) || array_key_exists("backgroundColor"$context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.'12$this->source); })()), "isEmpty", [], "method"falsefalsefalse12)) {
  71.             // line 13
  72.             echo "        ";
  73.             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.'13$this->source); })()), "setDataFromResource", [=> "background-lightbrown"], "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); })()), "data", [], "any"falsefalsefalse17) == "background-darkblue")) {
  83.             // line 18
  84.             echo "        ";
  85.             $context["buttonColor"] = "lightbrown-to-turquois";
  86.             // line 19
  87.             echo "    ";
  88.         }
  89.         // line 20
  90.         echo "
  91.     ";
  92.         // line 22
  93.         echo "    ";
  94.         $context["imagePosition"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""imagePosition", ["store" => [=> [=> "imageLeft"=> "Bild / Text"], => [=> "imageRight"=> "Text / Bild"]], "reload" => true]);
  95.         // line 29
  96.         echo "
  97.     ";
  98.         // line 31
  99.         echo "    ";
  100.         if (twig_get_attribute($this->env$this->source, (isset($context["imagePosition"]) || array_key_exists("imagePosition"$context) ? $context["imagePosition"] : (function () { throw new RuntimeError('Variable "imagePosition" does not exist.'31$this->source); })()), "isEmpty", [], "method"falsefalsefalse31)) {
  101.             // line 32
  102.             echo "        ";
  103.             twig_get_attribute($this->env$this->source, (isset($context["imagePosition"]) || array_key_exists("imagePosition"$context) ? $context["imagePosition"] : (function () { throw new RuntimeError('Variable "imagePosition" does not exist.'32$this->source); })()), "setDataFromResource", [=> "imageLeft"], "method"falsefalsefalse32);
  104.             // line 33
  105.             echo "    ";
  106.         }
  107.         // line 34
  108.         echo "
  109.     ";
  110.         // line 35
  111.         if ((twig_get_attribute($this->env$this->source, (isset($context["imagePosition"]) || array_key_exists("imagePosition"$context) ? $context["imagePosition"] : (function () { throw new RuntimeError('Variable "imagePosition" does not exist.'35$this->source); })()), "data", [], "any"falsefalsefalse35) == "imageLeft")) {
  112.             // line 36
  113.             echo "        ";
  114.             $context["imageOrder"] = "order-1";
  115.             // line 37
  116.             echo "        ";
  117.             $context["textOrder"] = "order-2";
  118.             // line 38
  119.             echo "    ";
  120.         } else {
  121.             // line 39
  122.             echo "        ";
  123.             $context["imageOrder"] = "order-2";
  124.             // line 40
  125.             echo "        ";
  126.             $context["textOrder"] = "order-1";
  127.             // line 41
  128.             echo "    ";
  129.         }
  130.         // line 42
  131.         echo "
  132.     ";
  133.         // line 44
  134.         echo "    ";
  135.         $context["image"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image", ["reload" => true"width" => 300]);
  136.         // line 48
  137.         echo "
  138.     ";
  139.         // line 50
  140.         echo "    ";
  141.         $context["keepAspectRatio"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""keepAspectRatio");
  142.         // line 51
  143.         echo "
  144.     ";
  145.         // line 53
  146.         echo "    ";
  147.         $context["title"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title", ["placeholder" => "Titel"]);
  148.         // line 56
  149.         echo "
  150.     ";
  151.         // line 58
  152.         echo "    ";
  153.         $context["text"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""text", ["placeholder" => "Text"]);
  154.         // line 61
  155.         echo "
  156.     ";
  157.         // line 63
  158.         echo "    ";
  159.         $context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""link");
  160.         // line 64
  161.         echo "
  162.     ";
  163.         // line 66
  164.         echo "    ";
  165.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'66$this->source); })())) {
  166.             // line 67
  167.             echo "        <div class=\"editmode\">
  168.             <div class=\"accordion-container\">
  169.                 <div class=\"accordion-button\">
  170.                     <span class=\"accordion-button-text\">Bild / Text</span>
  171.                     ";
  172.             // line 71
  173.             echo twig_include($this->env$context"svg/editmode/setting.html.twig");
  174.             echo "
  175.                 </div>
  176.                 <div class=\"panel\">
  177.                     <div class=\"settings-container\">
  178.                         
  179.                         <div class=\"setting input\">
  180.                             <label>Anker:</label>
  181.                             ";
  182.             // line 78
  183.             echo (isset($context["anchor"]) || array_key_exists("anchor"$context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.'78$this->source); })());
  184.             echo "
  185.                         </div>
  186.                         <div class=\"setting select\">
  187.                             <label>Position:</label>
  188.                             ";
  189.             // line 83
  190.             echo (isset($context["imagePosition"]) || array_key_exists("imagePosition"$context) ? $context["imagePosition"] : (function () { throw new RuntimeError('Variable "imagePosition" does not exist.'83$this->source); })());
  191.             echo "
  192.                         </div>
  193.                         <div class=\"setting\">
  194.                             <label>Bild:</label>
  195.                             ";
  196.             // line 88
  197.             echo (isset($context["image"]) || array_key_exists("image"$context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.'88$this->source); })());
  198.             echo "
  199.                         </div>
  200.                         <div class=\"setting checkbox\">
  201.                             <label>";
  202.             // line 92
  203.             echo (isset($context["keepAspectRatio"]) || array_key_exists("keepAspectRatio"$context) ? $context["keepAspectRatio"] : (function () { throw new RuntimeError('Variable "keepAspectRatio" does not exist.'92$this->source); })());
  204.             echo " Bildformat beibehalten</label>
  205.                         </div>
  206.                         <div class=\"setting select colors\">
  207.                             <label>Hintergrundfarbe:</label>
  208.                             ";
  209.             // line 97
  210.             echo (isset($context["backgroundColor"]) || array_key_exists("backgroundColor"$context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.'97$this->source); })());
  211.             echo "
  212.                             ";
  213.             // line 98
  214.             echo twig_include($this->env$context"areas_shared/colors.html.twig");
  215.             echo "
  216.                         </div>
  217.                         <div class=\"setting select\">
  218.                             <label>Abstand unten:</label>
  219.                             ";
  220.             // line 103
  221.             echo (isset($context["marginBottom"]) || array_key_exists("marginBottom"$context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.'103$this->source); })());
  222.             echo "
  223.                         </div>
  224.                     </div>
  225.                 </div>
  226.             </div>
  227.         </div>
  228.     ";
  229.         }
  230.         // line 111
  231.         echo "
  232.     <div class=\"bild-text-brick brick-container ";
  233.         // line 112
  234.         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.'112$this->source); })()), "data", [], "any"falsefalsefalse112), "html"nulltrue);
  235.         echo "\">
  236.         ";
  237.         // line 115
  238.         echo "        ";
  239.         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.'115$this->source); })()), "data", [], "any"falsefalsefalse115)) {
  240.             // line 116
  241.             echo "            <div class=\"anchor\" id=\"";
  242.             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.'116$this->source); })()), "data", [], "any"falsefalsefalse116), "html"nulltrue);
  243.             echo "\"></div>
  244.         ";
  245.         }
  246.         // line 118
  247.         echo "
  248.         <div class=\"container-1710\">
  249.         
  250.             <div class=\"container ";
  251.         // line 121
  252.         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.'121$this->source); })()), "data", [], "any"falsefalsefalse121), "html"nulltrue);
  253.         echo "\">
  254.                 ";
  255.         // line 123
  256.         echo twig_include($this->env$context"areas/bild-text/image.html.twig");
  257.         echo "
  258.                 ";
  259.         // line 125
  260.         echo twig_include($this->env$context"areas/bild-text/text.html.twig");
  261.         echo "
  262.                 
  263.             </div>
  264.         </div>
  265.     </div>
  266. ";
  267.         
  268.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  269.         
  270.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  271.     }
  272.     public function getTemplateName()
  273.     {
  274.         return "areas/bild-text/view.html.twig";
  275.     }
  276.     public function isTraitable()
  277.     {
  278.         return false;
  279.     }
  280.     public function getDebugInfo()
  281.     {
  282.         return array (  283 => 125,  278 => 123,  273 => 121,  268 => 118,  262 => 116,  259 => 115,  254 => 112,  251 => 111,  240 => 103,  232 => 98,  228 => 97,  220 => 92,  213 => 88,  205 => 83,  197 => 78,  187 => 71,  181 => 67,  178 => 66,  175 => 64,  172 => 63,  169 => 61,  166 => 58,  163 => 56,  160 => 53,  157 => 51,  154 => 50,  151 => 48,  148 => 44,  145 => 42,  142 => 41,  139 => 40,  136 => 39,  133 => 38,  130 => 37,  127 => 36,  125 => 35,  122 => 34,  119 => 33,  116 => 32,  113 => 31,  110 => 29,  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,);
  283.     }
  284.     public function getSourceContext()
  285.     {
  286.         return new Source("{# settings #}
  287. {% extends ('areas_shared/settings.html.twig') %}
  288. {% block content %}
  289.     {# default margin #}
  290.     {% if marginBottom.isEmpty() %}
  291.         {% do marginBottom.setDataFromResource('no-margin-bottom') %}
  292.     {% endif %}
  293.     {# default background color #}
  294.     {% if backgroundColor.isEmpty() %}
  295.         {% do backgroundColor.setDataFromResource('background-lightbrown') %}
  296.     {% endif %}
  297.     {# button color #}
  298.     {% if backgroundColor.data == 'background-darkblue' %}
  299.         {% set buttonColor = 'lightbrown-to-turquois' %}
  300.     {% endif %}
  301.     {# image position #}
  302.     {% set imagePosition = pimcore_select('imagePosition', {
  303.         'store': [
  304.             ['imageLeft', 'Bild / Text'],
  305.             ['imageRight', 'Text / Bild']
  306.         ],
  307.         'reload': true
  308.     }) %}
  309.     {# default image position #}
  310.     {% if imagePosition.isEmpty() %}
  311.         {% do imagePosition.setDataFromResource('imageLeft') %}
  312.     {% endif %}
  313.     {% if imagePosition.data == 'imageLeft' %}
  314.         {% set imageOrder = 'order-1' %}
  315.         {% set textOrder = 'order-2' %}
  316.     {% else %}
  317.         {% set imageOrder = 'order-2' %}
  318.         {% set textOrder = 'order-1' %}
  319.     {% endif %}
  320.     {# image #}
  321.     {% set image = pimcore_image('image', {
  322.         'reload': true,
  323.         'width': 300
  324.     }) %}
  325.     {# keep original image aspect ratio #}
  326.     {% set keepAspectRatio = pimcore_checkbox('keepAspectRatio') %}
  327.     {# title #}
  328.     {% set title = pimcore_input('title', {
  329.         'placeholder': 'Titel'
  330.     }) %}
  331.     {# text #}
  332.     {% set text = pimcore_wysiwyg('text', {
  333.         'placeholder': 'Text'
  334.     }) %}
  335.     {# link #}
  336.     {% set link = pimcore_link('link') %}
  337.     {# editmode #}
  338.     {% if editmode %}
  339.         <div class=\"editmode\">
  340.             <div class=\"accordion-container\">
  341.                 <div class=\"accordion-button\">
  342.                     <span class=\"accordion-button-text\">Bild / Text</span>
  343.                     {{ include('svg/editmode/setting.html.twig') }}
  344.                 </div>
  345.                 <div class=\"panel\">
  346.                     <div class=\"settings-container\">
  347.                         
  348.                         <div class=\"setting input\">
  349.                             <label>Anker:</label>
  350.                             {{ anchor|raw }}
  351.                         </div>
  352.                         <div class=\"setting select\">
  353.                             <label>Position:</label>
  354.                             {{ imagePosition|raw }}
  355.                         </div>
  356.                         <div class=\"setting\">
  357.                             <label>Bild:</label>
  358.                             {{ image|raw }}
  359.                         </div>
  360.                         <div class=\"setting checkbox\">
  361.                             <label>{{ keepAspectRatio|raw }} Bildformat beibehalten</label>
  362.                         </div>
  363.                         <div class=\"setting select colors\">
  364.                             <label>Hintergrundfarbe:</label>
  365.                             {{ backgroundColor|raw }}
  366.                             {{ include('areas_shared/colors.html.twig') }}
  367.                         </div>
  368.                         <div class=\"setting select\">
  369.                             <label>Abstand unten:</label>
  370.                             {{ marginBottom|raw }}
  371.                         </div>
  372.                     </div>
  373.                 </div>
  374.             </div>
  375.         </div>
  376.     {% endif %}
  377.     <div class=\"bild-text-brick brick-container {{ marginBottom.data }}\">
  378.         {# anchor #}
  379.         {% if anchor.data %}
  380.             <div class=\"anchor\" id=\"{{ anchor.data }}\"></div>
  381.         {% endif %}
  382.         <div class=\"container-1710\">
  383.         
  384.             <div class=\"container {{ backgroundColor.data }}\">
  385.                 {{ include('areas/bild-text/image.html.twig') }}
  386.                 {{ include('areas/bild-text/text.html.twig') }}
  387.                 
  388.             </div>
  389.         </div>
  390.     </div>
  391. {% endblock %}""areas/bild-text/view.html.twig""/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/areas/bild-text/view.html.twig");
  392.     }
  393. }