<?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;
/* @Storefront/storefront/layout/cookie/cookie-configuration.html.twig */
class __TwigTemplate_3b7f115c334939bc20124106664c302f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'utilities_offcanvas_meta' => [$this, 'block_utilities_offcanvas_meta'],
'utilities_offcanvas_close_text' => [$this, 'block_utilities_offcanvas_close_text'],
'utilities_offcanvas_content' => [$this, 'block_utilities_offcanvas_content'],
'layout_cookie_configuration_allow_all_button' => [$this, 'block_layout_cookie_configuration_allow_all_button'],
'layout_cookie_configuration_button' => [$this, 'block_layout_cookie_configuration_button'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/utilities/offcanvas.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", "@Storefront/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", "@Storefront/storefront/layout/cookie/cookie-configuration.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/utilities/offcanvas.html.twig", "@Storefront/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 3
public function block_utilities_offcanvas_meta($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_meta"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "utilities_offcanvas_meta"));
// line 4
echo " ";
$context["isAjaxOffcanvas"] = true;
// line 5
echo "
";
// line 6
$this->displayParentBlock("utilities_offcanvas_meta", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 9
public function block_utilities_offcanvas_close_text($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_text"));
$__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_text"));
// line 10
echo " ";
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cookie.headline"));
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 13
public function block_utilities_offcanvas_content($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_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "utilities_offcanvas_content"));
// line 14
echo " <div class=\"offcanvas-cookie\">
<div class=\"offcanvas-cookie-description\">
<p>
";
// line 17
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")])]);
// line 19
echo "
</p>
<div class=\"row align-items-center h6 offcanvas-cookie-header\">
<div class=\"col\">
";
// line 24
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cookie.configuration"));
echo "
</div>
</div>
</div>
<div class=\"offcanvas-cookie-list\">
";
// line 30
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["cookieGroups"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["cookieGroup"]) {
// line 31
echo " ";
$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
$context["cookieGroup"]]));
// line 34
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cookieGroup'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 35
echo " </div>
";
// line 38
if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "core.basicInformation.acceptAllCookies")) {
// line 39
echo " ";
$this->displayBlock('layout_cookie_configuration_allow_all_button', $context, $blocks);
// line 46
echo " ";
}
// line 47
echo "
";
// line 49
$this->displayBlock('layout_cookie_configuration_button', $context, $blocks);
// line 56
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 39
public function block_layout_cookie_configuration_allow_all_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_allow_all_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_allow_all_button"));
// line 40
echo " <button
type=\"submit\"
class=\"btn btn-primary btn-block js-offcanvas-cookie-accept-all\">
";
// line 43
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cookie.acceptAll"));
echo "
</button>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 49
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 50
echo " <button
type=\"submit\"
class=\"btn btn-primary btn-block js-offcanvas-cookie-submit\">
";
// line 53
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cookie.save"));
echo "
</button>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@Storefront/storefront/layout/cookie/cookie-configuration.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/utilities/offcanvas.html.twig' %}
{% block utilities_offcanvas_meta %}
{% set isAjaxOffcanvas = true %}
{{ parent() }}
{% endblock %}
{% block utilities_offcanvas_close_text %}
{{ \"cookie.headline\"|trans|sw_sanitize }}
{% endblock %}
{% block utilities_offcanvas_content %}
<div class=\"offcanvas-cookie\">
<div class=\"offcanvas-cookie-description\">
<p>
{{ \"cookie.message\"|trans({
'%url%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') })
})|raw }}
</p>
<div class=\"row align-items-center h6 offcanvas-cookie-header\">
<div class=\"col\">
{{ \"cookie.configuration\"|trans|sw_sanitize }}
</div>
</div>
</div>
<div class=\"offcanvas-cookie-list\">
{% for cookieGroup in cookieGroups %}
{% sw_include '@Storefront/storefront/layout/cookie/cookie-configuration-group.html.twig' with {
cookieGroup: cookieGroup
} only %}
{% endfor %}
</div>
{% if config('core.basicInformation.acceptAllCookies') %}
{% block layout_cookie_configuration_allow_all_button %}
<button
type=\"submit\"
class=\"btn btn-primary btn-block js-offcanvas-cookie-accept-all\">
{{ \"cookie.acceptAll\"|trans|sw_sanitize }}
</button>
{% endblock %}
{% endif %}
{% block layout_cookie_configuration_button %}
<button
type=\"submit\"
class=\"btn btn-primary btn-block js-offcanvas-cookie-submit\">
{{ \"cookie.save\"|trans|sw_sanitize }}
</button>
{% endblock %}
</div>
{% endblock %}
", "@Storefront/storefront/layout/cookie/cookie-configuration.html.twig", "/var/www/geuther_staging/vendor/shopware/storefront/Resources/views/storefront/layout/cookie/cookie-configuration.html.twig");
}
}