<?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/page/wishlist/index.html.twig */
class __TwigTemplate_c030108644959f493bd7065ebd265317 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'base_head' => [$this, 'block_base_head'],
'base_content' => [$this, 'block_base_content'],
'page_wishlist' => [$this, 'block_page_wishlist'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@econdLoader/storefront/base.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/page/wishlist/index.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/page/wishlist/index.html.twig"));
$this->parent = $this->loadTemplate("@econdLoader/storefront/base.html.twig", "@Storefront/storefront/page/wishlist/index.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_base_head($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", "base_head"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_head"));
// line 4
echo " ";
$this->loadTemplate("@Storefront/storefront/page/wishlist/meta.html.twig", "@Storefront/storefront/page/wishlist/index.html.twig", 4)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 7
public function block_base_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", "base_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_content"));
// line 8
echo " ";
$this->displayBlock('page_wishlist', $context, $blocks);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function block_page_wishlist($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", "page_wishlist"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_wishlist"));
// line 9
echo " <div class=\"cms-page wishlist-page\">
";
// line 10
$context["searchResult"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "wishlist", [], "any", false, false, false, 10), "productListing", [], "any", false, false, false, 10);
// line 11
echo "
";
// line 12
if ((sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "customer", [], "any", false, false, false, 12) && !sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "customer", [], "any", false, false, false, 12), "guest", [], "any", false, false, false, 12))) {
// line 13
echo " ";
$this->loadTemplate("@Storefront/storefront/page/wishlist/wishlist-pagelet.html.twig", "@Storefront/storefront/page/wishlist/index.html.twig", 13)->display(twig_array_merge($context, ["searchResult" => ($context["searchResult"] ?? null)]));
// line 14
echo " ";
} else {
// line 15
echo " ";
// line 16
echo " ";
$context["guestWishlistPageOptions"] = ["pageletRouter" => ["path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.wishlist.guestPage.pagelet"), "token" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.wishlist.guestPage.pagelet", ["mode" => "token"])]];
// line 22
echo " <div class=\"row mh-100\" data-guest-wishlist-page=\"true\" data-guest-wishlist-page-options=\"";
echo sw_escape_filter($this->env, $this->env->getFilter('json_encode')->getCallable()(($context["guestWishlistPageOptions"] ?? null)), "html", null, true);
echo "\"></div>
";
}
// line 24
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@Storefront/storefront/page/wishlist/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 138 => 24, 132 => 22, 129 => 16, 127 => 15, 124 => 14, 121 => 13, 119 => 12, 116 => 11, 114 => 10, 111 => 9, 91 => 8, 81 => 7, 70 => 4, 60 => 3, 37 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
{% block base_head %}
{% sw_include '@Storefront/storefront/page/wishlist/meta.html.twig' %}
{% endblock %}
{% block base_content %}
{% block page_wishlist %}
<div class=\"cms-page wishlist-page\">
{% set searchResult = page.wishlist.productListing %}
{% if context.customer and not context.customer.guest %}
{% sw_include '@Storefront/storefront/page/wishlist/wishlist-pagelet.html.twig' with { searchResult: searchResult } %}
{% else %}
{# @deprecated tag:v6.5.0 - Option guestWishlistPageOptions.pageletRouter.token will be removed. #}
{% set guestWishlistPageOptions = {
pageletRouter: {
path: path('frontend.wishlist.guestPage.pagelet'),
token: sw_csrf('frontend.wishlist.guestPage.pagelet', {'mode': 'token'})
}
} %}
<div class=\"row mh-100\" data-guest-wishlist-page=\"true\" data-guest-wishlist-page-options=\"{{ guestWishlistPageOptions|json_encode }}\"></div>
{% endif %}
</div>
{% endblock %}
{% endblock %}
", "@Storefront/storefront/page/wishlist/index.html.twig", "/var/www/shopware6/vendor/shopware/storefront/Resources/views/storefront/page/wishlist/index.html.twig");
}
}