var/cache/dev_hc896b0aecebc6aae6bec469c82cd525f/twig/eb/ebe7e425949174de1df58218ae949a3df699e8332d06753b27db8e248cc72ad2.php line 119

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/component/product/card/wishlist.html.twig */
  16. class __TwigTemplate_d8fda69e6a31a5d5cfa985ad254f5d08 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->parent false;
  25.         $this->blocks = [
  26.             'component_product_wishlist' => [$this'block_component_product_wishlist'],
  27.             'component_product_wishlist_button' => [$this'block_component_product_wishlist_button'],
  28.             'component_product_wishlist_icon' => [$this'block_component_product_wishlist_icon'],
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/component/product/card/wishlist.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/component/product/card/wishlist.html.twig"));
  38.         // line 1
  39.         $this->displayBlock('component_product_wishlist'$context$blocks);
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     public function block_component_product_wishlist($context, array $blocks = [])
  46.     {
  47.         $macros $this->macros;
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_wishlist"));
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_wishlist"));
  52.         // line 2
  53.         echo "    ";
  54.         // line 3
  55.         echo "    ";
  56.         $context["addToWishlistOptions"] = ["productId" =>         // line 4
  57. ($context["productId"] ?? null), "router" => ["add" => ["afterLoginPath" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.wishlist.add.after.login", ["productId" =>         // line 7
  58. ($context["productId"] ?? null)]), "path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.wishlist.product.add", ["productId" =>         // line 8
  59. ($context["productId"] ?? null)]), "token" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.wishlist.product.add", ["mode" => "token"])], "remove" => ["path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.wishlist.product.remove", ["productId" =>         // line 12
  60. ($context["productId"] ?? null)]), "token" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.wishlist.product.remove", ["mode" => "token"])]]];
  61.         // line 17
  62.         echo "
  63.     ";
  64.         // line 18
  65.         $context["size"] = (($context["size"]) ?? ("md"));
  66.         // line 19
  67.         echo "
  68.     <div class=\"product-wishlist\">
  69.         ";
  70.         // line 21
  71.         $this->displayBlock('component_product_wishlist_button'$context$blocks);
  72.         // line 44
  73.         echo "    </div>
  74. ";
  75.         
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77.         
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  79.     }
  80.     // line 21
  81.     public function block_component_product_wishlist_button($context, array $blocks = [])
  82.     {
  83.         $macros $this->macros;
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_wishlist_button"));
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_wishlist_button"));
  88.         // line 22
  89.         echo "            <button
  90.                 class=\"product-wishlist-";
  91.         // line 23
  92.         echo sw_escape_filter($this->env, ($context["productId"] ?? null), "html"nulltrue);
  93.         echo " product-wishlist-action";
  94.         if ((($context["appearance"] ?? null) == "circle")) {
  95.             echo "-circle";
  96.         }
  97.         echo " product-wishlist-not-added product-wishlist-loading\"
  98.                 title=\"";
  99.         // line 24
  100.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.toggleWishlist"));
  101.         echo "\"
  102.                 data-add-to-wishlist=\"true\"
  103.                 data-add-to-wishlist-options=\"";
  104.         // line 26
  105.         echo sw_escape_filter($this->env$this->env->getFilter('json_encode')->getCallable()(($context["addToWishlistOptions"] ?? null)), "html"nulltrue);
  106.         echo "\"
  107.             >
  108.                 ";
  109.         // line 28
  110.         $this->displayBlock('component_product_wishlist_icon'$context$blocks);
  111.         // line 42
  112.         echo "            </button>
  113.         ";
  114.         
  115.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  116.         
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  118.     }
  119.     // line 28
  120.     public function block_component_product_wishlist_icon($context, array $blocks = [])
  121.     {
  122.         $macros $this->macros;
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_wishlist_icon"));
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_wishlist_icon"));
  127.         // line 29
  128.         echo "                    ";
  129.         ((function () use ($context$blocks) {
  130.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  131.             $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  132.             return $this->loadTemplate($includeTemplate ?? null"@Storefront/storefront/component/product/card/wishlist.html.twig"29);
  133.         })())->display(twig_array_merge($context, ["class" => "wishlist icon-wishlist-added""size" => ($context["size"] ?? null), "name" => "heart-fill"]));
  134.         // line 30
  135.         echo "                    ";
  136.         ((function () use ($context$blocks) {
  137.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  138.             $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  139.             return $this->loadTemplate($includeTemplate ?? null"@Storefront/storefront/component/product/card/wishlist.html.twig"30);
  140.         })())->display(twig_array_merge($context, ["class" => "wishlist icon-wishlist-not-added""size" => ($context["size"] ?? null), "name" => "heart"]));
  141.         // line 31
  142.         echo "
  143.                     ";
  144.         // line 32
  145.         if (($context["showText"] ?? null)) {
  146.             // line 33
  147.             echo "                        <span class=\"product-wishlist-btn-content text-wishlist-not-added product-wishlist-btn-content-";
  148.             echo sw_escape_filter($this->env, ($context["size"] ?? null), "html"nulltrue);
  149.             echo "\">
  150.                             ";
  151.             // line 34
  152.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.addToWishlist"));
  153.             echo "
  154.                         </span>
  155.                         <span class=\"product-wishlist-btn-content text-wishlist-remove product-wishlist-btn-content-";
  156.             // line 36
  157.             echo sw_escape_filter($this->env, ($context["size"] ?? null), "html"nulltrue);
  158.             echo "\">
  159.                             ";
  160.             // line 37
  161.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.removeFromWishlist"));
  162.             echo "
  163.                         </span>
  164.                     ";
  165.         }
  166.         // line 41
  167.         echo "                ";
  168.         
  169.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  170.         
  171.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  172.     }
  173.     public function getTemplateName()
  174.     {
  175.         return "@Storefront/storefront/component/product/card/wishlist.html.twig";
  176.     }
  177.     public function getDebugInfo()
  178.     {
  179.         return array (  194 => 41,  187 => 37,  183 => 36,  178 => 34,  173 => 33,  171 => 32,  168 => 31,  159 => 30,  150 => 29,  140 => 28,  129 => 42,  127 => 28,  122 => 26,  117 => 24,  109 => 23,  106 => 22,  96 => 21,  85 => 44,  83 => 21,  79 => 19,  77 => 18,  74 => 17,  72 => 12,  71 => 8,  70 => 7,  69 => 4,  67 => 3,  65 => 2,  46 => 1,);
  180.     }
  181.     public function getSourceContext()
  182.     {
  183.         return new Source("{% block component_product_wishlist %}
  184.     {# @deprecated tag:v6.5.0 - Options addToWishlistOptions.router.add.token and addToWishlistOptions.remove.add.token will be removed. #}
  185.     {% set addToWishlistOptions = {
  186.         productId: productId,
  187.         router: {
  188.             add: {
  189.                 afterLoginPath: path('frontend.wishlist.add.after.login', { productId: productId }),
  190.                 path: path('frontend.wishlist.product.add', { productId: productId }),
  191.                 token: sw_csrf('frontend.wishlist.product.add', {\"mode\": \"token\"})
  192.             },
  193.             remove: {
  194.                 path: path('frontend.wishlist.product.remove', { productId: productId }),
  195.                 token: sw_csrf('frontend.wishlist.product.remove', {\"mode\": \"token\"}),
  196.             }
  197.         }
  198.     } %}
  199.     {% set size = size ?? 'md' %}
  200.     <div class=\"product-wishlist\">
  201.         {% block component_product_wishlist_button %}
  202.             <button
  203.                 class=\"product-wishlist-{{ productId }} product-wishlist-action{% if appearance == 'circle' %}-circle{% endif %} product-wishlist-not-added product-wishlist-loading\"
  204.                 title=\"{{ \"listing.toggleWishlist\"|trans|sw_sanitize }}\"
  205.                 data-add-to-wishlist=\"true\"
  206.                 data-add-to-wishlist-options=\"{{ addToWishlistOptions|json_encode }}\"
  207.             >
  208.                 {% block component_product_wishlist_icon %}
  209.                     {% sw_icon 'heart-fill' style { 'class': 'wishlist icon-wishlist-added', 'size': size } %}
  210.                     {% sw_icon 'heart' style {'class': 'wishlist icon-wishlist-not-added', 'size': size } %}
  211.                     {% if showText %}
  212.                         <span class=\"product-wishlist-btn-content text-wishlist-not-added product-wishlist-btn-content-{{ size }}\">
  213.                             {{ \"listing.addToWishlist\"|trans|sw_sanitize }}
  214.                         </span>
  215.                         <span class=\"product-wishlist-btn-content text-wishlist-remove product-wishlist-btn-content-{{ size }}\">
  216.                             {{ \"listing.removeFromWishlist\"|trans|sw_sanitize }}
  217.                         </span>
  218.                     {% endif %}
  219.                 {% endblock %}
  220.             </button>
  221.         {% endblock %}
  222.     </div>
  223. {% endblock %}
  224. ""@Storefront/storefront/component/product/card/wishlist.html.twig""/var/www/share/efb-elektronik.dev.mc.emzcustomers.de/shopware6/vendor/shopware/storefront/Resources/views/storefront/component/product/card/wishlist.html.twig");
  225.     }
  226. }