var/cache/dev_h1a4062f81b00b5d1d1cdf5941a50d072/twig/20/200f815bdf57e9da9609269c749f5f8879cbaf7aef5f97813fb53b383461e1f2.php line 55

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. /* @TcinnThemeWareLiving/storefront/page/product-detail/index.html.twig */
  16. class __TwigTemplate_dae804d5707e4efad18a6dbd90f00285df35dbec6169efcf0613aac85dcfc8a2 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_media' => [$this'block_page_product_detail_media'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@Storefront/storefront/page/product-detail/index.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""@TcinnThemeWareLiving/storefront/page/product-detail/index.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""@TcinnThemeWareLiving/storefront/page/product-detail/index.html.twig"));
  40.         // line 9
  41.         $context["twtProductDetailCrossSellingShow"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context"twt-product-detail-cross-selling-show");
  42.         // line 10
  43.         $context["twtProductDetailThumbnailsPosition"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context"twt-product-detail-thumbnails-position");
  44.         // line 2
  45.         $this->parent $this->loadTemplate("@Storefront/storefront/page/product-detail/index.html.twig""@TcinnThemeWareLiving/storefront/page/product-detail/index.html.twig"2);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 15
  53.     public function block_page_product_detail_media($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_media"));
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_media"));
  60.         // line 16
  61.         echo "\t";
  62.         // line 17
  63.         echo "\t";
  64.         // line 18
  65.         echo "\t";
  66.         if ((=== twig_compare(($context["twtProductDetailThumbnailsPosition"] ?? null), 2))) {
  67.             // line 19
  68.             echo "\t\t<div class=\"col-lg-7 product-detail-media\">
  69. \t\t\t ";
  70.             // line 20
  71.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse20), "media", [], "any"falsefalsefalse20)) {
  72.                 // line 21
  73.                 echo "\t\t\t\t  ";
  74.                 $this->loadTemplate("@TcinnThemeWareLiving/storefront/element/cms-element-image-gallery.html.twig""@TcinnThemeWareLiving/storefront/page/product-detail/index.html.twig"21)->display(twig_array_merge($context, ["mediaItems" =>                 // line 22
  75. ($context["mediaItems"] ?? null), "zoom" => true"zoomModal" => true"displayMode" => "contain""gutter" => 5"minHeight" => "430px""navigationArrows" => "inside""navigationDots" => "inside""galleryPosition" => "underneath""isProduct" => true"fallbackImageTitle" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,                 // line 32
  76. ($context["page"] ?? null), "product", [], "any"falsefalsefalse32), "translated", [], "any"falsefalsefalse32), "name", [], "any"falsefalsefalse32), "startIndexThumbnails" => 1"startIndexSlider" => 1"keepAspectRatioOnZoom" => false]));
  77.                 // line 37
  78.                 echo "\t\t\t ";
  79.             }
  80.             // line 38
  81.             echo "\t\t</div>
  82. \t";
  83.         } else {
  84.             // line 40
  85.             echo "
  86. \t\t";
  87.             // line 42
  88.             echo "\t\t";
  89.             $this->displayParentBlock("page_product_detail_media"$context$blocks);
  90.             echo "
  91. \t";
  92.         }
  93.         
  94.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  95.         
  96.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  97.     }
  98.     public function getTemplateName()
  99.     {
  100.         return "@TcinnThemeWareLiving/storefront/page/product-detail/index.html.twig";
  101.     }
  102.     public function isTraitable()
  103.     {
  104.         return false;
  105.     }
  106.     public function getDebugInfo()
  107.     {
  108.         return array (  100 => 42,  97 => 40,  93 => 38,  90 => 37,  88 => 32,  87 => 22,  85 => 21,  83 => 20,  80 => 19,  77 => 18,  75 => 17,  73 => 16,  63 => 15,  52 => 2,  50 => 10,  48 => 9,  35 => 2,);
  109.     }
  110.     public function getSourceContext()
  111.     {
  112.         return new Source("{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
  113. {# ThemeWare® HC-Architecture® via configuration #}
  114. {# TODO: prüfen... #}
  115. {# ---------------- START: SET TEMPLATE VARS ---------------- #}
  116. {# ThemeWare: Set theme variables #}
  117. {% set twtProductDetailCrossSellingShow = theme_config('twt-product-detail-cross-selling-show') %}
  118. {% set twtProductDetailThumbnailsPosition = theme_config('twt-product-detail-thumbnails-position') %}
  119. {# ---------------- END: SET TEMPLATE VARS ---------------- #}
  120. {# HC-Architecture @Doku #}
  121. {% block page_product_detail_media %}
  122. \t{# ThemeWare: Gallery-slider-thumbnails #}
  123. \t{# TODO: Add variables and configs... #}
  124. \t{% if twtProductDetailThumbnailsPosition == 2 %}
  125. \t\t<div class=\"col-lg-7 product-detail-media\">
  126. \t\t\t {% if page.product.media %}
  127. \t\t\t\t  {% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
  128. \t\t\t\t\t  'mediaItems': mediaItems,
  129. \t\t\t\t\t  'zoom': true,
  130. \t\t\t\t\t  'zoomModal': true,
  131. \t\t\t\t\t  'displayMode': 'contain',
  132. \t\t\t\t\t  'gutter': 5,
  133. \t\t\t\t\t  'minHeight': '430px',
  134. \t\t\t\t\t  'navigationArrows': 'inside',
  135. \t\t\t\t\t  'navigationDots': 'inside',
  136. \t\t\t\t\t  'galleryPosition': 'underneath',
  137. \t\t\t\t\t  'isProduct': true,
  138. \t\t\t\t\t  'fallbackImageTitle': page.product.translated.name,
  139. \t\t\t\t\t  'startIndexThumbnails': 1,
  140. \t\t\t\t\t  'startIndexSlider': 1,
  141. \t\t\t\t\t  'keepAspectRatioOnZoom': false
  142. \t\t\t\t  } %}
  143. \t\t\t {% endif %}
  144. \t\t</div>
  145. \t{% else %}
  146. \t\t{# Default block #}
  147. \t\t{{ parent() }}
  148. \t{% endif %}
  149. {% endblock %}
  150. {# ThemeWare: Delete div if no cross selling products available #}
  151. {# TODO: Ab Shopware 6.4.7 entfernt Shopware leere Cross-Selling Blöcke endlich selber. #}
  152. {# block page_product_detail_cross_selling #}""@TcinnThemeWareLiving/storefront/page/product-detail/index.html.twig""/var/www/share/staging.traumkonzept.de/shopware/custom/plugins/TcinnThemeWareLiving/src/Resources/views/storefront/page/product-detail/index.html.twig");
  153.     }
  154. }