var/cache/dev_hc896b0aecebc6aae6bec469c82cd525f/twig/06/064c07971a669f067846ef547663880afdbfaecd559c37cbc0bf9ec1ce929fac.php line 40

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. /* @EfbStorefront/storefront/component/product/card/wishlist.html.twig */
  16. class __TwigTemplate_c8029dd78bc29232914a083770485a23 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.             'component_product_wishlist_icon' => [$this'block_component_product_wishlist_icon'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@MindsShoppingCartGoals/storefront/component/product/card/wishlist.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EfbStorefront/storefront/component/product/card/wishlist.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EfbStorefront/storefront/component/product/card/wishlist.html.twig"));
  40.         $this->parent $this->loadTemplate("@MindsShoppingCartGoals/storefront/component/product/card/wishlist.html.twig""@EfbStorefront/storefront/component/product/card/wishlist.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_component_product_wishlist_icon($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_wishlist_icon"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_wishlist_icon"));
  55.         // line 4
  56.         echo "    ";
  57.         ((function () use ($context$blocks) {
  58.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  59.             $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  60.             return $this->loadTemplate($includeTemplate ?? null"@EfbStorefront/storefront/component/product/card/wishlist.html.twig"4);
  61.         })())->display(twig_array_merge($context, ["namespace" => "EfbStorefront""class" => "wishlist icon-wishlist-added""size" => ($context["size"] ?? null), "name" => "heart-fill"]));
  62.         // line 5
  63.         echo "    ";
  64.         ((function () use ($context$blocks) {
  65.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  66.             $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  67.             return $this->loadTemplate($includeTemplate ?? null"@EfbStorefront/storefront/component/product/card/wishlist.html.twig"5);
  68.         })())->display(twig_array_merge($context, ["namespace" => "EfbStorefront""class" => "wishlist icon-wishlist-not-added""size" => ($context["size"] ?? null), "name" => "heart"]));
  69.         // line 6
  70.         echo "
  71.     ";
  72.         // line 7
  73.         if (($context["showText"] ?? null)) {
  74.             // line 8
  75.             echo "        <span class=\"product-wishlist-btn-content text-wishlist-not-added product-wishlist-btn-content-";
  76.             echo sw_escape_filter($this->env, ($context["size"] ?? null), "html"nulltrue);
  77.             echo "\">
  78.                             ";
  79.             // line 9
  80.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.addToWishlist"));
  81.             echo "
  82.                         </span>
  83.         <span class=\"product-wishlist-btn-content text-wishlist-remove product-wishlist-btn-content-";
  84.             // line 11
  85.             echo sw_escape_filter($this->env, ($context["size"] ?? null), "html"nulltrue);
  86.             echo "\">
  87.                             ";
  88.             // line 12
  89.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.removeFromWishlist"));
  90.             echo "
  91.                         </span>
  92.     ";
  93.         }
  94.         
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  96.         
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  98.     }
  99.     public function getTemplateName()
  100.     {
  101.         return "@EfbStorefront/storefront/component/product/card/wishlist.html.twig";
  102.     }
  103.     public function isTraitable()
  104.     {
  105.         return false;
  106.     }
  107.     public function getDebugInfo()
  108.     {
  109.         return array (  105 => 12,  101 => 11,  96 => 9,  91 => 8,  89 => 7,  86 => 6,  77 => 5,  68 => 4,  58 => 3,  35 => 2,);
  110.     }
  111.     public function getSourceContext()
  112.     {
  113.         return new Source("{% sw_extends '@Storefront/storefront/component/product/card/wishlist.html.twig' %}
  114. {% block component_product_wishlist_icon %}
  115.     {% sw_icon 'heart-fill' style { 'namespace': 'EfbStorefront', 'class': 'wishlist icon-wishlist-added', 'size': size } %}
  116.     {% sw_icon 'heart' style { 'namespace': 'EfbStorefront', 'class': 'wishlist icon-wishlist-not-added', 'size': size } %}
  117.     {% if showText %}
  118.         <span class=\"product-wishlist-btn-content text-wishlist-not-added product-wishlist-btn-content-{{ size }}\">
  119.                             {{ \"listing.addToWishlist\"|trans|sw_sanitize }}
  120.                         </span>
  121.         <span class=\"product-wishlist-btn-content text-wishlist-remove product-wishlist-btn-content-{{ size }}\">
  122.                             {{ \"listing.removeFromWishlist\"|trans|sw_sanitize }}
  123.                         </span>
  124.     {% endif %}
  125. {% endblock %}""@EfbStorefront/storefront/component/product/card/wishlist.html.twig""/var/www/share/efb-elektronik.dev.mc.emzcustomers.de/shopware6/custom/static-plugins/EfbStorefront/Resources/views/storefront/component/product/card/wishlist.html.twig");
  126.     }
  127. }