var/cache/dev_h41800f5fdfafa409ea382bf45d0f7c63/twig/8e/8e459d252ec7e379737ec6614d465ae8ae9fa6913aa46ed4b0f6a9eb02e3b81d.php line 41

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. /* @NetzpGallery6/storefront/page/product-detail/index.html.twig */
  16. class __TwigTemplate_50a2632636ed7ba3339a2da0d119624ae327808ea9076e519ef9630fdff0eb22 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_inner' => [$this'block_page_product_detail_inner'],
  26.             'page_product_detail_inner_gallery' => [$this'block_page_product_detail_inner_gallery'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@Storefront/storefront/page/product-detail/index.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@NetzpGallery6/storefront/page/product-detail/index.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@NetzpGallery6/storefront/page/product-detail/index.html.twig"));
  41.         $this->parent $this->loadTemplate("@Storefront/storefront/page/product-detail/index.html.twig""@NetzpGallery6/storefront/page/product-detail/index.html.twig"2);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 3
  49.     public function block_page_product_detail_inner($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_inner"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_inner"));
  56.         // line 4
  57.         echo "    ";
  58.         $this->displayParentBlock("page_product_detail_inner"$context$blocks);
  59.         echo "
  60.     ";
  61.         // line 6
  62.         $this->displayBlock('page_product_detail_inner_gallery'$context$blocks);
  63.         
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  65.         
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  67.     }
  68.     public function block_page_product_detail_inner_gallery($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_inner_gallery"));
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_inner_gallery"));
  75.         // line 7
  76.         echo "        ";
  77.         if (((=== twig_compare($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetzpGallery6.config.productposition"), "description")) && sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 8
  78. ($context["page"] ?? null), "product", [], "any"falsefalsefalse8), "getExtension", [=> "galleries"], "method"falsefalsefalse8), "getElements", [], "method"falsefalsefalse8))) {
  79.             // line 9
  80.             echo "            ";
  81.             $this->loadTemplate("@NetzpGallery6/storefront/partials/gallery.html.twig""@NetzpGallery6/storefront/page/product-detail/index.html.twig"9)->display(twig_array_merge($context, ["gallery" => twig_first($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 10
  82. ($context["page"] ?? null), "product", [], "any"falsefalsefalse10), "getExtension", [=> "galleries"], "method"falsefalsefalse10), "getElements", [], "method"falsefalsefalse10)), "galleryId" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 11
  83. ($context["page"] ?? null), "product", [], "any"falsefalsefalse11), "id", [], "any"falsefalsefalse11), "displayMode" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetzpGallery6.config.displaymode"), "sortMode" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetzpGallery6.config.sortmode"), "showgallerytitle" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetzpGallery6.config.showgallerytitle"), "showgallerydescription" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetzpGallery6.config.showgallerydescription"), "imageheight" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetzpGallery6.config.imageheight"), "showthumbnailcaption" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetzpGallery6.config.showthumbnailcaption"), "showimagecaption" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetzpGallery6.config.showimagecaption"), "showfilename" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetzpGallery6.config.showfilename"), "showcounter" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetzpGallery6.config.showcounter")]));
  84.             // line 22
  85.             echo "        ";
  86.         }
  87.         // line 23
  88.         echo "    ";
  89.         
  90.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  91.         
  92.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  93.     }
  94.     public function getTemplateName()
  95.     {
  96.         return "@NetzpGallery6/storefront/page/product-detail/index.html.twig";
  97.     }
  98.     public function isTraitable()
  99.     {
  100.         return false;
  101.     }
  102.     public function getDebugInfo()
  103.     {
  104.         return array (  106 => 23,  103 => 22,  101 => 11,  100 => 10,  98 => 9,  96 => 8,  94 => 7,  75 => 6,  69 => 4,  59 => 3,  36 => 2,);
  105.     }
  106.     public function getSourceContext()
  107.     {
  108.         return new Source("{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
  109. {% block page_product_detail_inner %}
  110.     {{ parent() }}
  111.     {% block page_product_detail_inner_gallery %}
  112.         {% if(config('NetzpGallery6.config.productposition') == 'description' and
  113.             page.product.getExtension('galleries').getElements()) %}
  114.             {% sw_include \"@Storefront/storefront/partials/gallery.html.twig\" with {
  115.                 'gallery': page.product.getExtension('galleries').getElements()|first,
  116.                 'galleryId': page.product.id,
  117.                 'displayMode': config('NetzpGallery6.config.displaymode'),
  118.                 'sortMode': config('NetzpGallery6.config.sortmode'),
  119.                 'showgallerytitle': config('NetzpGallery6.config.showgallerytitle'),
  120.                 'showgallerydescription': config('NetzpGallery6.config.showgallerydescription'),
  121.                 'imageheight': config('NetzpGallery6.config.imageheight'),
  122.                 'showthumbnailcaption': config('NetzpGallery6.config.showthumbnailcaption'),
  123.                 'showimagecaption': config('NetzpGallery6.config.showimagecaption'),
  124.                 'showfilename': config('NetzpGallery6.config.showfilename'),
  125.                 'showcounter': config('NetzpGallery6.config.showcounter')
  126.             } %}
  127.         {% endif %}
  128.     {% endblock %}
  129. {% endblock %}
  130. ""@NetzpGallery6/storefront/page/product-detail/index.html.twig""/data/www/stage.tuerschildshop/custom/plugins/NetzpGallery6/src/Resources/views/storefront/page/product-detail/index.html.twig");
  131.     }
  132. }