<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @McsCookiePermission/storefront/layout/cookie/cookie-configuration.html.twig */
class __TwigTemplate_484d5fb5c3d7b3e9d0de2f5b0be507e1 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'utilities_offcanvas_close' => [$this, 'block_utilities_offcanvas_close'],
'layout_cookie_configuration_button' => [$this, 'block_layout_cookie_configuration_button'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/layout/cookie/cookie-configuration.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@McsCookiePermission/storefront/layout/cookie/cookie-configuration.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@McsCookiePermission/storefront/layout/cookie/cookie-configuration.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/layout/cookie/cookie-configuration.html.twig", "@McsCookiePermission/storefront/layout/cookie/cookie-configuration.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_utilities_offcanvas_close($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "utilities_offcanvas_close"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "utilities_offcanvas_close"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 7
public function block_layout_cookie_configuration_button($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_cookie_configuration_button"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_cookie_configuration_button"));
// line 8
echo " ";
if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "core.basicInformation.acceptAllCookies")) {
// line 9
echo " ";
$context["hasButtonAcceptAll"] = true;
// line 10
echo " ";
} elseif ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "McsCookiePermission.config.ShowAcceptAll")) {
// line 11
echo " ";
$context["hasButtonAcceptAll"] = true;
// line 12
echo " ";
// line 13
echo " <button
type=\"submit\"
class=\"btn btn-primary btn-block js-offcanvas-cookie-submit-all\">
";
// line 16
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mcs-cookie-permission.cookie.accept"));
echo "
</button>
";
}
// line 19
echo " ";
if ((($context["hasButtonAcceptAll"] ?? null) && !$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "McsCookiePermission.config.DisableDarkPattern"))) {
// line 20
echo " ";
// line 21
echo " <button
type=\"submit\"
class=\"btn btn-link btn-block js-offcanvas-cookie-submit\">
";
// line 24
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cookie.save"));
echo "
</button>
";
} else {
// line 27
echo " ";
$this->displayParentBlock("layout_cookie_configuration_button", $context, $blocks);
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@McsCookiePermission/storefront/layout/cookie/cookie-configuration.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/layout/cookie/cookie-configuration.html.twig' %}
{# hide close button #}
{% block utilities_offcanvas_close %}{% endblock %}
{# modify buttons #}
{% block layout_cookie_configuration_button %}
{% if config('core.basicInformation.acceptAllCookies') %}
{% set hasButtonAcceptAll = true %}
{% elseif config('McsCookiePermission.config.ShowAcceptAll') %}
{% set hasButtonAcceptAll = true %}
{# insert accept-all-button #}
<button
type=\"submit\"
class=\"btn btn-primary btn-block js-offcanvas-cookie-submit-all\">
{{ \"mcs-cookie-permission.cookie.accept\"|trans|sw_sanitize }}
</button>
{% endif %}
{% if hasButtonAcceptAll and not config('McsCookiePermission.config.DisableDarkPattern') %}
{# apply dark pattern (unobtrusive save button) #}
<button
type=\"submit\"
class=\"btn btn-link btn-block js-offcanvas-cookie-submit\">
{{ \"cookie.save\"|trans|sw_sanitize }}
</button>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
", "@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");
}
}