var/cache/dev_ha61ef46992a3948952fe944d3fcb7240/twig/a1/a18daf964871f26189645e487d2bfeb6ded5d00251135bdb0081464d9915bb68.php line 93

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. /* @Storefront/storefront/block/cms-block-cross-selling.html.twig */
  15. class __TwigTemplate_2594bfd0808ca0a2ea0195acd2229e812e2e61f0d030e21f1263bff4bd5b1fa2 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->parent false;
  24.         $this->blocks = [
  25.             'block_cross_selling' => [$this'block_block_cross_selling'],
  26.             'block_cross_selling_inner' => [$this'block_block_cross_selling_inner'],
  27.         ];
  28.     }
  29.     protected function doDisplay(array $context, array $blocks = [])
  30.     {
  31.         $macros $this->macros;
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  33.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/block/cms-block-cross-selling.html.twig"));
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  35.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/block/cms-block-cross-selling.html.twig"));
  36.         // line 1
  37.         $this->displayBlock('block_cross_selling'$context$blocks);
  38.         
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  40.         
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  42.     }
  43.     public function block_block_cross_selling($context, array $blocks = [])
  44.     {
  45.         $macros $this->macros;
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  47.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""block_cross_selling"));
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""block_cross_selling"));
  50.         // line 2
  51.         echo "    ";
  52.         $context["element"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["block"] ?? null), "slots", [], "any"falsefalsefalse2), "getSlot", [=> "content"], "method"falsefalsefalse2);
  53.         // line 3
  54.         echo "    ";
  55.         $context["columns"] = 1;
  56.         // line 4
  57.         echo "    ";
  58.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsetruefalse4), "crossSellings", [], "any"falsetruefalse4), "elements", [], "any"truetruefalse4) && (=== twig_compare(twig_length_filter($this->envtwig_array_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse4), "crossSellings", [], "any"falsefalsefalse4), "elements", [], "any"falsefalsefalse4), function ($__item__) use ($context$macros) { $context["item"] = $__item__; return (=== twig_compare(sw_get_attribute($this->env$this->source, ($context["item"] ?? null), "total", [], "any"falsefalsefalse4), 0)); })), 0)))) {
  59.             // line 5
  60.             echo "        <div class=\"col-12\" data-cms-element-id=\"";
  61.             echo twig_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["element"] ?? null), "id", [], "any"falsefalsefalse5), "html"nulltrue);
  62.             echo "\">
  63.             ";
  64.             // line 6
  65.             $this->displayBlock('block_cross_selling_inner'$context$blocks);
  66.             // line 9
  67.             echo "        </div>
  68.     ";
  69.         }
  70.         
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  72.         
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  74.     }
  75.     // line 6
  76.     public function block_block_cross_selling_inner($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""block_cross_selling_inner"));
  81.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""block_cross_selling_inner"));
  83.         // line 7
  84.         echo "                ";
  85.         $__internal_compile_0 null;
  86.         try {
  87.             $__internal_compile_0 =             ((function () use ($context$blocks) {
  88.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  89.                 $includeTemplate $finder->find((("@Storefront/storefront/element/cms-element-" sw_get_attribute($this->env$this->source, ($context["element"] ?? null), "type", [], "any"falsefalsefalse7)) . ".html.twig"));
  90.                 return $this->loadTemplate($includeTemplate ?? null"@Storefront/storefront/block/cms-block-cross-selling.html.twig"7);
  91.             })());
  92.         } catch (LoaderError $e) {
  93.             // ignore missing template
  94.         }
  95.         if ($__internal_compile_0) {
  96.             $__internal_compile_0->display($context);
  97.         }
  98.         // line 8
  99.         echo "            ";
  100.         
  101.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  102.         
  103.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  104.     }
  105.     public function getTemplateName()
  106.     {
  107.         return "@Storefront/storefront/block/cms-block-cross-selling.html.twig";
  108.     }
  109.     public function getDebugInfo()
  110.     {
  111.         return array (  119 => 8,  102 => 7,  92 => 6,  80 => 9,  78 => 6,  73 => 5,  70 => 4,  67 => 3,  64 => 2,  45 => 1,);
  112.     }
  113.     public function getSourceContext()
  114.     {
  115.         return new Source("{% block block_cross_selling %}
  116.     {% set element = block.slots.getSlot('content') %}
  117.     {% set columns = 1 %}
  118.     {% if element.data.crossSellings.elements is defined and element.data.crossSellings.elements|filter(item => item.total > 0)|length > 0 %}
  119.         <div class=\"col-12\" data-cms-element-id=\"{{ element.id }}\">
  120.             {% block block_cross_selling_inner %}
  121.                 {% sw_include \"@Storefront/storefront/element/cms-element-\" ~ element.type ~ \".html.twig\" ignore missing %}
  122.             {% endblock %}
  123.         </div>
  124.     {% endif %}
  125. {% endblock %}
  126. ""@Storefront/storefront/block/cms-block-cross-selling.html.twig""/www/htdocs/w01c128a/atngmbh.webneo-demo.de/www/vendor/shopware/storefront/Resources/views/storefront/block/cms-block-cross-selling.html.twig");
  127.     }
  128. }