var/cache/dev/twig/28/28a6bfcd3669709bac81d06b572e6e62.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_c7d0c477703dc88d931c7402056b10b0 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.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content_right_column"$context);
  121.         echo "
  122.         </div>
  123.     </div>
  124.     ";
  125.         // line 38
  126.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content"$context);
  127.         echo "
  128. ";
  129.         
  130.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  131.         
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  133.     }
  134.     // line 41
  135.     public function block_javascripts($context, array $blocks = [])
  136.     {
  137.         $macros $this->macros;
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  142.         // line 42
  143.         echo "    ";
  144.         $this->displayParentBlock("javascripts"$context$blocks);
  145.         echo "
  146.     <script type=\"text/javascript\">
  147.         lightbox.option({
  148.             'albumLabel': '";
  149.         // line 46
  150.         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);
  151.         echo "'
  152.         });
  153.     </script>
  154. ";
  155.         
  156.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  157.         
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  159.     }
  160.     public function getTemplateName()
  161.     {
  162.         return "@SyliusShop/Product/show.html.twig";
  163.     }
  164.     public function isTraitable()
  165.     {
  166.         return false;
  167.     }
  168.     public function getDebugInfo()
  169.     {
  170.         return array (  179 => 46,  171 => 42,  161 => 41,  149 => 38,  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,);
  171.     }
  172.     public function getSourceContext()
  173.     {
  174.         return new Source("{% set preview = 'open_marketplace_vendor_product_listings_preview' == app.request.attributes.get('_route') %}
  175. {% if true == preview and product_listing is defined %}
  176.     {% set product = convert_draft_to_product(product_listing.latestDraft) %}
  177. {% endif %}
  178. {% extends '@SyliusShop/layout.html.twig' %}
  179. {% block title %}{{ product.name }} | {{ parent() }}{% endblock %}
  180. {% block content %}
  181.     {% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}
  182.     <div class=\"ui hidden divider\"></div>
  183.     {{ sylius_template_event('sylius.shop.product.show.header', _context) }}
  184.     <div class=\"ui two column stackable grid\">
  185.         <div class=\"ten wide column\">
  186.             {{ sylius_template_event('sylius.shop.product.show.left_sidebar', _context) }}
  187.         </div>
  188.         <div class=\"six wide column\">
  189.             <div class=\"ui top attached large tabular menu product-tabs\">
  190.                 <a class=\"item active\" data-tab=\"summary\">{{ 'app.ui.product.tabs.summary'|trans }}</a>
  191.             </div>
  192.             <div class=\"ui bottom attached tab segment product-tabs active\" data-tab=\"summary\">
  193.                 {{ sylius_template_event('sylius.shop.product.show.right_sidebar', _context) }}
  194.             </div>
  195.         </div>
  196.     </div>
  197.     <div class=\"ui two column stackable grid\">
  198.         <div class=\"ten wide column\">
  199.             {{ sylius_template_event('sylius.shop.product.show.content_left_column', _context) }}
  200.         </div>
  201.         <div class=\"six wide column\">
  202.             {{ sylius_template_event('sylius.shop.product.show.content_right_column', _context) }}
  203.         </div>
  204.     </div>
  205.     {{ sylius_template_event('sylius.shop.product.show.content', _context) }}
  206. {% endblock %}
  207. {% block javascripts %}
  208.     {{ parent() }}
  209.     <script type=\"text/javascript\">
  210.         lightbox.option({
  211.             'albumLabel': '{{ 'sylius.lightbox.image_album_label'|trans|escape('js') }}'
  212.         });
  213.     </script>
  214. {% endblock %}
  215. ""@SyliusShop/Product/show.html.twig""/srv/open_marketplace/templates/bundles/SyliusShopBundle/Product/show.html.twig");
  216.     }
  217. }