var/cache/dev/twig/0a/0a1b52d0e42169ec6018572427f994d5.php line 50

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_0882a0a9f6330ad3a5b0ad3a400c0d21 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 1
  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.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/Product/show.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         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.'3$this->source); })()), "name", [], "any"falsefalsefalse3), "html"nulltrue);
  56.         echo " | ";
  57.         $this->displayParentBlock("title"$context$blocks);
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.     }
  63.     // line 5
  64.     public function block_content($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  71.         // line 6
  72.         echo "    <div class=\"container-h\">
  73.         ";
  74.         // line 7
  75.         $this->loadTemplate("@SyliusShop/Product/Show/_breadcrumb.html.twig""@SyliusShop/Product/show.html.twig"7)->display($context);
  76.         // line 9
  77.         echo "        ";
  78.         if ((twig_length_filter($this->envtwig_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.'9$this->source); })()), "images", [], "any"falsefalsefalse9), "toArray", [], "method"falsefalsefalse9)) > 1)) {
  79.             // line 10
  80.             echo "            <div class=\"header-product-info\">
  81.                 ";
  82.             // line 11
  83.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.before.content"$context);
  84.             echo "
  85.             </div>
  86.                 <div class=\"mobile-version-gallery\">
  87.                     ";
  88.             // line 14
  89.             $this->loadTemplate("@SyliusShop/Product/Show/_image_mobile.html.twig""@SyliusShop/Product/show.html.twig"14)->display($context);
  90.             // line 15
  91.             echo "                </div>
  92.                 <div class=\"ui two column stackable grid\" id=\"destock-version-gallery\">
  93.                     <div class=\"column\" id=\"column-left\">
  94.                         ";
  95.             // line 18
  96.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.left_sidebar"$context);
  97.             echo "
  98.                     </div>
  99.                     <div class=\"column\" id=\"column-right\">
  100.                         ";
  101.             // line 21
  102.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.right_sidebar.images"$context);
  103.             echo "
  104.                     </div>
  105.                 </div>
  106.             ";
  107.         } else {
  108.             // line 26
  109.             echo "
  110.             <div class=\"ui two column stackable grid\" id=\"gallery-main-and-secondary\">
  111.                 <div class=\"column\" id=\"column-left\">
  112.                     ";
  113.             // line 29
  114.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.left_sidebar"$context);
  115.             echo "
  116.                 </div>
  117.                 <div class=\"header-product-info column\">
  118.                     ";
  119.             // line 32
  120.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.before.content"$context);
  121.             echo "
  122.                 </div>
  123.             </div>
  124.         ";
  125.         }
  126.         // line 38
  127.         echo "</div>
  128.     ";
  129.         // line 39
  130.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content"$context);
  131.         echo "
  132.     <style>
  133.         #main-container {
  134.             padding-bottom: 0;
  135.         }
  136.         #box-product-card{
  137.             display: none;
  138.             width: 100% !important;
  139.             margin: 0 !important;
  140.         }
  141.         #box-product-card:nth-child(1){
  142.             display: flex;
  143.         }
  144.     </style>
  145. ";
  146.         
  147.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  148.         
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  150.     }
  151.     // line 57
  152.     public function block_javascripts($context, array $blocks = [])
  153.     {
  154.         $macros $this->macros;
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  158.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  159.         // line 58
  160.         echo "    ";
  161.         $this->displayParentBlock("javascripts"$context$blocks);
  162.         echo "
  163.     <script type=\"text/javascript\">
  164.       lightbox.option({
  165.         'albumLabel': '";
  166.         // line 62
  167.         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);
  168.         echo "'
  169.       });
  170.     </script>
  171. ";
  172.         
  173.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  174.         
  175.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  176.     }
  177.     public function getTemplateName()
  178.     {
  179.         return "@SyliusShop/Product/show.html.twig";
  180.     }
  181.     public function isTraitable()
  182.     {
  183.         return false;
  184.     }
  185.     public function getDebugInfo()
  186.     {
  187.         return array (  196 => 62,  188 => 58,  178 => 57,  152 => 39,  149 => 38,  140 => 32,  134 => 29,  129 => 26,  121 => 21,  115 => 18,  110 => 15,  108 => 14,  102 => 11,  99 => 10,  96 => 9,  94 => 7,  91 => 6,  81 => 5,  60 => 3,  37 => 1,);
  188.     }
  189.     public function getSourceContext()
  190.     {
  191.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  192. {% block title %}{{ product.name }} | {{ parent() }}{% endblock %}
  193. {% block content %}
  194.     <div class=\"container-h\">
  195.         {% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}
  196. {#        <div class=\"ui hidden divider\"></div>#}
  197.         {% if product.images.toArray()|length > 1%}
  198.             <div class=\"header-product-info\">
  199.                 {{ sylius_template_event('sylius.shop.product.show.before.content', _context) }}
  200.             </div>
  201.                 <div class=\"mobile-version-gallery\">
  202.                     {% include '@SyliusShop/Product/Show/_image_mobile.html.twig' %}
  203.                 </div>
  204.                 <div class=\"ui two column stackable grid\" id=\"destock-version-gallery\">
  205.                     <div class=\"column\" id=\"column-left\">
  206.                         {{ sylius_template_event('sylius.shop.product.show.left_sidebar', _context) }}
  207.                     </div>
  208.                     <div class=\"column\" id=\"column-right\">
  209.                         {{ sylius_template_event('sylius.shop.product.show.right_sidebar.images', _context) }}
  210.                     </div>
  211.                 </div>
  212.             {% else %}
  213.             <div class=\"ui two column stackable grid\" id=\"gallery-main-and-secondary\">
  214.                 <div class=\"column\" id=\"column-left\">
  215.                     {{ sylius_template_event('sylius.shop.product.show.left_sidebar', _context) }}
  216.                 </div>
  217.                 <div class=\"header-product-info column\">
  218.                     {{ sylius_template_event('sylius.shop.product.show.before.content', _context) }}
  219.                 </div>
  220.             </div>
  221.         {% endif %}
  222. </div>
  223.     {{ sylius_template_event('sylius.shop.product.show.content', _context) }}
  224.     <style>
  225.         #main-container {
  226.             padding-bottom: 0;
  227.         }
  228.         #box-product-card{
  229.             display: none;
  230.             width: 100% !important;
  231.             margin: 0 !important;
  232.         }
  233.         #box-product-card:nth-child(1){
  234.             display: flex;
  235.         }
  236.     </style>
  237. {% endblock %}
  238. {% block javascripts %}
  239.     {{ parent() }}
  240.     <script type=\"text/javascript\">
  241.       lightbox.option({
  242.         'albumLabel': '{{ 'sylius.lightbox.image_album_label'|trans|escape('js') }}'
  243.       });
  244.     </script>
  245. {% endblock %}
  246. ""@SyliusShop/Product/show.html.twig""/var/www/Bikers/templates/bundles/SyliusShopBundle/Product/show.html.twig");
  247.     }
  248. }