<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
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;
/* @SwagCmsExtensions/storefront/component/product/card/box-standard.html.twig */
class __TwigTemplate_eb7fcf3df22996068d0580a654d6c062039bd7185164567a7045176e89d394c6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'component_product_box' => [$this, 'block_component_product_box'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/component/product/card/box-standard.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SwagCmsExtensions/storefront/component/product/card/box-standard.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SwagCmsExtensions/storefront/component/product/card/box-standard.html.twig"));
// line 3
$context["quickview"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "extensions", [], "any", false, false, false, 3), "swagCmsExtensionsQuickview", [], "any", false, false, false, 3);
// line 5
$context["productIsActive"] = ( !(null === ($context["product"] ?? null)) && sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "active", [], "any", false, false, false, 5));
// line 6
$context["quickviewIsActive"] = (( !(null === ($context["quickview"] ?? null)) && sw_get_attribute($this->env, $this->source, ($context["quickview"] ?? null), "active", [], "any", false, false, false, 6)) || $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "SwagCmsExtensions.config.enableSearchQuickview"));
// line 8
$context["quickviewOptions"] = ["productId" => sw_get_attribute($this->env, $this->source, // line 9
($context["product"] ?? null), "id", [], "any", false, false, false, 9), "sectionId" => sw_get_attribute($this->env, $this->source, // line 10
($context["block"] ?? null), "sectionId", [], "any", false, false, false, 10)];
// line 2
$this->parent = $this->loadTemplate("@Storefront/storefront/component/product/card/box-standard.html.twig", "@SwagCmsExtensions/storefront/component/product/card/box-standard.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 13
public function block_component_product_box($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_box"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_box"));
// line 14
echo " ";
if ((($context["productIsActive"] ?? null) && ($context["quickviewIsActive"] ?? null))) {
// line 15
echo " <div data-swag-cms-extensions-quickview-box=\"true\"
data-swag-cms-extensions-quickview-box-options=\"";
// line 16
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('json_encode')->getCallable(), [($context["quickviewOptions"] ?? null)]), "html", null, true);
echo "\">
";
// line 17
$this->displayParentBlock("component_product_box", $context, $blocks);
echo "
</div>
";
} else {
// line 20
echo " ";
$this->displayParentBlock("component_product_box", $context, $blocks);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SwagCmsExtensions/storefront/component/product/card/box-standard.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 95 => 20, 89 => 17, 85 => 16, 82 => 15, 79 => 14, 69 => 13, 58 => 2, 56 => 10, 55 => 9, 54 => 8, 52 => 6, 50 => 5, 48 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
{% set quickview = block.extensions.swagCmsExtensionsQuickview %}
{% set productIsActive = product is not null and product.active %}
{% set quickviewIsActive = (quickview is not null and quickview.active) or config('SwagCmsExtensions.config.enableSearchQuickview') %}
{% set quickviewOptions = {
productId: product.id,
sectionId: block.sectionId
} %}
{% block component_product_box %}
{% if productIsActive and quickviewIsActive %}
<div data-swag-cms-extensions-quickview-box=\"true\"
data-swag-cms-extensions-quickview-box-options=\"{{ quickviewOptions|json_encode }}\">
{{ parent() }}
</div>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
", "@SwagCmsExtensions/storefront/component/product/card/box-standard.html.twig", "/www/htdocs/w01c128a/atngmbh.webneo-demo.de/www/custom/plugins/SwagCmsExtensions/src/Resources/views/storefront/component/product/card/box-standard.html.twig");
}
}