var/cache/dev_ha61ef46992a3948952fe944d3fcb7240/twig/32/3280782674a5959ba249ac396a5149d65b22440605437177463152163787c4fa.php line 76

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/section/cms-section-block-container.html.twig */
  15. class __TwigTemplate_0411780a15899c3d9c15a266b376ba8271470299d24f6b33b0db42c3b25315f1 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.             'section_content_block' => [$this'block_section_content_block'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 2
  30.         return "@Storefront/storefront/section/cms-section-block-container.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""@ATNTheme/storefront/section/cms-section-block-container.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""@ATNTheme/storefront/section/cms-section-block-container.html.twig"));
  39.         $this->parent $this->loadTemplate("@Storefront/storefront/section/cms-section-block-container.html.twig""@ATNTheme/storefront/section/cms-section-block-container.html.twig"2);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_section_content_block($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block"));
  54.         // line 4
  55.         echo "    ";
  56.         if (((=== twig_compare(sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "type", [], "any"falsefalsefalse4), "cross-selling")) && (>= twig_compare(twig_length_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["block"] ?? null), "slots", [], "any"falsefalsefalse4), "first", [], "any"falsefalsefalse4), "data", [], "any"falsefalsefalse4), "crossSellings", [], "any"falsefalsefalse4), "elements", [], "any"falsefalsefalse4)), 0)))) {
  57.             // line 5
  58.             echo "    ";
  59.         } else {
  60.             // line 6
  61.             echo "        ";
  62.             $this->displayParentBlock("section_content_block"$context$blocks);
  63.             echo "
  64.         ";
  65.             // line 8
  66.             $context['_parent'] = $context;
  67.             $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["block"] ?? null), "slots", [], "any"falsefalsefalse8), "first", [], "any"falsefalsefalse8), "data", [], "any"falsefalsefalse8), "crossSellings", [], "any"falsefalsefalse8), "elements", [], "any"falsefalsefalse8));
  68.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  69.                 // line 9
  70.                 echo "            ";
  71.                 if ((=== twig_compare(sw_get_attribute($this->env$this->source$context["item"], "total", [], "any"falsefalsefalse9), 4))) {
  72.                     // line 10
  73.                     echo "                <div class=\"cms-block cms-block-text\" style=\"\">
  74.                     <div class=\"cms-block-container\" style=\"padding: 7% 20px 0 20px; margin-top: 5%\">
  75.                         <div class=\"cms-block-container-row row cms-row \">
  76.                             <div class=\"col-12\" data-cms-element-id=\"30ebb258f57040d49157510173468cfc\">
  77.                                 <div class=\" cms-element-text\">
  78.                                     <div class=\"text-center\">
  79.                                         <button class=\"btn btn-outline-primary btn-animated\" role=\"button\"
  80.                                                 data-wbn-expand-slider-options=\"{&quot;sliderBlockClass&quot;: &quot;slider-1&quot; }\"
  81.                                                 data-wbn-expand-slider=\"true\" aria-pressed=\"true\">
  82.                                             <span class=\"button-text\">Alle Produkte in der Übersicht</span>
  83.                                             <span class=\"icon icon-arrow-right icon-primary\">
  84.                             <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path
  85.                                         fill=\"#758CA3\"
  86.                                         fill-rule=\"evenodd\"
  87.                                         d=\"m20.5858 13-4.293 4.2929c-.3904.3905-.3904 1.0237 0 1.4142.3906.3905 1.0238.3905 1.4143 0l6-6c.3905-.3905.3905-1.0237 0-1.4142l-6-6c-.3905-.3905-1.0237-.3905-1.4142 0-.3905.3905-.3905 1.0237 0 1.4142L20.5858 11H1c-.5523 0-1 .4477-1 1s.4477 1 1 1h19.5858z\"></path></svg>
  88.                     </span>
  89.                                         </button>
  90.                                     </div>
  91.                                 </div>
  92.                             </div>
  93.                         </div>
  94.                     </div>
  95.                 </div>
  96.             ";
  97.                 } else {
  98.                     // line 34
  99.                     echo "                <div class=\"cms-block cms-block-text\" style=\"\">
  100.                     <div class=\"cms-block-container\" style=\"padding: 5% 20px 5% 20px;\"></div>
  101.                 </div>
  102.             ";
  103.                 }
  104.                 // line 38
  105.                 echo "        ";
  106.             }
  107.             $_parent $context['_parent'];
  108.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  109.             $context array_intersect_key($context$_parent) + $_parent;
  110.             // line 39
  111.             echo "    ";
  112.         }
  113.         
  114.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  115.         
  116.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  117.     }
  118.     public function getTemplateName()
  119.     {
  120.         return "@ATNTheme/storefront/section/cms-section-block-container.html.twig";
  121.     }
  122.     public function isTraitable()
  123.     {
  124.         return false;
  125.     }
  126.     public function getDebugInfo()
  127.     {
  128.         return array (  125 => 39,  119 => 38,  113 => 34,  87 => 10,  84 => 9,  80 => 8,  74 => 6,  71 => 5,  68 => 4,  58 => 3,  35 => 2,);
  129.     }
  130.     public function getSourceContext()
  131.     {
  132.         return new Source("{% sw_extends '@Storefront/storefront/section/cms-section-block-container.html.twig' %}
  133. {% block section_content_block %}
  134.     {% if block.type ==\"cross-selling\" and block.slots.first.data.crossSellings.elements|length <= 0 %}
  135.     {% else %}
  136.         {{ parent() }}
  137.         {% for item in block.slots.first.data.crossSellings.elements %}
  138.             {% if item.total > 4 %}
  139.                 <div class=\"cms-block cms-block-text\" style=\"\">
  140.                     <div class=\"cms-block-container\" style=\"padding: 7% 20px 0 20px; margin-top: 5%\">
  141.                         <div class=\"cms-block-container-row row cms-row \">
  142.                             <div class=\"col-12\" data-cms-element-id=\"30ebb258f57040d49157510173468cfc\">
  143.                                 <div class=\" cms-element-text\">
  144.                                     <div class=\"text-center\">
  145.                                         <button class=\"btn btn-outline-primary btn-animated\" role=\"button\"
  146.                                                 data-wbn-expand-slider-options=\"{&quot;sliderBlockClass&quot;: &quot;slider-1&quot; }\"
  147.                                                 data-wbn-expand-slider=\"true\" aria-pressed=\"true\">
  148.                                             <span class=\"button-text\">Alle Produkte in der Übersicht</span>
  149.                                             <span class=\"icon icon-arrow-right icon-primary\">
  150.                             <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path
  151.                                         fill=\"#758CA3\"
  152.                                         fill-rule=\"evenodd\"
  153.                                         d=\"m20.5858 13-4.293 4.2929c-.3904.3905-.3904 1.0237 0 1.4142.3906.3905 1.0238.3905 1.4143 0l6-6c.3905-.3905.3905-1.0237 0-1.4142l-6-6c-.3905-.3905-1.0237-.3905-1.4142 0-.3905.3905-.3905 1.0237 0 1.4142L20.5858 11H1c-.5523 0-1 .4477-1 1s.4477 1 1 1h19.5858z\"></path></svg>
  154.                     </span>
  155.                                         </button>
  156.                                     </div>
  157.                                 </div>
  158.                             </div>
  159.                         </div>
  160.                     </div>
  161.                 </div>
  162.             {% else %}
  163.                 <div class=\"cms-block cms-block-text\" style=\"\">
  164.                     <div class=\"cms-block-container\" style=\"padding: 5% 20px 5% 20px;\"></div>
  165.                 </div>
  166.             {% endif %}
  167.         {% endfor %}
  168.     {% endif %}
  169. {% endblock %}""@ATNTheme/storefront/section/cms-section-block-container.html.twig""/www/htdocs/w01c128a/atngmbh.webneo-demo.de/www/custom/plugins/ATNTheme/src/Resources/views/storefront/section/cms-section-block-container.html.twig");
  170.     }
  171. }