var/cache/dev/twig/9e/9e7b1f2a911cb4d0e8dd571086d1100899afd0fc4aee7224171cdc2ac0f357f0.php line 390

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_fadb72accbcd1ccc9bbb024f656dbf49db59fad39121147818557c3429c917ad 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.             'metatags' => [$this'block_metatags'],
  25.             'banner' => [$this'block_banner'],
  26.             'content' => [$this'block_content'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "@SyliusShop/layout.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/show.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/show.html.twig"));
  42.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/Product/show.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 2
  50.     public function block_title($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         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.'2$this->source); })()), "name", [], "any"falsefalsefalse2), "html"nulltrue);
  58.         echo " | ";
  59.         $this->displayParentBlock("title"$context$blocks);
  60.         
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  62.         
  63.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  64.     }
  65.     // line 3
  66.     public function block_metatags($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  73.         // line 4
  74.         echo "    ";
  75.         if (twig_get_attribute($this->env$this->source, ($context["product"] ?? null), "metaDescription", [], "any"truetruefalse4)) {
  76.             // line 5
  77.             echo "\t<meta name=\"description\" content=\"";
  78.             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.'5$this->source); })()), "metaDescription", [], "any"falsefalsefalse5), "html"nulltrue);
  79.             echo "\">
  80.     ";
  81.         }
  82.         
  83.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  84.         
  85.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  86.     }
  87.     // line 9
  88.     public function block_banner($context, array $blocks = [])
  89.     {
  90.         $macros $this->macros;
  91.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  92.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  93.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  94.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  95.         // line 10
  96.         echo "    ";
  97.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("odiseo_sylius_banner_plugin_shop_partial_banner", ["template" => "@SyliusShop/Banner/banner1.html.twig"]));
  98.         echo "
  99. ";
  100.         
  101.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  102.         
  103.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  104.     }
  105.     // line 15
  106.     public function block_content($context, array $blocks = [])
  107.     {
  108.         $macros $this->macros;
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  111.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  113.         // line 16
  114.         echo "<div class=\"\" id=\"p\">
  115.     ";
  116.         // line 18
  117.         $this->loadTemplate("@SyliusShop/Product/Show/_breadcrumb.html.twig""@SyliusShop/Product/show.html.twig"18)->display($context);
  118.         // line 19
  119.         echo "    <div class=\"ui hidden divider\"></div>
  120.     <div class=\"ui two column stackable grid product-details\">
  121.     <div class=\"column product-details__left-col\">
  122.         ";
  123.         // line 24
  124.         $context["productname"] = 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.'24$this->source); })()), "name", [], "any"falsefalsefalse24);
  125.         // line 25
  126.         echo "        ";
  127.         if (((isset($context["mode"]) || array_key_exists("mode"$context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.'25$this->source); })()) == "gift")) {
  128.             // line 26
  129.             echo "            ";
  130.             $context["productname"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.gift.offrez");
  131.             // line 27
  132.             echo "        ";
  133.         }
  134.         // line 28
  135.         echo "
  136.         <h1 id=\"sylius-product-name\" class=\"product-details__name\" ";
  137.         // line 29
  138.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product-name"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.'29$this->source); })()), "name", [], "any"falsefalsefalse29));
  139.         echo ">";
  140.         echo twig_escape_filter($this->env, (isset($context["productname"]) || array_key_exists("productname"$context) ? $context["productname"] : (function () { throw new RuntimeError('Variable "productname" does not exist.'29$this->source); })()), "html"nulltrue);
  141.         echo "</h1>
  142.         ";
  143.         // line 31
  144.         if (((isset($context["mode"]) || array_key_exists("mode"$context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.'31$this->source); })()) == "gift")) {
  145.             // line 32
  146.             echo "
  147.             ";
  148.             // line 33
  149.             $this->loadTemplate("@SyliusShop/Product/Show/_giftcard.html.twig""@SyliusShop/Product/show.html.twig"33)->display($context);
  150.             // line 34
  151.             echo "
  152.         ";
  153.         } else {
  154.             // line 36
  155.             echo "            ";
  156.             $this->loadTemplate("@SyliusShop/Product/Show/_detailproduct.html.twig""@SyliusShop/Product/show.html.twig"36)->display($context);
  157.             // line 37
  158.             echo "
  159.              ";
  160.             // line 38
  161.             $this->loadTemplate("@SyliusShop/Product/Show/_productaction.html.twig""@SyliusShop/Product/show.html.twig"38)->display($context);
  162.             // line 39
  163.             echo "        ";
  164.         }
  165.         // line 40
  166.         echo "
  167.     </div>
  168.         <div class=\"column\">
  169.             ";
  170.         // line 45
  171.         if ((twig_length_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.'45$this->source); })()), "images", [], "any"falsefalsefalse45)) == 1)) {
  172.             // line 46
  173.             echo "                ";
  174.             $this->loadTemplate("@SyliusShop/Product/Show/_images.html.twig""@SyliusShop/Product/show.html.twig"46)->display($context);
  175.             // line 47
  176.             echo "            ";
  177.         } else {
  178.             // line 48
  179.             echo "
  180.                 ";
  181.             // line 49
  182.             if ((twig_length_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.'49$this->source); })()), "images", [], "any"falsefalsefalse49)) > 1)) {
  183.                 // line 50
  184.                 echo "                <div class=\"product-details__slider-main produit\">
  185.                         ";
  186.                 // line 51
  187.                 $context['_parent'] = $context;
  188.                 $context['_seq'] = twig_ensure_traversable(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.'51$this->source); })()), "images", [], "any"falsefalsefalse51));
  189.                 foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  190.                     // line 52
  191.                     echo "                        ";
  192.                     $context["path"] = (( !(null === twig_get_attribute($this->env$this->source$context["image"], "path", [], "any"falsefalsefalse52))) ? ($this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->source$context["image"], "path", [], "any"falsefalsefalse52), "sylius_large")) : (""));
  193.                     // line 53
  194.                     echo "                            <img src=\"";
  195.                     echo twig_escape_filter($this->env, (isset($context["path"]) || array_key_exists("path"$context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.'53$this->source); })()), "html"nulltrue);
  196.                     echo "\"  alt=\"";
  197.                     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.'53$this->source); })()), "name", [], "any"falsefalsefalse53), "html"nulltrue);
  198.                     echo "\" />
  199.                         ";
  200.                 }
  201.                 $_parent $context['_parent'];
  202.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  203.                 $context array_intersect_key($context$_parent) + $_parent;
  204.                 // line 55
  205.                 echo "                </div>
  206.                 <div class=\"product-details__slider-navigation\">
  207.                         ";
  208.                 // line 57
  209.                 $context['_parent'] = $context;
  210.                 $context['_seq'] = twig_ensure_traversable(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.'57$this->source); })()), "images", [], "any"falsefalsefalse57));
  211.                 foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  212.                     // line 58
  213.                     echo "                        ";
  214.                     $context["path"] = (( !(null === twig_get_attribute($this->env$this->source$context["image"], "path", [], "any"falsefalsefalse58))) ? ($this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->source$context["image"], "path", [], "any"falsefalsefalse58), "sylius_large")) : (""));
  215.                     // line 59
  216.                     echo "                            <img src=\"";
  217.                     echo twig_escape_filter($this->env, (isset($context["path"]) || array_key_exists("path"$context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.'59$this->source); })()), "html"nulltrue);
  218.                     echo "\"  alt=\"";
  219.                     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.'59$this->source); })()), "name", [], "any"falsefalsefalse59), "html"nulltrue);
  220.                     echo "\" />
  221.                         ";
  222.                 }
  223.                 $_parent $context['_parent'];
  224.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  225.                 $context array_intersect_key($context$_parent) + $_parent;
  226.                 // line 61
  227.                 echo "                </div>
  228.                 ";
  229.             }
  230.             // line 63
  231.             echo "            ";
  232.         }
  233.         // line 64
  234.         echo "
  235.             ";
  236.         // line 66
  237.         if ( !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.'66$this->source); })()), "getVideo", [], "method"falsefalsefalse66))) {
  238.             // line 67
  239.             echo "            <div class=\"product_video product-details__product_video\" style=\"padding-top:10px;\">
  240.               ";
  241.             // line 68
  242.             echo 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.'68$this->source); })()), "getVideo", [], "method"falsefalsefalse68);
  243.             echo "
  244.             </div>
  245.             ";
  246.         }
  247.         // line 71
  248.         echo "
  249.             ";
  250.         // line 73
  251.         if ( !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.'73$this->source); })()), "getDispoDescription", [], "method"falsefalsefalse73))) {
  252.             // line 74
  253.             echo "            <div class=\"dispo_description product-details__dispo_description\">
  254.               ";
  255.             // line 75
  256.             echo 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.'75$this->source); })()), "getDispoDescription", [], "method"falsefalsefalse75);
  257.             echo "
  258.             </div>
  259.             ";
  260.         }
  261.         // line 78
  262.         echo "
  263.         </div>
  264.     </div>
  265.      ";
  266.         // line 82
  267.         if (((isset($context["mode"]) || array_key_exists("mode"$context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.'82$this->source); })()) != "gift")) {
  268.             // line 83
  269.             echo "        <div class=\"ui top attached large tabular menu\">
  270.             <a class=\"item active\" data-tab=\"details\">";
  271.             // line 84
  272.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.product.informationscomplementaires"), "html"nulltrue);
  273.             echo "</a>
  274.             ";
  275.             // line 85
  276.             if (twig_get_attribute($this->env$this->source, ($context["SimpleAttributes"] ?? null), "pratiques", [], "any"truetruefalse85)) {
  277.                 // line 86
  278.                 echo "            <a class=\"item\" data-tab=\"attributes\" ";
  279.                 echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("tab""attributes");
  280.                 echo ">";
  281.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.product.informationspratiques"), "html"nulltrue);
  282.                 echo "</a>
  283.             ";
  284.             }
  285.             // line 88
  286.             echo "            <a class=\"item\" data-tab=\"reviews\">";
  287.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.reviews"), "html"nulltrue);
  288.             echo " (";
  289.             echo twig_escape_filter($this->envtwig_length_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.'88$this->source); })()), "acceptedReviews", [], "any"falsefalsefalse88)), "html"nulltrue);
  290.             echo ")</a>
  291.         </div>
  292.         ";
  293.             // line 90
  294.             $this->loadTemplate("@SyliusShop/Product/Show/Tabs/_details.html.twig""@SyliusShop/Product/show.html.twig"90)->display($context);
  295.             // line 91
  296.             echo "        ";
  297.             $this->loadTemplate("@SyliusShop/Product/Show/Tabs/_infospratiques.html.twig""@SyliusShop/Product/show.html.twig"91)->display($context);
  298.             // line 92
  299.             echo "        ";
  300.             $this->loadTemplate("@SyliusShop/Product/Show/Tabs/_reviews.html.twig""@SyliusShop/Product/show.html.twig"92)->display($context);
  301.             // line 93
  302.             echo "    ";
  303.         }
  304.         // line 94
  305.         echo "
  306.         <div class=\"text-center product-details__back-button\">
  307.             <a href=\"";
  308.         // line 97
  309.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_product_search");
  310.         echo "\" class=\"button button--outline\">
  311.                 <i class=\"fas fa-arrow-left\"></i> ";
  312.         // line 98
  313.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.retourliste"), "html"nulltrue);
  314.         echo "
  315.             </a>
  316.         </div>
  317.     ";
  318.         // line 103
  319.         $context['_parent'] = $context;
  320.         $context['_seq'] = twig_ensure_traversable(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.'103$this->source); })()), "associations", [], "any"falsefalsefalse103));
  321.         $context['_iterated'] = false;
  322.         foreach ($context['_seq'] as $context["_key"] => $context["association"]) {
  323.             // line 104
  324.             echo "        ";
  325.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sylius_shop_partial_product_association_show", ["productId" => 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.'104$this->source); })()), "id", [], "any"falsefalsefalse104), "id" => twig_get_attribute($this->env$this->source$context["association"], "id", [], "any"falsefalsefalse104), "template" => "@SyliusShop/Product/Show/_association.html.twig"]));
  326.             echo "
  327.     ";
  328.             $context['_iterated'] = true;
  329.         }
  330.         if (!$context['_iterated']) {
  331.             // line 106
  332.             echo "        <div class=\"related-products\">
  333.             <img class=\"related-products__icon\" src=\"";
  334.             // line 107
  335.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/img/associated-icon.png"), "html"nulltrue);
  336.             echo "\" alt=\"";
  337.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.produitsassocies"), "html"nulltrue);
  338.             echo "\">
  339.             <span class=\"related-products__tagline\">";
  340.             // line 108
  341.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.produitsassocies"), "html"nulltrue);
  342.             echo "</span>
  343.             <h4 class=\"related-products__title\">";
  344.             // line 109
  345.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.clientontcommande"), "html"nulltrue);
  346.             echo " </h4>
  347.              ";
  348.             // line 110
  349.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sylius_shop_partial_product_index_latest", ["count" => 10"template" => "@SyliusShop/Product/_horizontalList.html.twig"]));
  350.             echo "
  351.         </div>
  352.     ";
  353.         }
  354.         $_parent $context['_parent'];
  355.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['association'], $context['_parent'], $context['loop']);
  356.         $context array_intersect_key($context$_parent) + $_parent;
  357.         // line 113
  358.         echo "</div>
  359. ";
  360.         
  361.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  362.         
  363.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  364.     }
  365.     // line 118
  366.     public function block_javascripts($context, array $blocks = [])
  367.     {
  368.         $macros $this->macros;
  369.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  370.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  371.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  372.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  373.         // line 119
  374.         $this->displayParentBlock("javascripts"$context$blocks);
  375.         echo "
  376. <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"></script>
  377. <script type=\"text/javascript\" src=\"//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js\"></script>
  378. <link rel=\"stylesheet\" type=\"text/css\" href=\"//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css\"/>
  379. <script>
  380.     //lightbox.option({
  381.     //    'albumLabel': '";
  382.         // line 128
  383.         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);
  384.         echo "'
  385.     //});
  386.     \$(document).ready(function () {
  387. \t  \$('.sylius_add_to_cart_cartItem_variant_button').on('click', function () {
  388. \t    var selector = '';
  389.         key = \$(this).data( \"key\" );
  390. \t    var price = \$(this).data( \"price\" );
  391. \t    var originalPrice = \$(this).data( \"originalprice\" );
  392. \t    if (price !== undefined) {
  393. \t      \$('#product-price').text(price);
  394. \t      if (originalPrice !== undefined && originalPrice != \"\" && originalPrice != price ) {
  395. \t        \$('#product-original-price').css('display', 'inline').html('<del>' + originalPrice + '</del>');
  396. \t      } else {
  397. \t        \$('#product-original-price').css('display', 'none');
  398. \t      }
  399. \t    } else {
  400. \t      \$('#product-price').text(\$('#sylius-variants-pricing').attr('data-unavailable-text'));
  401. \t      \$('button[type=submit]').attr('disabled', 'disabled');
  402. \t    }
  403. \t  });
  404.         \$('.product-details__slider-main').slick({
  405.             slidesToShow: 1,
  406.             slidesToScroll: 1,
  407.             arrows: true,
  408.             fade: true,
  409.             infinite: false,
  410.             asNavFor: '.product-details__slider-navigation',
  411.             autoplay: true,
  412.             autoplaySpeed: 3000
  413.         });
  414.         \$('.product-details__slider-navigation').slick({
  415.             slidesToShow: 4,
  416.             slidesToScroll: 1,
  417.             asNavFor: '.product-details__slider-main',
  418.             arrows: false,
  419.             infinite: false,
  420.             focusOnSelect: true,
  421.             autoplay: true,
  422.             autoplaySpeed: 3000
  423.         });
  424.         \$('.related-products__products').slick({
  425.             slidesToShow: 3,
  426.             slidesToScroll: 1,
  427.             arrows: true,
  428.             dots: true,
  429.             infinite: false,
  430.             autoplay: true,
  431.             autoplaySpeed: 3000,
  432.             responsive: [
  433.                     {
  434.                         breakpoint: 991,
  435.                         settings: {
  436.                             slidesToShow: 2,
  437.                         }
  438.                     },
  439.                     {
  440.                         breakpoint: 768,
  441.                         settings: {
  442.                             slidesToShow: 1,
  443.                         }
  444.                     },
  445.                 ]
  446.         });
  447.         const hideScreens = () => {
  448.             document.querySelector('#gift_screen1').style.display = 'none'
  449.             document.querySelector('#gift_screen2').style.display = 'none'
  450.             document.querySelector('#gift_screen3').style.display = 'none'
  451.         }
  452.         const showScreen1 = () => {
  453.             document.querySelector('#gift_screen1').style.display = 'block'
  454.         }
  455.         const showScreen2 = () => {
  456.             document.querySelector('#gift_screen2').style.display = 'block'
  457.         }
  458.         const showScreen3 = () => {
  459.             document.querySelector('#gift_screen3').style.display = 'block'
  460.         }
  461.         // form steps
  462.         document.querySelectorAll('.gotostep1').forEach((item) => {
  463.             item.addEventListener('click', (e) => {
  464.                 e.preventDefault();
  465.                 hideScreens();
  466.                 showScreen1();
  467.             })
  468.         })
  469.         document.querySelectorAll('.gotostep2').forEach((item) => {
  470.             item.addEventListener('click', (e) => {
  471.                 e.preventDefault();
  472.                 hideScreens();
  473.                 showScreen2();
  474.             })
  475.         })
  476.         document.querySelectorAll('.gotostep3').forEach((item) => {
  477.             item.addEventListener('click', (e) => {
  478.                 e.preventDefault();
  479.                 hideScreens();
  480.                 showScreen3();
  481.             })
  482.         });
  483.     })
  484. </script>
  485. ";
  486.         
  487.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  488.         
  489.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  490.     }
  491.     public function getTemplateName()
  492.     {
  493.         return "@SyliusShop/Product/show.html.twig";
  494.     }
  495.     public function isTraitable()
  496.     {
  497.         return false;
  498.     }
  499.     public function getDebugInfo()
  500.     {
  501.         return array (  434 => 128,  422 => 119,  412 => 118,  399 => 113,  390 => 110,  386 => 109,  382 => 108,  376 => 107,  373 => 106,  365 => 104,  360 => 103,  352 => 98,  348 => 97,  343 => 94,  340 => 93,  337 => 92,  334 => 91,  332 => 90,  324 => 88,  316 => 86,  314 => 85,  310 => 84,  307 => 83,  305 => 82,  299 => 78,  293 => 75,  290 => 74,  288 => 73,  284 => 71,  278 => 68,  275 => 67,  273 => 66,  269 => 64,  266 => 63,  262 => 61,  251 => 59,  248 => 58,  244 => 57,  240 => 55,  229 => 53,  226 => 52,  222 => 51,  219 => 50,  217 => 49,  214 => 48,  211 => 47,  208 => 46,  206 => 45,  199 => 40,  196 => 39,  194 => 38,  191 => 37,  188 => 36,  184 => 34,  182 => 33,  179 => 32,  177 => 31,  170 => 29,  167 => 28,  164 => 27,  161 => 26,  158 => 25,  156 => 24,  149 => 19,  147 => 18,  143 => 16,  133 => 15,  120 => 10,  110 => 9,  96 => 5,  93 => 4,  83 => 3,  62 => 2,  39 => 1,);
  502.     }
  503.     public function getSourceContext()
  504.     {
  505.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  506. {% block title %}{{ product.name }} | {{ parent() }}{% endblock %}
  507. {% block metatags %}
  508.     {% if product.metaDescription is defined  %}
  509. \t<meta name=\"description\" content=\"{{ product.metaDescription }}\">
  510.     {% endif %}
  511. {% endblock %}
  512. {% block banner %}
  513.     {{ render(url('odiseo_sylius_banner_plugin_shop_partial_banner', {'template': '@SyliusShop/Banner/banner1.html.twig'})) }}
  514. {% endblock %}
  515. {% block content %}
  516. <div class=\"\" id=\"p\">
  517.     {% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}
  518.     <div class=\"ui hidden divider\"></div>
  519.     <div class=\"ui two column stackable grid product-details\">
  520.     <div class=\"column product-details__left-col\">
  521.         {% set productname = product.name %}
  522.         {% if mode == \"gift\" %}
  523.             {% set productname =  'sylius.ui.gift.offrez'|trans  %}
  524.         {% endif %}
  525.         <h1 id=\"sylius-product-name\" class=\"product-details__name\" {{ sylius_test_html_attribute('product-name', product.name) }}>{{ productname }}</h1>
  526.         {% if mode == \"gift\" %}
  527.             {% include '@SyliusShop/Product/Show/_giftcard.html.twig' %}
  528.         {% else %}
  529.             {% include '@SyliusShop/Product/Show/_detailproduct.html.twig' %}
  530.              {% include '@SyliusShop/Product/Show/_productaction.html.twig' %}
  531.         {% endif %}
  532.     </div>
  533.         <div class=\"column\">
  534.             {% if product.images|length == 1 %}
  535.                 {% include '@SyliusShop/Product/Show/_images.html.twig' %}
  536.             {% else %}
  537.                 {% if product.images|length > 1 %}
  538.                 <div class=\"product-details__slider-main produit\">
  539.                         {% for image in product.images %}
  540.                         {% set path = image.path is not null ? image.path|imagine_filter('sylius_large') : '' %}
  541.                             <img src=\"{{ path }}\"  alt=\"{{ product.name }}\" />
  542.                         {% endfor %}
  543.                 </div>
  544.                 <div class=\"product-details__slider-navigation\">
  545.                         {% for image in product.images %}
  546.                         {% set path = image.path is not null ? image.path|imagine_filter('sylius_large') : '' %}
  547.                             <img src=\"{{ path }}\"  alt=\"{{ product.name }}\" />
  548.                         {% endfor %}
  549.                 </div>
  550.                 {% endif %}
  551.             {% endif %}
  552.             {% if product.getVideo() is not empty %}
  553.             <div class=\"product_video product-details__product_video\" style=\"padding-top:10px;\">
  554.               {{ product.getVideo() | raw }}
  555.             </div>
  556.             {% endif %}
  557.             {% if product.getDispoDescription() is not empty %}
  558.             <div class=\"dispo_description product-details__dispo_description\">
  559.               {{ product.getDispoDescription() | raw }}
  560.             </div>
  561.             {% endif %}
  562.         </div>
  563.     </div>
  564.      {% if mode != \"gift\" %}
  565.         <div class=\"ui top attached large tabular menu\">
  566.             <a class=\"item active\" data-tab=\"details\">{{ 'sylius.product.informationscomplementaires'|trans }}</a>
  567.             {% if SimpleAttributes.pratiques is defined %}
  568.             <a class=\"item\" data-tab=\"attributes\" {{ sylius_test_html_attribute('tab', 'attributes') }}>{{ 'sylius.product.informationspratiques'|trans }}</a>
  569.             {% endif %}
  570.             <a class=\"item\" data-tab=\"reviews\">{{ 'sylius.ui.reviews'|trans }} ({{ product.acceptedReviews|length }})</a>
  571.         </div>
  572.         {% include '@SyliusShop/Product/Show/Tabs/_details.html.twig' %}
  573.         {% include '@SyliusShop/Product/Show/Tabs/_infospratiques.html.twig' %}
  574.         {% include '@SyliusShop/Product/Show/Tabs/_reviews.html.twig' %}
  575.     {% endif %}
  576.         <div class=\"text-center product-details__back-button\">
  577.             <a href=\"{{ path('app_shop_product_search') }}\" class=\"button button--outline\">
  578.                 <i class=\"fas fa-arrow-left\"></i> {{ 'sylius.ui.retourliste'|trans }}
  579.             </a>
  580.         </div>
  581.     {% for association in product.associations %}
  582.         {{ render(url('sylius_shop_partial_product_association_show', {'productId': product.id, 'id': association.id, 'template': '@SyliusShop/Product/Show/_association.html.twig'})) }}
  583.     {% else %}
  584.         <div class=\"related-products\">
  585.             <img class=\"related-products__icon\" src=\"{{ asset('assets/shop/img/associated-icon.png') }}\" alt=\"{{ 'sylius.ui.produitsassocies'|trans }}\">
  586.             <span class=\"related-products__tagline\">{{ 'sylius.ui.produitsassocies'|trans }}</span>
  587.             <h4 class=\"related-products__title\">{{ 'sylius.ui.clientontcommande'|trans }} </h4>
  588.              {{ render(url('sylius_shop_partial_product_index_latest', {'count': 10, 'template': '@SyliusShop/Product/_horizontalList.html.twig'})) }}
  589.         </div>
  590.     {% endfor %}
  591. </div>
  592. {% endblock %}
  593. {% block javascripts %}
  594. {{ parent() }}
  595. <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"></script>
  596. <script type=\"text/javascript\" src=\"//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js\"></script>
  597. <link rel=\"stylesheet\" type=\"text/css\" href=\"//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css\"/>
  598. <script>
  599.     //lightbox.option({
  600.     //    'albumLabel': '{{ 'sylius.lightbox.image_album_label'|trans|escape('js') }}'
  601.     //});
  602.     \$(document).ready(function () {
  603. \t  \$('.sylius_add_to_cart_cartItem_variant_button').on('click', function () {
  604. \t    var selector = '';
  605.         key = \$(this).data( \"key\" );
  606. \t    var price = \$(this).data( \"price\" );
  607. \t    var originalPrice = \$(this).data( \"originalprice\" );
  608. \t    if (price !== undefined) {
  609. \t      \$('#product-price').text(price);
  610. \t      if (originalPrice !== undefined && originalPrice != \"\" && originalPrice != price ) {
  611. \t        \$('#product-original-price').css('display', 'inline').html('<del>' + originalPrice + '</del>');
  612. \t      } else {
  613. \t        \$('#product-original-price').css('display', 'none');
  614. \t      }
  615. \t    } else {
  616. \t      \$('#product-price').text(\$('#sylius-variants-pricing').attr('data-unavailable-text'));
  617. \t      \$('button[type=submit]').attr('disabled', 'disabled');
  618. \t    }
  619. \t  });
  620.         \$('.product-details__slider-main').slick({
  621.             slidesToShow: 1,
  622.             slidesToScroll: 1,
  623.             arrows: true,
  624.             fade: true,
  625.             infinite: false,
  626.             asNavFor: '.product-details__slider-navigation',
  627.             autoplay: true,
  628.             autoplaySpeed: 3000
  629.         });
  630.         \$('.product-details__slider-navigation').slick({
  631.             slidesToShow: 4,
  632.             slidesToScroll: 1,
  633.             asNavFor: '.product-details__slider-main',
  634.             arrows: false,
  635.             infinite: false,
  636.             focusOnSelect: true,
  637.             autoplay: true,
  638.             autoplaySpeed: 3000
  639.         });
  640.         \$('.related-products__products').slick({
  641.             slidesToShow: 3,
  642.             slidesToScroll: 1,
  643.             arrows: true,
  644.             dots: true,
  645.             infinite: false,
  646.             autoplay: true,
  647.             autoplaySpeed: 3000,
  648.             responsive: [
  649.                     {
  650.                         breakpoint: 991,
  651.                         settings: {
  652.                             slidesToShow: 2,
  653.                         }
  654.                     },
  655.                     {
  656.                         breakpoint: 768,
  657.                         settings: {
  658.                             slidesToShow: 1,
  659.                         }
  660.                     },
  661.                 ]
  662.         });
  663.         const hideScreens = () => {
  664.             document.querySelector('#gift_screen1').style.display = 'none'
  665.             document.querySelector('#gift_screen2').style.display = 'none'
  666.             document.querySelector('#gift_screen3').style.display = 'none'
  667.         }
  668.         const showScreen1 = () => {
  669.             document.querySelector('#gift_screen1').style.display = 'block'
  670.         }
  671.         const showScreen2 = () => {
  672.             document.querySelector('#gift_screen2').style.display = 'block'
  673.         }
  674.         const showScreen3 = () => {
  675.             document.querySelector('#gift_screen3').style.display = 'block'
  676.         }
  677.         // form steps
  678.         document.querySelectorAll('.gotostep1').forEach((item) => {
  679.             item.addEventListener('click', (e) => {
  680.                 e.preventDefault();
  681.                 hideScreens();
  682.                 showScreen1();
  683.             })
  684.         })
  685.         document.querySelectorAll('.gotostep2').forEach((item) => {
  686.             item.addEventListener('click', (e) => {
  687.                 e.preventDefault();
  688.                 hideScreens();
  689.                 showScreen2();
  690.             })
  691.         })
  692.         document.querySelectorAll('.gotostep3').forEach((item) => {
  693.             item.addEventListener('click', (e) => {
  694.                 e.preventDefault();
  695.                 hideScreens();
  696.                 showScreen3();
  697.             })
  698.         });
  699.     })
  700. </script>
  701. {% endblock %}
  702. ""@SyliusShop/Product/show.html.twig""/home/mons/site/www/templates/bundles/SyliusShopBundle/Product/show.html.twig");
  703.     }
  704. }