var/cache/dev_h90dfaab4b9218db9f54295f5d696836f/twig/4d/4d241f10a4deae76059a7c6bbf1184e101eb81fa3ba784cd3e949991aa6ee86a.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. /* @TdsOrlob/storefront/page/product-detail/index.html.twig */
  16. class __TwigTemplate_21c7665b1542d1368c972af3ca5aadeb28b9f1fed6371146f915e82ea014b504 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.             'page_product_detail' => [$this'block_page_product_detail'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@IntediaDoofinderSW6/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""@TdsOrlob/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""@TdsOrlob/storefront/page/product-detail/index.html.twig"));
  41.         $this->parent $this->loadTemplate("@IntediaDoofinderSW6/storefront/page/product-detail/index.html.twig""@TdsOrlob/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_media($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_media"));
  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_media"));
  56.         // line 4
  57.         echo "
  58.     <div class=\"col-lg-7 product-detail-media\">
  59.         ";
  60.         // line 7
  61.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse7), "media", [], "any"falsefalsefalse7)) {
  62.             // line 8
  63.             echo "
  64.             ";
  65.             // line 9
  66.             $this->loadTemplate("@TdsOrlob/storefront/element/cms-element-image-gallery.html.twig""@TdsOrlob/storefront/page/product-detail/index.html.twig"9)->display(twig_array_merge($context, ["mediaItems" =>             // line 10
  67. ($context["mediaItems"] ?? null), "zoom" => true"zoomModal" => true"displayMode" => "contain""gutter" => 5"minHeight" => "430px""navigationArrows" => "inside""navigationDots" => "inside""galleryPosition" => "left""isProduct" => true"fallbackImageTitle" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 20
  68. ($context["page"] ?? null), "product", [], "any"falsefalsefalse20), "translated", [], "any"falsefalsefalse20), "name", [], "any"falsefalsefalse20), "startIndexThumbnails" => (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 21
  69. ($context["page"] ?? null), "product", [], "any"falsefalsefalse21), "cover", [], "any"falsefalsefalse21), "position", [], "any"falsefalsefalse21) + 1), "startIndexSlider" => (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 22
  70. ($context["page"] ?? null), "product", [], "any"falsefalsefalse22), "cover", [], "any"falsefalsefalse22), "position", [], "any"falsefalsefalse22) + 1)]));
  71.             // line 24
  72.             echo "
  73.         ";
  74.         }
  75.         // line 26
  76.         echo "
  77.         ";
  78.         // line 27
  79.         if (((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse27), "categoryTree", [], "any"falsefalsefalse27) && sw_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["shopware"] ?? null), "config", [], "any"falsefalsefalse27), "TdsOrlob", [], "any"falsefalsefalse27), "config", [], "any"falsefalsefalse27), "salesCategoryId", [], "any"falsefalsefalse27)) && twig_in_filter(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 28
  80. ($context["shopware"] ?? null), "config", [], "any"falsefalsefalse28), "TdsOrlob", [], "any"falsefalsefalse28), "config", [], "any"falsefalsefalse28), "salesCategoryId", [], "any"falsefalsefalse28), sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse28), "categoryTree", [], "any"falsefalsefalse28)))) {
  81.             // line 29
  82.             echo "
  83.             <div class=\"sales-badge\">
  84.                 <img src=\"";
  85.             // line 31
  86.             echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/sales-badge.png""@TdsOrlob"), "html"nulltrue);
  87.             echo "\" alt=\"Sale\" class=\"sales-badge-icon\"/>
  88.             </div>
  89.         ";
  90.         }
  91.         // line 35
  92.         echo "
  93.         ";
  94.         // line 36
  95.         if (((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse36), "categoryTree", [], "any"falsefalsefalse36) && sw_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["shopware"] ?? null), "config", [], "any"falsefalsefalse36), "TdsOrlob", [], "any"falsefalsefalse36), "config", [], "any"falsefalsefalse36), "newCategoryId", [], "any"falsefalsefalse36)) && twig_in_filter(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 37
  96. ($context["shopware"] ?? null), "config", [], "any"falsefalsefalse37), "TdsOrlob", [], "any"falsefalsefalse37), "config", [], "any"falsefalsefalse37), "newCategoryId", [], "any"falsefalsefalse37), sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse37), "categoryTree", [], "any"falsefalsefalse37)))) {
  97.             // line 38
  98.             echo "
  99.             <div class=\"new-badge\">
  100.                 <img src=\"";
  101.             // line 40
  102.             echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/new-badge.png""@TdsOrlob"), "html"nulltrue);
  103.             echo "\" alt=\"New\" class=\"new-badge-icon\"/>
  104.             </div>
  105.         ";
  106.         }
  107.         // line 44
  108.         echo "
  109.     </div>
  110. ";
  111.         
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  113.         
  114.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  115.     }
  116.     // line 50
  117.     public function block_page_product_detail($context, array $blocks = [])
  118.     {
  119.         $macros $this->macros;
  120.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  121.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail"));
  122.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  123.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail"));
  124.         // line 51
  125.         echo "
  126.     ";
  127.         // line 52
  128.         if ((=== twig_compare(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "currentCustomerGroup", [], "any"falsefalsefalse52), "id", [], "any"falsefalsefalse52), "cfbd5018d38d41d8adca10d94fc8bdd6"))) {
  129.             // line 53
  130.             echo "        <div style=\"text-align: center;\"></b>
  131.         <br>
  132.         <br>
  133.             <b style=\"font-size: 24px\">Hinweis:</b>
  134.         <br>
  135.         <br>Für eine komplette Einsicht unserer Artikel ist eine Registrierung als Händler erforderlich! Zur Anmeldung und Registrierung gelangen Sie über folgenden Link:<br>
  136.         <br>
  137.         <div>
  138.             <a class=\"btn btn-primary\" href=\"/account/login\" target=\"_self\">Anmeldung/Registrierung</a>
  139.             <br></div>
  140.         </div>
  141.     ";
  142.         } else {
  143.             // line 65
  144.             echo "
  145.         ";
  146.             // line 66
  147.             $this->displayParentBlock("page_product_detail"$context$blocks);
  148.             echo "
  149.     ";
  150.         }
  151.         // line 69
  152.         echo "    
  153. ";
  154.         
  155.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  156.         
  157.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  158.     }
  159.     public function getTemplateName()
  160.     {
  161.         return "@TdsOrlob/storefront/page/product-detail/index.html.twig";
  162.     }
  163.     public function isTraitable()
  164.     {
  165.         return false;
  166.     }
  167.     public function getDebugInfo()
  168.     {
  169.         return array (  174 => 69,  168 => 66,  165 => 65,  151 => 53,  149 => 52,  146 => 51,  136 => 50,  123 => 44,  116 => 40,  112 => 38,  110 => 37,  109 => 36,  106 => 35,  99 => 31,  95 => 29,  93 => 28,  92 => 27,  89 => 26,  85 => 24,  83 => 22,  82 => 21,  81 => 20,  80 => 10,  79 => 9,  76 => 8,  74 => 7,  69 => 4,  59 => 3,  36 => 2,);
  170.     }
  171.     public function getSourceContext()
  172.     {
  173.         return new Source("{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
  174. {% block page_product_detail_media %}
  175.     <div class=\"col-lg-7 product-detail-media\">
  176.         {% if page.product.media %}
  177.             {% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
  178.                 'mediaItems': mediaItems,
  179.                 'zoom': true,
  180.                 'zoomModal': true,
  181.                 'displayMode': 'contain',
  182.                 'gutter': 5,
  183.                 'minHeight': '430px',
  184.                 'navigationArrows': 'inside',
  185.                 'navigationDots': 'inside',
  186.                 'galleryPosition': 'left',
  187.                 'isProduct': true,
  188.                 'fallbackImageTitle': page.product.translated.name,
  189.                 'startIndexThumbnails': page.product.cover.position + 1,
  190.                 'startIndexSlider': page.product.cover.position + 1
  191.             } %}
  192.         {% endif %}
  193.         {% if page.product.categoryTree and shopware.config.TdsOrlob.config.salesCategoryId
  194.             and shopware.config.TdsOrlob.config.salesCategoryId in page.product.categoryTree %}
  195.             <div class=\"sales-badge\">
  196.                 <img src=\"{{ asset('assets/sales-badge.png', '@TdsOrlob') }}\" alt=\"Sale\" class=\"sales-badge-icon\"/>
  197.             </div>
  198.         {% endif %}
  199.         {% if page.product.categoryTree and shopware.config.TdsOrlob.config.newCategoryId
  200.             and shopware.config.TdsOrlob.config.newCategoryId in page.product.categoryTree %}
  201.             <div class=\"new-badge\">
  202.                 <img src=\"{{ asset('assets/new-badge.png', '@TdsOrlob') }}\" alt=\"New\" class=\"new-badge-icon\"/>
  203.             </div>
  204.         {% endif %}
  205.     </div>
  206. {% endblock %}
  207. {% block page_product_detail %}
  208.     {% if context.currentCustomerGroup.id =='cfbd5018d38d41d8adca10d94fc8bdd6' %}
  209.         <div style=\"text-align: center;\"></b>
  210.         <br>
  211.         <br>
  212.             <b style=\"font-size: 24px\">Hinweis:</b>
  213.         <br>
  214.         <br>Für eine komplette Einsicht unserer Artikel ist eine Registrierung als Händler erforderlich! Zur Anmeldung und Registrierung gelangen Sie über folgenden Link:<br>
  215.         <br>
  216.         <div>
  217.             <a class=\"btn btn-primary\" href=\"/account/login\" target=\"_self\">Anmeldung/Registrierung</a>
  218.             <br></div>
  219.         </div>
  220.     {% else %}
  221.         {{ parent() }}
  222.     {% endif %}
  223.     
  224. {% endblock %}
  225. ""@TdsOrlob/storefront/page/product-detail/index.html.twig""/home/fasflpog/shopware/custom/plugins/TdsOrlob/src/Resources/views/storefront/page/product-detail/index.html.twig");
  226.     }
  227. }