var/cache/dev_h00a6008ac8d83daed65bb1b250bc45b1/twig/62/629a9a6deb03f9670081bd4df6fb1ebabe2f25469450dd8456473310c2e33e75.php line 41

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. /* @FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig */
  16. class __TwigTemplate_c902663e8bcb605cf80d1efe4ccb999e 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.             'page_checkout_item_info_image_link' => [$this'block_page_checkout_item_info_image_link'],
  26.             'page_checkout_item_info_image_element' => [$this'block_page_checkout_item_info_image_element'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@zenitPlatformStratus/storefront/page/checkout/checkout-item.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig"));
  41.         $this->parent $this->loadTemplate("@zenitPlatformStratus/storefront/page/checkout/checkout-item.html.twig""@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig"2);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_page_checkout_item_info_image_link($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_info_image_link"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_info_image_link"));
  56.         // line 4
  57.         echo "    ";
  58.         $context["isCosts"] =  !sw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "good", [], "any"falsefalsefalse4);
  59.         // line 5
  60.         echo "
  61.     ";
  62.         // line 6
  63.         if (($context["isDiscount"] ?? null)) {
  64.             // line 7
  65.             echo "        <div class=\"cart-item-img cart-item-discount-icon\">
  66.             ";
  67.             // line 8
  68.             ((function () use ($context$blocks) {
  69.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  70.                 $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  71.                 return $this->loadTemplate($includeTemplate ?? null"@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig"8);
  72.             })())->display(twig_array_merge($context, ["color" => "success""name" => "marketing"]));
  73.             // line 11
  74.             echo "        </div>
  75.     ";
  76.         } elseif (        // line 12
  77. ($context["isNested"] ?? null)) {
  78.             // line 13
  79.             echo "        <div class=\"cart-item-nested-icon\">
  80.             ";
  81.             // line 14
  82.             ((function () use ($context$blocks) {
  83.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  84.                 $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  85.                 return $this->loadTemplate($includeTemplate ?? null"@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig"14);
  86.             })())->display(twig_array_merge($context, ["color" => "light""name" => "bag-product"]));
  87.             // line 17
  88.             echo "        </div>
  89.     ";
  90.         } elseif (        // line 18
  91. ($context["isCosts"] ?? null)) {
  92.             // line 19
  93.             echo "        <div class=\"cart-item-img\">
  94.             ";
  95.             // line 20
  96.             ((function () use ($context$blocks) {
  97.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  98.                 $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  99.                 return $this->loadTemplate($includeTemplate ?? null"@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig"20);
  100.             })())->display(twig_array_merge($context, ["color" => "light""name" => "euro"]));
  101.             // line 23
  102.             echo "        </div>
  103.     ";
  104.         } else {
  105.             // line 25
  106.             echo "        <a href=\"";
  107.             echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.detail.page", ["productId" => sw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "referencedId", [], "any"falsefalsefalse25)]), "html"nulltrue);
  108.             echo "\"
  109.            class=\"cart-item-img-link\"
  110.            title=\"";
  111.             // line 27
  112.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "label", [], "any"falsefalsefalse27), "html"nulltrue);
  113.             echo "\"
  114.             ";
  115.             // line 28
  116.             if ((($context["controllerAction"] ?? null) === "confirmPage")) {
  117.                 // line 29
  118.                 echo "                data-toggle=\"modal\"
  119.                 data-modal-class=\"quickview-modal\"
  120.                 data-url=\"";
  121.                 // line 31
  122.                 echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("widgets.quickview.minimal", ["productId" => sw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "referencedId", [], "any"falsefalsefalse31)]), "html"nulltrue);
  123.                 echo "\"
  124.             ";
  125.             }
  126.             // line 33
  127.             echo "        >
  128.             ";
  129.             // line 34
  130.             $this->displayBlock('page_checkout_item_info_image_element'$context$blocks);
  131.             // line 53
  132.             echo "        </a>
  133.     ";
  134.         }
  135.         
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  137.         
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  139.     }
  140.     // line 34
  141.     public function block_page_checkout_item_info_image_element($context, array $blocks = [])
  142.     {
  143.         $macros $this->macros;
  144.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  145.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_info_image_element"));
  146.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  147.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_info_image_element"));
  148.         // line 35
  149.         echo "                ";
  150.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "cover", [], "any"falsefalsefalse35), "url", [], "any"falsefalsefalse35)) {
  151.             // line 36
  152.             echo "                    ";
  153.             ((function () use ($context$blocks) {
  154.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  155.                 $includeTemplate $finder->find("@Storefront/storefront/utilities/thumbnail.html.twig");
  156.                 return $this->loadTemplate($includeTemplate ?? null"@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig"36);
  157.             })())->display(twig_array_merge($context, ["media" => sw_get_attribute($this->env$this->source,             // line 37
  158. ($context["lineItem"] ?? null), "cover", [], "any"falsefalsefalse37), "sizes" => ["default" => "100px"], "attributes" => ["class" => "img-fluid cart-item-img""alt" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 43
  159. ($context["lineItem"] ?? null), "cover", [], "any"falsefalsefalse43), "translated", [], "any"falsefalsefalse43), "alt", [], "any"falsefalsefalse43)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "cover", [], "any"falsefalsefalse43), "translated", [], "any"falsefalsefalse43), "alt", [], "any"falsefalsefalse43)) : ("")), "title" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 44
  160. ($context["lineItem"] ?? null), "cover", [], "any"falsefalsefalse44), "translated", [], "any"falsefalsefalse44), "title", [], "any"falsefalsefalse44)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "cover", [], "any"falsefalsefalse44), "translated", [], "any"falsefalsefalse44), "title", [], "any"falsefalsefalse44)) : (""))], "name" => "cart-item-img-thumbnails"]));
  161.             // line 47
  162.             echo "                ";
  163.         } else {
  164.             // line 48
  165.             echo "                    ";
  166.             ((function () use ($context$blocks) {
  167.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  168.                 $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  169.                 return $this->loadTemplate($includeTemplate ?? null"@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig"48);
  170.             })())->display(twig_array_merge($context, ["size" => "fluid""name" => "placeholder"]));
  171.             // line 51
  172.             echo "                ";
  173.         }
  174.         // line 52
  175.         echo "            ";
  176.         
  177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  178.         
  179.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  180.     }
  181.     public function getTemplateName()
  182.     {
  183.         return "@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig";
  184.     }
  185.     public function isTraitable()
  186.     {
  187.         return false;
  188.     }
  189.     public function getDebugInfo()
  190.     {
  191.         return array (  202 => 52,  199 => 51,  190 => 48,  187 => 47,  185 => 44,  184 => 43,  183 => 37,  175 => 36,  172 => 35,  162 => 34,  150 => 53,  148 => 34,  145 => 33,  140 => 31,  136 => 29,  134 => 28,  130 => 27,  124 => 25,  120 => 23,  112 => 20,  109 => 19,  107 => 18,  104 => 17,  96 => 14,  93 => 13,  91 => 12,  88 => 11,  80 => 8,  77 => 7,  75 => 6,  72 => 5,  69 => 4,  59 => 3,  36 => 2,);
  192.     }
  193.     public function getSourceContext()
  194.     {
  195.         return new Source("{% sw_extends '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
  196. {% block page_checkout_item_info_image_link %}
  197.     {% set isCosts = (not lineItem.good ) %}
  198.     {% if isDiscount %}
  199.         <div class=\"cart-item-img cart-item-discount-icon\">
  200.             {% sw_icon 'marketing' style {
  201.                 'color': 'success'
  202.             } %}
  203.         </div>
  204.     {% elseif isNested %}
  205.         <div class=\"cart-item-nested-icon\">
  206.             {% sw_icon 'bag-product' style {
  207.                 'color': 'light'
  208.             } %}
  209.         </div>
  210.     {% elseif isCosts %}
  211.         <div class=\"cart-item-img\">
  212.             {% sw_icon 'euro' style {
  213.                 'color': 'light'
  214.             } %}
  215.         </div>
  216.     {% else %}
  217.         <a href=\"{{ seoUrl('frontend.detail.page', {'productId': lineItem.referencedId}) }}\"
  218.            class=\"cart-item-img-link\"
  219.            title=\"{{ lineItem.label }}\"
  220.             {% if controllerAction is same as('confirmPage') %}
  221.                 data-toggle=\"modal\"
  222.                 data-modal-class=\"quickview-modal\"
  223.                 data-url=\"{{ path('widgets.quickview.minimal', { 'productId': lineItem.referencedId }) }}\"
  224.             {% endif %}
  225.         >
  226.             {% block page_checkout_item_info_image_element %}
  227.                 {% if lineItem.cover.url %}
  228.                     {% sw_thumbnails 'cart-item-img-thumbnails' with {
  229.                         media: lineItem.cover,
  230.                         sizes: {
  231.                             'default': '100px'
  232.                         },
  233.                         attributes: {
  234.                             'class': 'img-fluid cart-item-img',
  235.                             'alt': (lineItem.cover.translated.alt ?: ''),
  236.                             'title': (lineItem.cover.translated.title ?: '')
  237.                         }
  238.                     } %}
  239.                 {% else %}
  240.                     {% sw_icon 'placeholder' style {
  241.                         'size': 'fluid'
  242.                     } %}
  243.                 {% endif %}
  244.             {% endblock %}
  245.         </a>
  246.     {% endif %}
  247. {% endblock %}
  248. ""@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig""/var/www/dev.artecon.426.agency/custom/plugins/fourtwosixpaymentsurcharge/src/Resources/views/storefront/page/checkout/checkout-item.html.twig");
  249.     }
  250. }