var/cache/dev/twig/f2/f281110534f7a3f357041f8a565d29b4.php line 89

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_e06214c82da0ef271fe77f3c9c6e7568 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.         $this->loadTemplate("@SyliusShop/Product/Show/_breadcrumb.html.twig""@SyliusShop/Product/show.html.twig"10)->display($context);
  82.         // line 11
  83.         echo "    <div class=\"ui hidden divider\"></div>
  84.     ";
  85.         // line 13
  86.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.header"$context);
  87.         echo "
  88.     <div class=\"ui two column stackable grid\">
  89.         <div class=\"ten wide column\">
  90.             ";
  91.         // line 17
  92.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.left_sidebar"$context);
  93.         echo "
  94.         </div>
  95.         <div class=\"six wide column\">
  96.             <div class=\"ui top attached large tabular menu product-tabs\">
  97.                 <a class=\"item active\" data-tab=\"summary\">";
  98.         // line 21
  99.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.tabs.summary"), "html"nulltrue);
  100.         echo "</a>
  101.             </div>
  102.             <div class=\"ui bottom attached tab segment product-tabs active\" data-tab=\"summary\">
  103.                 ";
  104.         // line 24
  105.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.right_sidebar"$context);
  106.         echo "
  107.             </div>
  108.         </div>
  109.     </div>
  110.     <div class=\"ui two column stackable grid\">
  111.         <div class=\"ten wide column\">
  112.             ";
  113.         // line 31
  114.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content_left_column"$context);
  115.         echo "
  116.         </div>
  117.         <div class=\"six wide column\">
  118.         ";
  119.         // line 34
  120.         if ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) {
  121.             // line 35
  122.             echo "            <div class=\"wrapper-cont trigger-element\">
  123.                 <ul class=\"tab-conts-box-cont form-tabs\">
  124.                     <li class=\"tab-hyf active\" data-tab=\"rfq\">
  125.                         ";
  126.             // line 38
  127.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.tabs.rfq"), "html"nulltrue);
  128.             echo "
  129.                     </li>
  130.                     <li class=\"tab-hyf\" data-tab=\"inquiry\">
  131.                         ";
  132.             // line 41
  133.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.tabs.contact_vendor"), "html"nulltrue);
  134.             echo "
  135.                     </li>
  136.                 </ul>
  137.             </div>
  138.         ";
  139.         }
  140.         // line 46
  141.         echo "        ";
  142.         if ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) {
  143.             // line 47
  144.             echo "            <div class=\"tab-cont-content-cont\">
  145.                 ";
  146.             // line 48
  147.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content_right_column"$context);
  148.             echo "
  149.             </div>
  150.         ";
  151.         } else {
  152.             // line 51
  153.             echo "            ";
  154.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content_right_column"$context);
  155.             echo "
  156.         ";
  157.         }
  158.         // line 53
  159.         echo "        </div>
  160.     </div>
  161.     ";
  162.         // line 56
  163.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content"$context);
  164.         echo "
  165.     ";
  166.         // line 57
  167.         if ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) {
  168.             // line 58
  169.             echo "        <div class=\"rectangle-group sticky-header\">
  170.             <div class=\"sticky-buttons-group\">
  171.                 <div class=\"btn\" data-tab=\"rfq\">";
  172.             // line 60
  173.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.tabs.rfq"), "html"nulltrue);
  174.             echo "</div>
  175.                 <div class=\"btn\" data-tab=\"inquiry\">";
  176.             // line 61
  177.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.tabs.contact_vendor"), "html"nulltrue);
  178.             echo "</div>
  179.             </div>
  180.         </div>
  181.     ";
  182.         }
  183.         
  184.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  185.         
  186.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  187.     }
  188.     // line 67
  189.     public function block_javascripts($context, array $blocks = [])
  190.     {
  191.         $macros $this->macros;
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  193.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  195.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  196.         // line 68
  197.         echo "    ";
  198.         $this->displayParentBlock("javascripts"$context$blocks);
  199.         echo "
  200.     <script type=\"text/javascript\">
  201.         lightbox.option({
  202.             'albumLabel': '";
  203.         // line 72
  204.         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);
  205.         echo "'
  206.         });
  207.     </script>
  208. ";
  209.         
  210.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  211.         
  212.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  213.     }
  214.     public function getTemplateName()
  215.     {
  216.         return "@SyliusShop/Product/show.html.twig";
  217.     }
  218.     public function isTraitable()
  219.     {
  220.         return false;
  221.     }
  222.     public function getDebugInfo()
  223.     {
  224.         return array (  233 => 72,  225 => 68,  215 => 67,  200 => 61,  196 => 60,  192 => 58,  190 => 57,  186 => 56,  181 => 53,  175 => 51,  169 => 48,  166 => 47,  163 => 46,  155 => 41,  149 => 38,  144 => 35,  142 => 34,  136 => 31,  126 => 24,  120 => 21,  113 => 17,  106 => 13,  102 => 11,  99 => 10,  89 => 9,  68 => 7,  57 => 5,  54 => 3,  52 => 2,  50 => 1,  37 => 5,);
  225.     }
  226.     public function getSourceContext()
  227.     {
  228.         return new Source("{% set preview = 'open_marketplace_vendor_product_listings_preview' == app.request.attributes.get('_route') %}
  229. {% if true == preview and product_listing is defined %}
  230.     {% set product = convert_draft_to_product(product_listing.latestDraft) %}
  231. {% endif %}
  232. {% extends '@SyliusShop/layout.html.twig' %}
  233. {% block title %}{{ product.name }} | {{ parent() }}{% endblock %}
  234. {% block content %}
  235.     {% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}
  236.     <div class=\"ui hidden divider\"></div>
  237.     {{ sylius_template_event('sylius.shop.product.show.header', _context) }}
  238.     <div class=\"ui two column stackable grid\">
  239.         <div class=\"ten wide column\">
  240.             {{ sylius_template_event('sylius.shop.product.show.left_sidebar', _context) }}
  241.         </div>
  242.         <div class=\"six wide column\">
  243.             <div class=\"ui top attached large tabular menu product-tabs\">
  244.                 <a class=\"item active\" data-tab=\"summary\">{{ 'app.ui.product.tabs.summary'|trans }}</a>
  245.             </div>
  246.             <div class=\"ui bottom attached tab segment product-tabs active\" data-tab=\"summary\">
  247.                 {{ sylius_template_event('sylius.shop.product.show.right_sidebar', _context) }}
  248.             </div>
  249.         </div>
  250.     </div>
  251.     <div class=\"ui two column stackable grid\">
  252.         <div class=\"ten wide column\">
  253.             {{ sylius_template_event('sylius.shop.product.show.content_left_column', _context) }}
  254.         </div>
  255.         <div class=\"six wide column\">
  256.         {% if is_mobile() %}
  257.             <div class=\"wrapper-cont trigger-element\">
  258.                 <ul class=\"tab-conts-box-cont form-tabs\">
  259.                     <li class=\"tab-hyf active\" data-tab=\"rfq\">
  260.                         {{ 'app.ui.product.tabs.rfq'|trans }}
  261.                     </li>
  262.                     <li class=\"tab-hyf\" data-tab=\"inquiry\">
  263.                         {{ 'app.ui.product.tabs.contact_vendor'|trans }}
  264.                     </li>
  265.                 </ul>
  266.             </div>
  267.         {% endif %}
  268.         {% if is_mobile() %}
  269.             <div class=\"tab-cont-content-cont\">
  270.                 {{ sylius_template_event('sylius.shop.product.show.content_right_column', _context) }}
  271.             </div>
  272.         {% else %}
  273.             {{ sylius_template_event('sylius.shop.product.show.content_right_column', _context) }}
  274.         {% endif %}
  275.         </div>
  276.     </div>
  277.     {{ sylius_template_event('sylius.shop.product.show.content', _context) }}
  278.     {% if is_mobile() %}
  279.         <div class=\"rectangle-group sticky-header\">
  280.             <div class=\"sticky-buttons-group\">
  281.                 <div class=\"btn\" data-tab=\"rfq\">{{ 'app.ui.product.tabs.rfq'|trans }}</div>
  282.                 <div class=\"btn\" data-tab=\"inquiry\">{{ 'app.ui.product.tabs.contact_vendor'|trans }}</div>
  283.             </div>
  284.         </div>
  285.     {% endif %}
  286. {% endblock %}
  287. {% block javascripts %}
  288.     {{ parent() }}
  289.     <script type=\"text/javascript\">
  290.         lightbox.option({
  291.             'albumLabel': '{{ 'sylius.lightbox.image_album_label'|trans|escape('js') }}'
  292.         });
  293.     </script>
  294. {% endblock %}
  295. ""@SyliusShop/Product/show.html.twig""/srv/open_marketplace/templates/bundles/SyliusShopBundle/Product/show.html.twig");
  296.     }
  297. }