var/cache/dev_h7302b6dbeb5b1ab0a68ccd87e6c236f4/twig/64/647f682b728923215648c03fec4778fd7abc0f78aba261698070051690a43526.php line 80

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @Storefront/storefront/layout/cookie/cookie-configuration.html.twig */
  16. class __TwigTemplate_3b7f115c334939bc20124106664c302f extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->blocks = [
  25.             'utilities_offcanvas_meta' => [$this'block_utilities_offcanvas_meta'],
  26.             'utilities_offcanvas_close_text' => [$this'block_utilities_offcanvas_close_text'],
  27.             'utilities_offcanvas_content' => [$this'block_utilities_offcanvas_content'],
  28.             'layout_cookie_configuration_allow_all_button' => [$this'block_layout_cookie_configuration_allow_all_button'],
  29.             'layout_cookie_configuration_button' => [$this'block_layout_cookie_configuration_button'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 2
  35.         return "@Storefront/storefront/utilities/offcanvas.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/layout/cookie/cookie-configuration.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/layout/cookie/cookie-configuration.html.twig"));
  44.         $this->parent $this->loadTemplate("@Storefront/storefront/utilities/offcanvas.html.twig""@Storefront/storefront/layout/cookie/cookie-configuration.html.twig"2);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     public function block_utilities_offcanvas_meta($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_meta"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_meta"));
  59.         // line 4
  60.         echo "    ";
  61.         $context["isAjaxOffcanvas"] = true;
  62.         // line 5
  63.         echo "
  64.     ";
  65.         // line 6
  66.         $this->displayParentBlock("utilities_offcanvas_meta"$context$blocks);
  67.         echo "
  68. ";
  69.         
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  71.         
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  73.     }
  74.     // line 9
  75.     public function block_utilities_offcanvas_close_text($context, array $blocks = [])
  76.     {
  77.         $macros $this->macros;
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_close_text"));
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_close_text"));
  82.         // line 10
  83.         echo "    ";
  84.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cookie.headline"));
  85.         echo "
  86. ";
  87.         
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  89.         
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  91.     }
  92.     // line 13
  93.     public function block_utilities_offcanvas_content($context, array $blocks = [])
  94.     {
  95.         $macros $this->macros;
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_content"));
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_content"));
  100.         // line 14
  101.         echo "    <div class=\"offcanvas-cookie\">
  102.         <div class=\"offcanvas-cookie-description\">
  103.             <p>
  104.                 ";
  105.         // line 17
  106.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cookie.message", ["%url%" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.cms.page", ["id" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"core.basicInformation.privacyPage")])]);
  107.         // line 19
  108.         echo "
  109.             </p>
  110.             <div class=\"row align-items-center h6 offcanvas-cookie-header\">
  111.                 <div class=\"col\">
  112.                     ";
  113.         // line 24
  114.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cookie.configuration"));
  115.         echo "
  116.                 </div>
  117.             </div>
  118.         </div>
  119.         <div class=\"offcanvas-cookie-list\">
  120.             ";
  121.         // line 30
  122.         $context['_parent'] = $context;
  123.         $context['_seq'] = twig_ensure_traversable(($context["cookieGroups"] ?? null));
  124.         foreach ($context['_seq'] as $context["_key"] => $context["cookieGroup"]) {
  125.             // line 31
  126.             echo "                ";
  127.             $this->loadTemplate("@Storefront/storefront/layout/cookie/cookie-configuration-group.html.twig""@Storefront/storefront/layout/cookie/cookie-configuration.html.twig"31)->display(twig_to_array(["cookieGroup" =>             // line 32
  128. $context["cookieGroup"]]));
  129.             // line 34
  130.             echo "            ";
  131.         }
  132.         $_parent $context['_parent'];
  133.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cookieGroup'], $context['_parent'], $context['loop']);
  134.         $context array_intersect_key($context$_parent) + $_parent;
  135.         // line 35
  136.         echo "        </div>
  137.         ";
  138.         // line 38
  139.         if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"core.basicInformation.acceptAllCookies")) {
  140.             // line 39
  141.             echo "            ";
  142.             $this->displayBlock('layout_cookie_configuration_allow_all_button'$context$blocks);
  143.             // line 46
  144.             echo "        ";
  145.         }
  146.         // line 47
  147.         echo "
  148.         ";
  149.         // line 49
  150.         $this->displayBlock('layout_cookie_configuration_button'$context$blocks);
  151.         // line 56
  152.         echo "
  153.     </div>
  154. ";
  155.         
  156.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  157.         
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  159.     }
  160.     // line 39
  161.     public function block_layout_cookie_configuration_allow_all_button($context, array $blocks = [])
  162.     {
  163.         $macros $this->macros;
  164.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  165.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_cookie_configuration_allow_all_button"));
  166.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  167.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_cookie_configuration_allow_all_button"));
  168.         // line 40
  169.         echo "                <button
  170.                     type=\"submit\"
  171.                     class=\"btn btn-primary btn-block js-offcanvas-cookie-accept-all\">
  172.                     ";
  173.         // line 43
  174.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cookie.acceptAll"));
  175.         echo "
  176.                 </button>
  177.             ";
  178.         
  179.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  180.         
  181.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  182.     }
  183.     // line 49
  184.     public function block_layout_cookie_configuration_button($context, array $blocks = [])
  185.     {
  186.         $macros $this->macros;
  187.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  188.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_cookie_configuration_button"));
  189.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_cookie_configuration_button"));
  191.         // line 50
  192.         echo "            <button
  193.                 type=\"submit\"
  194.                 class=\"btn btn-primary btn-block js-offcanvas-cookie-submit\">
  195.                 ";
  196.         // line 53
  197.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cookie.save"));
  198.         echo "
  199.             </button>
  200.         ";
  201.         
  202.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  203.         
  204.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  205.     }
  206.     public function getTemplateName()
  207.     {
  208.         return "@Storefront/storefront/layout/cookie/cookie-configuration.html.twig";
  209.     }
  210.     public function isTraitable()
  211.     {
  212.         return false;
  213.     }
  214.     public function getDebugInfo()
  215.     {
  216.         return array (  234 => 53,  229 => 50,  219 => 49,  206 => 43,  201 => 40,  191 => 39,  179 => 56,  177 => 49,  173 => 47,  170 => 46,  167 => 39,  165 => 38,  160 => 35,  154 => 34,  152 => 32,  150 => 31,  146 => 30,  137 => 24,  130 => 19,  128 => 17,  123 => 14,  113 => 13,  100 => 10,  90 => 9,  78 => 6,  75 => 5,  72 => 4,  62 => 3,  39 => 2,);
  217.     }
  218.     public function getSourceContext()
  219.     {
  220.         return new Source("{% sw_extends '@Storefront/storefront/utilities/offcanvas.html.twig' %}
  221. {% block utilities_offcanvas_meta %}
  222.     {% set isAjaxOffcanvas = true %}
  223.     {{ parent() }}
  224. {% endblock %}
  225. {% block utilities_offcanvas_close_text %}
  226.     {{ \"cookie.headline\"|trans|sw_sanitize }}
  227. {% endblock %}
  228. {% block utilities_offcanvas_content %}
  229.     <div class=\"offcanvas-cookie\">
  230.         <div class=\"offcanvas-cookie-description\">
  231.             <p>
  232.                 {{ \"cookie.message\"|trans({
  233.                     '%url%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') })
  234.                 })|raw }}
  235.             </p>
  236.             <div class=\"row align-items-center h6 offcanvas-cookie-header\">
  237.                 <div class=\"col\">
  238.                     {{ \"cookie.configuration\"|trans|sw_sanitize }}
  239.                 </div>
  240.             </div>
  241.         </div>
  242.         <div class=\"offcanvas-cookie-list\">
  243.             {% for cookieGroup in cookieGroups %}
  244.                 {% sw_include '@Storefront/storefront/layout/cookie/cookie-configuration-group.html.twig' with {
  245.                     cookieGroup: cookieGroup
  246.                 } only %}
  247.             {% endfor %}
  248.         </div>
  249.         {% if config('core.basicInformation.acceptAllCookies') %}
  250.             {% block layout_cookie_configuration_allow_all_button %}
  251.                 <button
  252.                     type=\"submit\"
  253.                     class=\"btn btn-primary btn-block js-offcanvas-cookie-accept-all\">
  254.                     {{ \"cookie.acceptAll\"|trans|sw_sanitize }}
  255.                 </button>
  256.             {% endblock %}
  257.         {% endif %}
  258.         {% block layout_cookie_configuration_button %}
  259.             <button
  260.                 type=\"submit\"
  261.                 class=\"btn btn-primary btn-block js-offcanvas-cookie-submit\">
  262.                 {{ \"cookie.save\"|trans|sw_sanitize }}
  263.             </button>
  264.         {% endblock %}
  265.     </div>
  266. {% endblock %}
  267. ""@Storefront/storefront/layout/cookie/cookie-configuration.html.twig""/var/www/geuther_staging/vendor/shopware/storefront/Resources/views/storefront/layout/cookie/cookie-configuration.html.twig");
  268.     }
  269. }