<?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;
/* @FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig */
class __TwigTemplate_c902663e8bcb605cf80d1efe4ccb999e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_checkout_item_info_image_link' => [$this, 'block_page_checkout_item_info_image_link'],
'page_checkout_item_info_image_element' => [$this, 'block_page_checkout_item_info_image_element'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@zenitPlatformStratus/storefront/page/checkout/checkout-item.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", "@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig"));
$this->parent = $this->loadTemplate("@zenitPlatformStratus/storefront/page/checkout/checkout-item.html.twig", "@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.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_page_checkout_item_info_image_link($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_checkout_item_info_image_link"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_info_image_link"));
// line 4
echo " ";
$context["isCosts"] = !sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "good", [], "any", false, false, false, 4);
// line 5
echo "
";
// line 6
if (($context["isDiscount"] ?? null)) {
// line 7
echo " <div class=\"cart-item-img cart-item-discount-icon\">
";
// line 8
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig", 8);
})())->display(twig_array_merge($context, ["color" => "success", "name" => "marketing"]));
// line 11
echo " </div>
";
} elseif ( // line 12
($context["isNested"] ?? null)) {
// line 13
echo " <div class=\"cart-item-nested-icon\">
";
// line 14
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig", 14);
})())->display(twig_array_merge($context, ["color" => "light", "name" => "bag-product"]));
// line 17
echo " </div>
";
} elseif ( // line 18
($context["isCosts"] ?? null)) {
// line 19
echo " <div class=\"cart-item-img\">
";
// line 20
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig", 20);
})())->display(twig_array_merge($context, ["color" => "light", "name" => "euro"]));
// line 23
echo " </div>
";
} else {
// line 25
echo " <a href=\"";
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", false, false, false, 25)]), "html", null, true);
echo "\"
class=\"cart-item-img-link\"
title=\"";
// line 27
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "label", [], "any", false, false, false, 27), "html", null, true);
echo "\"
";
// line 28
if ((($context["controllerAction"] ?? null) === "confirmPage")) {
// line 29
echo " data-toggle=\"modal\"
data-modal-class=\"quickview-modal\"
data-url=\"";
// line 31
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", false, false, false, 31)]), "html", null, true);
echo "\"
";
}
// line 33
echo " >
";
// line 34
$this->displayBlock('page_checkout_item_info_image_element', $context, $blocks);
// line 53
echo " </a>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 34
public function block_page_checkout_item_info_image_element($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_checkout_item_info_image_element"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_info_image_element"));
// line 35
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "cover", [], "any", false, false, false, 35), "url", [], "any", false, false, false, 35)) {
// line 36
echo " ";
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/thumbnail.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig", 36);
})())->display(twig_array_merge($context, ["media" => sw_get_attribute($this->env, $this->source, // line 37
($context["lineItem"] ?? null), "cover", [], "any", false, false, false, 37), "sizes" => ["default" => "100px"], "attributes" => ["class" => "img-fluid cart-item-img", "alt" => ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 43
($context["lineItem"] ?? null), "cover", [], "any", false, false, false, 43), "translated", [], "any", false, false, false, 43), "alt", [], "any", false, false, false, 43)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "cover", [], "any", false, false, false, 43), "translated", [], "any", false, false, false, 43), "alt", [], "any", false, false, false, 43)) : ("")), "title" => ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 44
($context["lineItem"] ?? null), "cover", [], "any", false, false, false, 44), "translated", [], "any", false, false, false, 44), "title", [], "any", false, false, false, 44)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "cover", [], "any", false, false, false, 44), "translated", [], "any", false, false, false, 44), "title", [], "any", false, false, false, 44)) : (""))], "name" => "cart-item-img-thumbnails"]));
// line 47
echo " ";
} else {
// line 48
echo " ";
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig", 48);
})())->display(twig_array_merge($context, ["size" => "fluid", "name" => "placeholder"]));
// line 51
echo " ";
}
// line 52
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
{% block page_checkout_item_info_image_link %}
{% set isCosts = (not lineItem.good ) %}
{% if isDiscount %}
<div class=\"cart-item-img cart-item-discount-icon\">
{% sw_icon 'marketing' style {
'color': 'success'
} %}
</div>
{% elseif isNested %}
<div class=\"cart-item-nested-icon\">
{% sw_icon 'bag-product' style {
'color': 'light'
} %}
</div>
{% elseif isCosts %}
<div class=\"cart-item-img\">
{% sw_icon 'euro' style {
'color': 'light'
} %}
</div>
{% else %}
<a href=\"{{ seoUrl('frontend.detail.page', {'productId': lineItem.referencedId}) }}\"
class=\"cart-item-img-link\"
title=\"{{ lineItem.label }}\"
{% if controllerAction is same as('confirmPage') %}
data-toggle=\"modal\"
data-modal-class=\"quickview-modal\"
data-url=\"{{ path('widgets.quickview.minimal', { 'productId': lineItem.referencedId }) }}\"
{% endif %}
>
{% block page_checkout_item_info_image_element %}
{% if lineItem.cover.url %}
{% sw_thumbnails 'cart-item-img-thumbnails' with {
media: lineItem.cover,
sizes: {
'default': '100px'
},
attributes: {
'class': 'img-fluid cart-item-img',
'alt': (lineItem.cover.translated.alt ?: ''),
'title': (lineItem.cover.translated.title ?: '')
}
} %}
{% else %}
{% sw_icon 'placeholder' style {
'size': 'fluid'
} %}
{% endif %}
{% endblock %}
</a>
{% endif %}
{% endblock %}
", "@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");
}
}