var/cache/dev/twig/eb/ebb88bb8e0dcdb6203209d450bf7c8f1.php line 228

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @SyliusShop/Product/show.html.twig */
  14. class __TwigTemplate_70b0d1f47c7bdd4c1fe4e91b0d7437ef extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'content' => [$this'block_content'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 5
  31.         return "@SyliusShop/layout.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""@SyliusShop/Product/show.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""@SyliusShop/Product/show.html.twig"));
  40.         // line 1
  41.         $context["preview"] = ("open_marketplace_vendor_product_listings_preview" == twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1$this->source); })()), "request", [], "any"falsefalsefalse1), "attributes", [], "any"falsefalsefalse1), "get", [=> "_route"], "method"falsefalsefalse1));
  42.         // line 2
  43.         if (((true == (isset($context["preview"]) || array_key_exists("preview"$context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.'2$this->source); })())) && array_key_exists("product_listing"$context))) {
  44.             // line 3
  45.             $context["product"] = $this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\ConvertDraftToProductExtension']->convertDraftToProduct(twig_get_attribute($this->env$this->source, (isset($context["product_listing"]) || array_key_exists("product_listing"$context) ? $context["product_listing"] : (function () { throw new RuntimeError('Variable "product_listing" does not exist.'3$this->source); })()), "latestDraft", [], "any"falsefalsefalse3));
  46.         }
  47.         // line 5
  48.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/Product/show.html.twig"5);
  49.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  50.         
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  52.         
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  54.     }
  55.     // line 7
  56.     public function block_title($context, array $blocks = [])
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  63.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'7$this->source); })()), "name", [], "any"falsefalsefalse7), "html"nulltrue);
  64.         echo " | ";
  65.         $this->displayParentBlock("title"$context$blocks);
  66.         
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68.         
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  70.     }
  71.     // line 9
  72.     public function block_content($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  79.         // line 10
  80.         echo "    ";
  81.         // line 11
  82.         echo "    ";
  83.         if (((array_key_exists("isPreview"$context)) ? (_twig_default_filter((isset($context["isPreview"]) || array_key_exists("isPreview"$context) ? $context["isPreview"] : (function () { throw new RuntimeError('Variable "isPreview" does not exist.'11$this->source); })()), false)) : (false))) {
  84.             // line 12
  85.             echo "        <div class=\"ui info message\">
  86.             <div class=\"header\">
  87.                 <i class=\"eye icon\"></i>
  88.                 Preview Mode - Admin Only
  89.             </div>
  90.             <p>You are viewing this product in preview mode. This product may not be visible to regular users.</p>
  91.             ";
  92.             // line 18
  93.             if ( !twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'18$this->source); })()), "enabled", [], "any"falsefalsefalse18)) {
  94.                 // line 19
  95.                 echo "                <p><strong>Note:</strong> This product is currently <strong>disabled</strong>.</p>
  96.             ";
  97.             }
  98.             // line 21
  99.             echo "        </div>
  100.         <div class=\"ui clearing hidden divider\"></div>
  101.     ";
  102.         }
  103.         // line 24
  104.         echo "
  105.     ";
  106.         // line 25
  107.         $this->loadTemplate("@SyliusShop/Product/Show/_breadcrumb.html.twig""@SyliusShop/Product/show.html.twig"25)->display($context);
  108.         // line 26
  109.         echo "
  110.     ";
  111.         // line 27
  112.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.header"$context);
  113.         echo "
  114.     ";
  115.         // line 29
  116.         $context["hasFullSupplierInfo"] = $this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\SupplierInfoExtension']->isFullSupplierInfo(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'29$this->source); })()), "vendor", [], "any"falsefalsefalse29), "organization", [], "any"falsefalsefalse29));
  117.         // line 30
  118.         echo "    ";
  119.         $context["hasImages"] =  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'30$this->source); })()), "images", [], "any"falsefalsefalse30));
  120.         // line 31
  121.         echo "    ";
  122.         $context["showImages"] = ((isset($context["hasFullSupplierInfo"]) || array_key_exists("hasFullSupplierInfo"$context) ? $context["hasFullSupplierInfo"] : (function () { throw new RuntimeError('Variable "hasFullSupplierInfo" does not exist.'31$this->source); })()) && (isset($context["hasImages"]) || array_key_exists("hasImages"$context) ? $context["hasImages"] : (function () { throw new RuntimeError('Variable "hasImages" does not exist.'31$this->source); })()));
  123.         // line 32
  124.         echo "    ";
  125.         $context["productTaxonCode"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["product"] ?? null), "mainTaxon", [], "any"falsetruefalse32), "code", [], "any"truetruefalse32)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["product"] ?? null), "mainTaxon", [], "any"falsetruefalse32), "code", [], "any"falsefalsefalse32), "")) : (""));
  126.         // line 33
  127.         echo "    ";
  128.         $context["canRfq"] = (((isset($context["productTaxonCode"]) || array_key_exists("productTaxonCode"$context) ? $context["productTaxonCode"] : (function () { throw new RuntimeError('Variable "productTaxonCode" does not exist.'33$this->source); })()) != "services") && ($this->env->getFunction('vendor_can_rfq')->getCallable()((isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'33$this->source); })())) == true));
  129.         // line 34
  130.         echo "    ";
  131.         $context["canInquiry"] = ($this->env->getFunction('vendor_can_inquiry')->getCallable()((isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'34$this->source); })())) == true);
  132.         // line 35
  133.         echo "
  134.     <div class=\"product-detail-layout ";
  135.         // line 36
  136.         echo (( !(isset($context["showImages"]) || array_key_exists("showImages"$context) ? $context["showImages"] : (function () { throw new RuntimeError('Variable "showImages" does not exist.'36$this->source); })())) ? ("no-supplier-images") : (""));
  137.         echo "\">
  138.         <div class=\"product-images-section\">
  139.             ";
  140.         // line 38
  141.         if ((isset($context["showImages"]) || array_key_exists("showImages"$context) ? $context["showImages"] : (function () { throw new RuntimeError('Variable "showImages" does not exist.'38$this->source); })())) {
  142.             // line 39
  143.             echo "                ";
  144.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.left_sidebar"$context);
  145.             echo "
  146.             ";
  147.         }
  148.         // line 41
  149.         echo "        </div>
  150.         <div class=\"product-summary-section\">
  151.             <div class=\"ui top attached large tabular menu product-tabs\">
  152.                 <a class=\"item active\" data-tab=\"summary\">";
  153.         // line 45
  154.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.tabs.summary"), "html"nulltrue);
  155.         echo "</a>
  156.             </div>
  157.             <div class=\"ui bottom attached tab segment product-tabs active\" data-tab=\"summary\">
  158.                 ";
  159.         // line 48
  160.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.right_sidebar"$context);
  161.         echo "
  162.             </div>
  163.         </div>
  164.         <div class=\"product-tabs-section\">
  165.             ";
  166.         // line 53
  167.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content_left_column"$context);
  168.         echo "
  169.         </div>
  170.         <div class=\"product-forms-section\">
  171.             ";
  172.         // line 57
  173.         if (((isset($context["canRfq"]) || array_key_exists("canRfq"$context) ? $context["canRfq"] : (function () { throw new RuntimeError('Variable "canRfq" does not exist.'57$this->source); })()) || (isset($context["canInquiry"]) || array_key_exists("canInquiry"$context) ? $context["canInquiry"] : (function () { throw new RuntimeError('Variable "canInquiry" does not exist.'57$this->source); })()))) {
  174.             // line 58
  175.             echo "                <div class=\"ui top attached large tabular menu product-tabs form-tabs wrapper-cont trigger-element\">
  176.                     ";
  177.             // line 59
  178.             if ((isset($context["canRfq"]) || array_key_exists("canRfq"$context) ? $context["canRfq"] : (function () { throw new RuntimeError('Variable "canRfq" does not exist.'59$this->source); })())) {
  179.                 // line 60
  180.                 echo "                        <a class=\"item tab-hyf active\" data-tab=\"rfq\">
  181.                             ";
  182.                 // line 61
  183.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.request_quote"), "html"nulltrue);
  184.                 echo "
  185.                         </a>
  186.                     ";
  187.             }
  188.             // line 64
  189.             echo "
  190.                     ";
  191.             // line 65
  192.             if ((isset($context["canInquiry"]) || array_key_exists("canInquiry"$context) ? $context["canInquiry"] : (function () { throw new RuntimeError('Variable "canInquiry" does not exist.'65$this->source); })())) {
  193.                 // line 66
  194.                 echo "                        <a class=\"item tab-hyf ";
  195.                 echo (( !(isset($context["canRfq"]) || array_key_exists("canRfq"$context) ? $context["canRfq"] : (function () { throw new RuntimeError('Variable "canRfq" does not exist.'66$this->source); })())) ? ("active") : (""));
  196.                 echo "\" data-tab=\"inquiry\">
  197.                             ";
  198.                 // line 67
  199.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.request_info"), "html"nulltrue);
  200.                 echo "
  201.                         </a>
  202.                     ";
  203.             }
  204.             // line 70
  205.             echo "                </div>
  206.             ";
  207.         }
  208.         // line 72
  209.         echo "
  210.             <div class=\"tab-cont-content-cont\">
  211.                 ";
  212.         // line 74
  213.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content_right_column"$context);
  214.         echo "
  215.             </div>
  216.         </div>
  217.     </div>
  218.     ";
  219.         // line 79
  220.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content"$context);
  221.         echo "
  222.     ";
  223.         // line 80
  224.         if ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) {
  225.             // line 81
  226.             echo "        <div class=\"rectangle-group sticky-header\">
  227.             <div class=\"sticky-buttons-group\">
  228.                 ";
  229.             // line 83
  230.             if ((isset($context["canRfq"]) || array_key_exists("canRfq"$context) ? $context["canRfq"] : (function () { throw new RuntimeError('Variable "canRfq" does not exist.'83$this->source); })())) {
  231.                 // line 84
  232.                 echo "                    <div class=\"btn active\" data-tab=\"rfq\">
  233.                         ";
  234.                 // line 85
  235.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.request_quote"), "html"nulltrue);
  236.                 echo "
  237.                     </div>
  238.                 ";
  239.             }
  240.             // line 88
  241.             echo "                ";
  242.             if ((isset($context["canInquiry"]) || array_key_exists("canInquiry"$context) ? $context["canInquiry"] : (function () { throw new RuntimeError('Variable "canInquiry" does not exist.'88$this->source); })())) {
  243.                 // line 89
  244.                 echo "                    <div class=\"btn ";
  245.                 echo (( !(isset($context["canRfq"]) || array_key_exists("canRfq"$context) ? $context["canRfq"] : (function () { throw new RuntimeError('Variable "canRfq" does not exist.'89$this->source); })())) ? ("active") : (""));
  246.                 echo "\" data-tab=\"inquiry\">
  247.                         ";
  248.                 // line 90
  249.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.request_info"), "html"nulltrue);
  250.                 echo "
  251.                     </div>
  252.                 ";
  253.             }
  254.             // line 93
  255.             echo "            </div>
  256.         </div>
  257.     ";
  258.         }
  259.         // line 96
  260.         echo "
  261.     ";
  262.         // line 97
  263.         if (((isset($context["canRfq"]) || array_key_exists("canRfq"$context) ? $context["canRfq"] : (function () { throw new RuntimeError('Variable "canRfq" does not exist.'97$this->source); })()) &&  !((array_key_exists("preview"$context)) ? (_twig_default_filter((isset($context["preview"]) || array_key_exists("preview"$context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.'97$this->source); })()), false)) : (false)))) {
  264.             // line 98
  265.             echo "        ";
  266.             $this->loadTemplate("@SyliusShop/Product/Show/_contactModal.html.twig""@SyliusShop/Product/show.html.twig"98)->display($context);
  267.             // line 99
  268.             echo "    ";
  269.         }
  270.         
  271.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  272.         
  273.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  274.     }
  275.     // line 102
  276.     public function block_javascripts($context, array $blocks = [])
  277.     {
  278.         $macros $this->macros;
  279.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  280.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  281.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  282.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  283.         // line 103
  284.         echo "    ";
  285.         $this->displayParentBlock("javascripts"$context$blocks);
  286.         echo "
  287.     <script type=\"text/javascript\">
  288.         lightbox.option({
  289.             'albumLabel': '";
  290.         // line 107
  291.         echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.lightbox.image_album_label"), "js"), "html"nulltrue);
  292.         echo "'
  293.         });
  294.         // Pass translations to download handler
  295.         window.downloadTranslations = {
  296.             rate_limit_header: '";
  297.         // line 112
  298.         echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("open_marketplace.ui.rate_limit_header"), "js"), "html"nulltrue);
  299.         echo "',
  300.             rate_limit_wait: '";
  301.         // line 113
  302.         echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("open_marketplace.ui.rate_limit_wait"), "js"), "html"nulltrue);
  303.         echo "',
  304.             download_failed: '";
  305.         // line 114
  306.         echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("open_marketplace.ui.download_failed"), "js"), "html"nulltrue);
  307.         echo "',
  308.             download_failed_status: '";
  309.         // line 115
  310.         echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("open_marketplace.ui.download_failed_status"), "js"), "html"nulltrue);
  311.         echo "',
  312.             download_error_network: '";
  313.         // line 116
  314.         echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("open_marketplace.ui.download_error_network"), "js"), "html"nulltrue);
  315.         echo "',
  316.             verify_human: '";
  317.         // line 117
  318.         echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("open_marketplace.ui.verify_human"), "js"), "html"nulltrue);
  319.         echo "',
  320.             loading: '";
  321.         // line 118
  322.         echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("open_marketplace.ui.loading"), "js"), "html"nulltrue);
  323.         echo "'
  324.         };
  325.     </script>
  326. ";
  327.         
  328.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  329.         
  330.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  331.     }
  332.     public function getTemplateName()
  333.     {
  334.         return "@SyliusShop/Product/show.html.twig";
  335.     }
  336.     public function isTraitable()
  337.     {
  338.         return false;
  339.     }
  340.     public function getDebugInfo()
  341.     {
  342.         return array (  353 => 118,  349 => 117,  345 => 116,  341 => 115,  337 => 114,  333 => 113,  329 => 112,  321 => 107,  313 => 103,  303 => 102,  292 => 99,  289 => 98,  287 => 97,  284 => 96,  279 => 93,  273 => 90,  268 => 89,  265 => 88,  259 => 85,  256 => 84,  254 => 83,  250 => 81,  248 => 80,  244 => 79,  236 => 74,  232 => 72,  228 => 70,  222 => 67,  217 => 66,  215 => 65,  212 => 64,  206 => 61,  203 => 60,  201 => 59,  198 => 58,  196 => 57,  189 => 53,  181 => 48,  175 => 45,  169 => 41,  163 => 39,  161 => 38,  156 => 36,  153 => 35,  150 => 34,  147 => 33,  144 => 32,  141 => 31,  138 => 30,  136 => 29,  131 => 27,  128 => 26,  126 => 25,  123 => 24,  118 => 21,  114 => 19,  112 => 18,  104 => 12,  101 => 11,  99 => 10,  89 => 9,  68 => 7,  57 => 5,  54 => 3,  52 => 2,  50 => 1,  37 => 5,);
  343.     }
  344.     public function getSourceContext()
  345.     {
  346.         return new Source("{% set preview = 'open_marketplace_vendor_product_listings_preview' == app.request.attributes.get('_route') %}
  347. {% if true == preview and product_listing is defined %}
  348.     {% set product = convert_draft_to_product(product_listing.latestDraft) %}
  349. {% endif %}
  350. {% extends '@SyliusShop/layout.html.twig' %}
  351. {% block title %}{{ product.name }} | {{ parent() }}{% endblock %}
  352. {% block content %}
  353.     {# Preview mode banner for admin-only product preview #}
  354.     {% if isPreview|default(false) %}
  355.         <div class=\"ui info message\">
  356.             <div class=\"header\">
  357.                 <i class=\"eye icon\"></i>
  358.                 Preview Mode - Admin Only
  359.             </div>
  360.             <p>You are viewing this product in preview mode. This product may not be visible to regular users.</p>
  361.             {% if not product.enabled %}
  362.                 <p><strong>Note:</strong> This product is currently <strong>disabled</strong>.</p>
  363.             {% endif %}
  364.         </div>
  365.         <div class=\"ui clearing hidden divider\"></div>
  366.     {% endif %}
  367.     {% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}
  368.     {{ sylius_template_event('sylius.shop.product.show.header', _context) }}
  369.     {% set hasFullSupplierInfo = isFullSupplierInfo(product.vendor.organization) %}
  370.     {% set hasImages = product.images is not empty %}
  371.     {% set showImages = hasFullSupplierInfo and hasImages %}
  372.     {% set productTaxonCode = product.mainTaxon.code|default('') %}
  373.     {% set canRfq = productTaxonCode != 'services' and vendor_can_rfq(product) == true %}
  374.     {% set canInquiry = vendor_can_inquiry(product) == true %}
  375.     <div class=\"product-detail-layout {{ not showImages ? 'no-supplier-images' : '' }}\">
  376.         <div class=\"product-images-section\">
  377.             {% if showImages %}
  378.                 {{ sylius_template_event('sylius.shop.product.show.left_sidebar', _context) }}
  379.             {% endif %}
  380.         </div>
  381.         <div class=\"product-summary-section\">
  382.             <div class=\"ui top attached large tabular menu product-tabs\">
  383.                 <a class=\"item active\" data-tab=\"summary\">{{ 'app.ui.product.tabs.summary'|trans }}</a>
  384.             </div>
  385.             <div class=\"ui bottom attached tab segment product-tabs active\" data-tab=\"summary\">
  386.                 {{ sylius_template_event('sylius.shop.product.show.right_sidebar', _context) }}
  387.             </div>
  388.         </div>
  389.         <div class=\"product-tabs-section\">
  390.             {{ sylius_template_event('sylius.shop.product.show.content_left_column', _context) }}
  391.         </div>
  392.         <div class=\"product-forms-section\">
  393.             {% if canRfq or canInquiry %}
  394.                 <div class=\"ui top attached large tabular menu product-tabs form-tabs wrapper-cont trigger-element\">
  395.                     {% if canRfq %}
  396.                         <a class=\"item tab-hyf active\" data-tab=\"rfq\">
  397.                             {{ 'app.ui.product.request_quote'|trans }}
  398.                         </a>
  399.                     {% endif %}
  400.                     {% if canInquiry %}
  401.                         <a class=\"item tab-hyf {{ not canRfq ? 'active' : '' }}\" data-tab=\"inquiry\">
  402.                             {{ 'app.ui.product.request_info'|trans }}
  403.                         </a>
  404.                     {% endif %}
  405.                 </div>
  406.             {% endif %}
  407.             <div class=\"tab-cont-content-cont\">
  408.                 {{ sylius_template_event('sylius.shop.product.show.content_right_column', _context) }}
  409.             </div>
  410.         </div>
  411.     </div>
  412.     {{ sylius_template_event('sylius.shop.product.show.content', _context) }}
  413.     {% if is_mobile() %}
  414.         <div class=\"rectangle-group sticky-header\">
  415.             <div class=\"sticky-buttons-group\">
  416.                 {% if canRfq %}
  417.                     <div class=\"btn active\" data-tab=\"rfq\">
  418.                         {{ 'app.ui.product.request_quote'|trans }}
  419.                     </div>
  420.                 {% endif %}
  421.                 {% if canInquiry %}
  422.                     <div class=\"btn {{ not canRfq ? 'active' : '' }}\" data-tab=\"inquiry\">
  423.                         {{ 'app.ui.product.request_info'|trans }}
  424.                     </div>
  425.                 {% endif %}
  426.             </div>
  427.         </div>
  428.     {% endif %}
  429.     {% if canRfq and not preview|default(false) %}
  430.         {% include '@SyliusShop/Product/Show/_contactModal.html.twig' %}
  431.     {% endif %}
  432. {% endblock %}
  433. {% block javascripts %}
  434.     {{ parent() }}
  435.     <script type=\"text/javascript\">
  436.         lightbox.option({
  437.             'albumLabel': '{{ 'sylius.lightbox.image_album_label'|trans|escape('js') }}'
  438.         });
  439.         // Pass translations to download handler
  440.         window.downloadTranslations = {
  441.             rate_limit_header: '{{ 'open_marketplace.ui.rate_limit_header'|trans|escape('js') }}',
  442.             rate_limit_wait: '{{ 'open_marketplace.ui.rate_limit_wait'|trans|escape('js') }}',
  443.             download_failed: '{{ 'open_marketplace.ui.download_failed'|trans|escape('js') }}',
  444.             download_failed_status: '{{ 'open_marketplace.ui.download_failed_status'|trans|escape('js') }}',
  445.             download_error_network: '{{ 'open_marketplace.ui.download_error_network'|trans|escape('js') }}',
  446.             verify_human: '{{ 'open_marketplace.ui.verify_human'|trans|escape('js') }}',
  447.             loading: '{{ 'open_marketplace.ui.loading'|trans|escape('js') }}'
  448.         };
  449.     </script>
  450. {% endblock %}
  451. ""@SyliusShop/Product/show.html.twig""/srv/open_marketplace/templates/bundles/SyliusShopBundle/Product/show.html.twig");
  452.     }
  453. }