var/cache/dev_ha61ef46992a3948952fe944d3fcb7240/twig/97/974519010d0f317d155fde5e8250ec165d34f8ce0957f9fc3f88e835923ffa07.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use Twig\Error\LoaderError;
  5. use Twig\Error\RuntimeError;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* @SwagCmsExtensions/storefront/component/product/card/box-standard.html.twig */
  15. class __TwigTemplate_eb7fcf3df22996068d0580a654d6c062039bd7185164567a7045176e89d394c6 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'component_product_box' => [$this'block_component_product_box'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 2
  30.         return "@Storefront/storefront/component/product/card/box-standard.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SwagCmsExtensions/storefront/component/product/card/box-standard.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SwagCmsExtensions/storefront/component/product/card/box-standard.html.twig"));
  39.         // line 3
  40.         $context["quickview"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["block"] ?? null), "extensions", [], "any"falsefalsefalse3), "swagCmsExtensionsQuickview", [], "any"falsefalsefalse3);
  41.         // line 5
  42.         $context["productIsActive"] = ( !(null === ($context["product"] ?? null)) && sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "active", [], "any"falsefalsefalse5));
  43.         // line 6
  44.         $context["quickviewIsActive"] = (( !(null === ($context["quickview"] ?? null)) && sw_get_attribute($this->env$this->source, ($context["quickview"] ?? null), "active", [], "any"falsefalsefalse6)) || $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"SwagCmsExtensions.config.enableSearchQuickview"));
  45.         // line 8
  46.         $context["quickviewOptions"] = ["productId" => sw_get_attribute($this->env$this->source,         // line 9
  47. ($context["product"] ?? null), "id", [], "any"falsefalsefalse9), "sectionId" => sw_get_attribute($this->env$this->source,         // line 10
  48. ($context["block"] ?? null), "sectionId", [], "any"falsefalsefalse10)];
  49.         // line 2
  50.         $this->parent $this->loadTemplate("@Storefront/storefront/component/product/card/box-standard.html.twig""@SwagCmsExtensions/storefront/component/product/card/box-standard.html.twig"2);
  51.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  52.         
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  54.         
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  56.     }
  57.     // line 13
  58.     public function block_component_product_box($context, array $blocks = [])
  59.     {
  60.         $macros $this->macros;
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box"));
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box"));
  65.         // line 14
  66.         echo "    ";
  67.         if ((($context["productIsActive"] ?? null) && ($context["quickviewIsActive"] ?? null))) {
  68.             // line 15
  69.             echo "        <div data-swag-cms-extensions-quickview-box=\"true\"
  70.              data-swag-cms-extensions-quickview-box-options=\"";
  71.             // line 16
  72.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFilter('json_encode')->getCallable(), [($context["quickviewOptions"] ?? null)]), "html"nulltrue);
  73.             echo "\">
  74.             ";
  75.             // line 17
  76.             $this->displayParentBlock("component_product_box"$context$blocks);
  77.             echo "
  78.         </div>
  79.     ";
  80.         } else {
  81.             // line 20
  82.             echo "        ";
  83.             $this->displayParentBlock("component_product_box"$context$blocks);
  84.             echo "
  85.     ";
  86.         }
  87.         
  88.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  89.         
  90.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  91.     }
  92.     public function getTemplateName()
  93.     {
  94.         return "@SwagCmsExtensions/storefront/component/product/card/box-standard.html.twig";
  95.     }
  96.     public function isTraitable()
  97.     {
  98.         return false;
  99.     }
  100.     public function getDebugInfo()
  101.     {
  102.         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,);
  103.     }
  104.     public function getSourceContext()
  105.     {
  106.         return new Source("{% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
  107. {% set quickview = block.extensions.swagCmsExtensionsQuickview %}
  108. {% set productIsActive = product is not null and product.active %}
  109. {% set quickviewIsActive = (quickview is not null and quickview.active) or config('SwagCmsExtensions.config.enableSearchQuickview') %}
  110. {% set quickviewOptions = {
  111.     productId: product.id,
  112.     sectionId: block.sectionId
  113. } %}
  114. {% block component_product_box %}
  115.     {% if productIsActive and quickviewIsActive %}
  116.         <div data-swag-cms-extensions-quickview-box=\"true\"
  117.              data-swag-cms-extensions-quickview-box-options=\"{{ quickviewOptions|json_encode }}\">
  118.             {{ parent() }}
  119.         </div>
  120.     {% else %}
  121.         {{ parent() }}
  122.     {% endif %}
  123. {% endblock %}
  124. ""@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");
  125.     }
  126. }