var/cache/dev_h94b6c5d2d84092cf319e762d211cfdb3/twig/a9/a9d455e8bd8792cbc74434ff915d1fdaa3c261ac682dcc221041da69c2244f38.php line 62

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/page/wishlist/index.html.twig */
  16. class __TwigTemplate_b61e77d9ff53881a0451f8fef4b260e46c36e5071fc4689f8aa43b2179fecb68 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.             'base_head' => [$this'block_base_head'],
  26.             'base_content' => [$this'block_base_content'],
  27.             'page_wishlist' => [$this'block_page_wishlist'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 2
  33.         return "@LiamoriaBaseTheme/storefront/base.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/page/wishlist/index.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/page/wishlist/index.html.twig"));
  42.         $this->parent $this->loadTemplate("@LiamoriaBaseTheme/storefront/base.html.twig""@Storefront/storefront/page/wishlist/index.html.twig"2);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 3
  50.     public function block_base_head($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_head"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_head"));
  57.         // line 4
  58.         echo "    ";
  59.         $this->loadTemplate("@Storefront/storefront/page/wishlist/meta.html.twig""@Storefront/storefront/page/wishlist/index.html.twig"4)->display($context);
  60.         
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  62.         
  63.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  64.     }
  65.     // line 7
  66.     public function block_base_content($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_content"));
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_content"));
  73.         // line 8
  74.         echo "    ";
  75.         $this->displayBlock('page_wishlist'$context$blocks);
  76.         
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  78.         
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  80.     }
  81.     public function block_page_wishlist($context, array $blocks = [])
  82.     {
  83.         $macros $this->macros;
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  85.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_wishlist"));
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  87.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_wishlist"));
  88.         // line 9
  89.         echo "        <div class=\"cms-page wishlist-page\">
  90.             ";
  91.         // line 10
  92.         $context["searchResult"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "wishlist", [], "any"falsefalsefalse10), "productListing", [], "any"falsefalsefalse10);
  93.         // line 11
  94.         echo "
  95.             ";
  96.         // line 12
  97.         if ((sw_get_attribute($this->env$this->source, ($context["context"] ?? null), "customer", [], "any"falsefalsefalse12) &&  !sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "customer", [], "any"falsefalsefalse12), "guest", [], "any"falsefalsefalse12))) {
  98.             // line 13
  99.             echo "                ";
  100.             $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)]));
  101.             // line 14
  102.             echo "            ";
  103.         } else {
  104.             // line 15
  105.             echo "                ";
  106.             $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"])]];
  107.             // line 21
  108.             echo "                <div class=\"row mh-100\" data-guest-wishlist-page=\"true\" data-guest-wishlist-page-options=\"";
  109.             echo sw_escape_filter($this->envcall_user_func_array($this->env->getFilter('json_encode')->getCallable(), [($context["guestWishlistPageOptions"] ?? null)]), "html"nulltrue);
  110.             echo "\"></div>
  111.             ";
  112.         }
  113.         // line 23
  114.         echo "        </div>
  115.     ";
  116.         
  117.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  118.         
  119.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  120.     }
  121.     public function getTemplateName()
  122.     {
  123.         return "@Storefront/storefront/page/wishlist/index.html.twig";
  124.     }
  125.     public function isTraitable()
  126.     {
  127.         return false;
  128.     }
  129.     public function getDebugInfo()
  130.     {
  131.         return array (  136 => 23,  130 => 21,  127 => 15,  124 => 14,  121 => 13,  119 => 12,  116 => 11,  114 => 10,  111 => 9,  91 => 8,  81 => 7,  70 => 4,  60 => 3,  37 => 2,);
  132.     }
  133.     public function getSourceContext()
  134.     {
  135.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  136. {% block base_head %}
  137.     {% sw_include '@Storefront/storefront/page/wishlist/meta.html.twig' %}
  138. {% endblock %}
  139. {% block base_content %}
  140.     {% block page_wishlist %}
  141.         <div class=\"cms-page wishlist-page\">
  142.             {% set searchResult = page.wishlist.productListing %}
  143.             {% if context.customer and not context.customer.guest %}
  144.                 {% sw_include '@Storefront/storefront/page/wishlist/wishlist-pagelet.html.twig' with { searchResult: searchResult } %}
  145.             {% else %}
  146.                 {% set guestWishlistPageOptions = {
  147.                     pageletRouter: {
  148.                         path: path('frontend.wishlist.guestPage.pagelet'),
  149.                         token: sw_csrf('frontend.wishlist.guestPage.pagelet', {'mode': 'token'})
  150.                     }
  151.                 } %}
  152.                 <div class=\"row mh-100\" data-guest-wishlist-page=\"true\" data-guest-wishlist-page-options=\"{{ guestWishlistPageOptions|json_encode }}\"></div>
  153.             {% endif %}
  154.         </div>
  155.     {% endblock %}
  156. {% endblock %}
  157. ""@Storefront/storefront/page/wishlist/index.html.twig""/srv/users/liamoriasw6/apps/liamoriasw6/vendor/shopware/storefront/Resources/views/storefront/page/wishlist/index.html.twig");
  158.     }
  159. }