var/cache/dev_h5b02c48344407d68d61eb74a0cdcd8b0/twig/5e/5eb4f86dec6f5958739e0f20c9e34983134c061cc050b55febf18116747db56e.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 function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @S360ProductRecommendations/storefront/page/product-detail/index.html.twig */
  16. class __TwigTemplate_2ae871fba981de8343d5c3432c8f869b extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->blocks = [
  25.             'page_product_detail_cross_selling' => [$this'block_page_product_detail_cross_selling'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@IntediaDoofinderSW6/storefront/page/product-detail/index.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@S360ProductRecommendations/storefront/page/product-detail/index.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@S360ProductRecommendations/storefront/page/product-detail/index.html.twig"));
  40.         $this->parent $this->loadTemplate("@IntediaDoofinderSW6/storefront/page/product-detail/index.html.twig""@S360ProductRecommendations/storefront/page/product-detail/index.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_page_product_detail_cross_selling($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_cross_selling"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_cross_selling"));
  55.         // line 4
  56.         echo "    ";
  57.         // line 5
  58.         echo "    ";
  59.         $context["products"] = sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "getExtension", [=> "s360ProductRecommendations"], "method"falsefalsefalse5);
  60.         // line 6
  61.         echo "    ";
  62.         if (($context["products"] ?? null)) {
  63.             // line 7
  64.             echo "        ";
  65.             $this->loadTemplate("@GrimmTheme/storefront/element/cms-element-s360-adjustable-productslider.html.twig""@S360ProductRecommendations/storefront/page/product-detail/index.html.twig"7)->display(twig_array_merge($context, ["element" => ["type" => "s360-adjustable-productslider""data" =>             // line 11
  66. ($context["products"] ?? null)]]));
  67.             // line 15
  68.             echo "    ";
  69.         }
  70.         // line 16
  71.         echo "
  72.    ";
  73.         // line 17
  74.         $this->displayParentBlock("page_product_detail_cross_selling"$context$blocks);
  75.         echo "
  76. ";
  77.         
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  79.         
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81.     }
  82.     public function getTemplateName()
  83.     {
  84.         return "@S360ProductRecommendations/storefront/page/product-detail/index.html.twig";
  85.     }
  86.     public function isTraitable()
  87.     {
  88.         return false;
  89.     }
  90.     public function getDebugInfo()
  91.     {
  92.         return array (  86 => 17,  83 => 16,  80 => 15,  78 => 11,  76 => 7,  73 => 6,  70 => 5,  68 => 4,  58 => 3,  35 => 2,);
  93.     }
  94.     public function getSourceContext()
  95.     {
  96.         return new Source("{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
  97. {% block page_product_detail_cross_selling %}
  98.     {# display with base plugin #}
  99.     {% set products = page.getExtension('s360ProductRecommendations') %}
  100.     {% if products %}
  101.         {% sw_include '@Storefront/storefront/element/cms-element-s360-adjustable-productslider.html.twig' 
  102.             with {
  103.                 \"element\": {
  104.                     \"type\": \"s360-adjustable-productslider\",
  105.                     \"data\": products
  106.                 }
  107.             }
  108.         %}
  109.     {% endif %}
  110.    {{ parent() }}
  111. {% endblock %}""@S360ProductRecommendations/storefront/page/product-detail/index.html.twig""/var/www/staging1.grimm-gastrobedarf.de/custom/plugins/s360-product-recommendations/src/Resources/views/storefront/page/product-detail/index.html.twig");
  112.     }
  113. }