var/cache/dev_h7302b6dbeb5b1ab0a68ccd87e6c236f4/twig/c0/c0950f044dbe2ddb661fc17cb50f7fb3f6884d5753b9f2438623712ff1e70fcb.php line 41

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. /* @McsCookiePermission/storefront/layout/cookie/cookie-configuration.html.twig */
  16. class __TwigTemplate_484d5fb5c3d7b3e9d0de2f5b0be507e1 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_close' => [$this'block_utilities_offcanvas_close'],
  26.             'layout_cookie_configuration_button' => [$this'block_layout_cookie_configuration_button'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@Storefront/storefront/layout/cookie/cookie-configuration.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@McsCookiePermission/storefront/layout/cookie/cookie-configuration.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@McsCookiePermission/storefront/layout/cookie/cookie-configuration.html.twig"));
  41.         $this->parent $this->loadTemplate("@Storefront/storefront/layout/cookie/cookie-configuration.html.twig""@McsCookiePermission/storefront/layout/cookie/cookie-configuration.html.twig"2);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 4
  49.     public function block_utilities_offcanvas_close($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_close"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_close"));
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.         
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  60.     }
  61.     // line 7
  62.     public function block_layout_cookie_configuration_button($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_cookie_configuration_button"));
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_cookie_configuration_button"));
  69.         // line 8
  70.         echo "    ";
  71.         if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"core.basicInformation.acceptAllCookies")) {
  72.             // line 9
  73.             echo "        ";
  74.             $context["hasButtonAcceptAll"] = true;
  75.             // line 10
  76.             echo "    ";
  77.         } elseif ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"McsCookiePermission.config.ShowAcceptAll")) {
  78.             // line 11
  79.             echo "        ";
  80.             $context["hasButtonAcceptAll"] = true;
  81.             // line 12
  82.             echo "        ";
  83.             // line 13
  84.             echo "        <button
  85.                 type=\"submit\"
  86.                 class=\"btn btn-primary btn-block js-offcanvas-cookie-submit-all\">
  87.             ";
  88.             // line 16
  89.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mcs-cookie-permission.cookie.accept"));
  90.             echo "
  91.         </button>
  92.     ";
  93.         }
  94.         // line 19
  95.         echo "    ";
  96.         if ((($context["hasButtonAcceptAll"] ?? null) &&  !$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"McsCookiePermission.config.DisableDarkPattern"))) {
  97.             // line 20
  98.             echo "        ";
  99.             // line 21
  100.             echo "        <button
  101.                 type=\"submit\"
  102.                 class=\"btn btn-link btn-block js-offcanvas-cookie-submit\">
  103.             ";
  104.             // line 24
  105.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cookie.save"));
  106.             echo "
  107.         </button>
  108.     ";
  109.         } else {
  110.             // line 27
  111.             echo "        ";
  112.             $this->displayParentBlock("layout_cookie_configuration_button"$context$blocks);
  113.             echo "
  114.     ";
  115.         }
  116.         
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  118.         
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  120.     }
  121.     public function getTemplateName()
  122.     {
  123.         return "@McsCookiePermission/storefront/layout/cookie/cookie-configuration.html.twig";
  124.     }
  125.     public function isTraitable()
  126.     {
  127.         return false;
  128.     }
  129.     public function getDebugInfo()
  130.     {
  131.         return array (  128 => 27,  122 => 24,  117 => 21,  115 => 20,  112 => 19,  106 => 16,  101 => 13,  99 => 12,  96 => 11,  93 => 10,  90 => 9,  87 => 8,  77 => 7,  59 => 4,  36 => 2,);
  132.     }
  133.     public function getSourceContext()
  134.     {
  135.         return new Source("{% sw_extends '@Storefront/storefront/layout/cookie/cookie-configuration.html.twig' %}
  136. {# hide close button #}
  137. {% block utilities_offcanvas_close %}{% endblock %}
  138. {# modify buttons #}
  139. {% block layout_cookie_configuration_button %}
  140.     {% if config('core.basicInformation.acceptAllCookies') %}
  141.         {% set hasButtonAcceptAll = true %}
  142.     {% elseif config('McsCookiePermission.config.ShowAcceptAll') %}
  143.         {% set hasButtonAcceptAll = true %}
  144.         {# insert accept-all-button #}
  145.         <button
  146.                 type=\"submit\"
  147.                 class=\"btn btn-primary btn-block js-offcanvas-cookie-submit-all\">
  148.             {{ \"mcs-cookie-permission.cookie.accept\"|trans|sw_sanitize }}
  149.         </button>
  150.     {% endif %}
  151.     {% if hasButtonAcceptAll and not config('McsCookiePermission.config.DisableDarkPattern') %}
  152.         {# apply dark pattern (unobtrusive save button) #}
  153.         <button
  154.                 type=\"submit\"
  155.                 class=\"btn btn-link btn-block js-offcanvas-cookie-submit\">
  156.             {{ \"cookie.save\"|trans|sw_sanitize }}
  157.         </button>
  158.     {% else %}
  159.         {{ parent() }}
  160.     {% endif %}
  161. {% endblock %}
  162. ""@McsCookiePermission/storefront/layout/cookie/cookie-configuration.html.twig""/var/www/geuther_staging/custom/plugins/McsCookiePermission/src/Resources/views/storefront/layout/cookie/cookie-configuration.html.twig");
  163.     }
  164. }