var/cache/dev_ha61ef46992a3948952fe944d3fcb7240/twig/a9/a9b93a46130a2c91cd006ca6ed8a6d27fdfb4235b6a534b7c09b1fa23708f1b3.php line 50

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. /* @ATNTheme/storefront/component/product/card/box-standard.html.twig */
  15. class __TwigTemplate_0a474e178fa7e86d198d0bd6e0b39422c0071af2f035bdf6fcba6237eab98767 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_content' => [$this'block_component_product_box_content'],
  25.             'component_product_box_variant_characteristics' => [$this'block_component_product_box_variant_characteristics'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@SwagCmsExtensions/storefront/component/product/card/box-standard.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ATNTheme/storefront/component/product/card/box-standard.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ATNTheme/storefront/component/product/card/box-standard.html.twig"));
  40.         $this->parent $this->loadTemplate("@SwagCmsExtensions/storefront/component/product/card/box-standard.html.twig""@ATNTheme/storefront/component/product/card/box-standard.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_component_product_box_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_content"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_content"));
  55.         // line 4
  56.         echo "    ";
  57.         if ((( !($context["cover"] ?? null) && sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "coverId", [], "any"falsefalsefalse4)) && (=== twig_compare(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["product"] ?? null), "translated", [], "any"falsefalsefalse4), "name", [], "any"falsefalsefalse4), "ATN Testprodukt")))) {
  58.             // line 5
  59.             echo "        ";
  60.             $context["coverMediaCollection"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\MediaExtension']->searchMedia([=> sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "coverId", [], "any"falsefalsefalse5)], sw_get_attribute($this->env$this->source, ($context["context"] ?? null), "context", [], "any"falsefalsefalse5));
  61.             // line 6
  62.             echo "        ";
  63.             $context["cover"] = sw_get_attribute($this->env$this->source, ($context["coverMediaCollection"] ?? null), "get", [=> sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "coverId", [], "any"falsefalsefalse6)], "method"falsefalsefalse6);
  64.             // line 7
  65.             echo "    ";
  66.         }
  67.         // line 8
  68.         echo "    ";
  69.         $this->displayParentBlock("component_product_box_content"$context$blocks);
  70.         echo "
  71. ";
  72.         
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  74.         
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  76.     }
  77.     // line 11
  78.     public function block_component_product_box_variant_characteristics($context, array $blocks = [])
  79.     {
  80.         $macros $this->macros;
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_variant_characteristics"));
  83.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_variant_characteristics"));
  85.         // line 12
  86.         echo "
  87.     ";
  88.         // line 13
  89.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["product"] ?? null), "translated", [], "any"falsefalsefalse13), "customFields", [], "any"falsefalsefalse13), "custom_extra_property_1", [], "any"falsefalsefalse13) || sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["product"] ?? null), "translated", [], "any"falsefalsefalse13), "customFields", [], "any"falsefalsefalse13), "custom_extra_property_2", [], "any"falsefalsefalse13))) {
  90.             // line 14
  91.             echo "        <div class=\"product-properties my-3\">
  92.             <div class=\"product-property my-2\">";
  93.             // line 15
  94.             echo sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["product"] ?? null), "translated", [], "any"falsefalsefalse15), "customFields", [], "any"falsefalsefalse15), "custom_extra_property_1", [], "any"falsefalsefalse15);
  95.             echo "</div>
  96.             <div class=\"product-property my-2\">";
  97.             // line 16
  98.             echo sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["product"] ?? null), "translated", [], "any"falsefalsefalse16), "customFields", [], "any"falsefalsefalse16), "custom_extra_property_2", [], "any"falsefalsefalse16);
  99.             echo "</div>
  100.         </div>
  101.     ";
  102.         }
  103.         // line 19
  104.         echo "
  105.     ";
  106.         
  107.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  108.         
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  110.     }
  111.     public function getTemplateName()
  112.     {
  113.         return "@ATNTheme/storefront/component/product/card/box-standard.html.twig";
  114.     }
  115.     public function isTraitable()
  116.     {
  117.         return false;
  118.     }
  119.     public function getDebugInfo()
  120.     {
  121.         return array (  122 => 19,  116 => 16,  112 => 15,  109 => 14,  107 => 13,  104 => 12,  94 => 11,  81 => 8,  78 => 7,  75 => 6,  72 => 5,  69 => 4,  59 => 3,  36 => 2,);
  122.     }
  123.     public function getSourceContext()
  124.     {
  125.         return new Source("{% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
  126. {% block component_product_box_content %}
  127.     {% if not cover and product.coverId and product.translated.name =='ATN Testprodukt' %}
  128.         {% set coverMediaCollection = searchMedia([product.coverId], context.context) %}
  129.         {% set cover = coverMediaCollection.get(product.coverId) %}
  130.     {% endif %}
  131.     {{ parent() }}
  132. {% endblock %}
  133. {% block component_product_box_variant_characteristics %}
  134.     {% if product.translated.customFields.custom_extra_property_1 or product.translated.customFields.custom_extra_property_2 %}
  135.         <div class=\"product-properties my-3\">
  136.             <div class=\"product-property my-2\">{{ product.translated.customFields.custom_extra_property_1|raw }}</div>
  137.             <div class=\"product-property my-2\">{{ product.translated.customFields.custom_extra_property_2|raw }}</div>
  138.         </div>
  139.     {% endif %}
  140.     {# {% sw_include '@ATNTheme/storefront/component/product/properties/product-properties.html.twig' %} #}
  141. {% endblock %}""@ATNTheme/storefront/component/product/card/box-standard.html.twig""/www/htdocs/w01c128a/atngmbh.webneo-demo.de/www/custom/plugins/ATNTheme/src/Resources/views/storefront/component/product/card/box-standard.html.twig");
  142.     }
  143. }