<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @SyliusShop/Product/show.html.twig */
class __TwigTemplate_fadb72accbcd1ccc9bbb024f656dbf49db59fad39121147818557c3429c917ad extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'metatags' => [$this, 'block_metatags'],
'banner' => [$this, 'block_banner'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@SyliusShop/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/show.html.twig"));
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "@SyliusShop/Product/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 2
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, 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.', 2, $this->source); })()), "name", [], "any", false, false, false, 2), "html", null, true);
echo " | ";
$this->displayParentBlock("title", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 3
public function block_metatags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
// line 4
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "metaDescription", [], "any", true, true, false, 4)) {
// line 5
echo "\t<meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, 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.', 5, $this->source); })()), "metaDescription", [], "any", false, false, false, 5), "html", null, true);
echo "\">
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 9
public function block_banner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "banner"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "banner"));
// line 10
echo " ";
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"]));
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 15
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 16
echo "<div class=\"\" id=\"p\">
";
// line 18
$this->loadTemplate("@SyliusShop/Product/Show/_breadcrumb.html.twig", "@SyliusShop/Product/show.html.twig", 18)->display($context);
// line 19
echo " <div class=\"ui hidden divider\"></div>
<div class=\"ui two column stackable grid product-details\">
<div class=\"column product-details__left-col\">
";
// line 24
$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", false, false, false, 24);
// line 25
echo " ";
if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 25, $this->source); })()) == "gift")) {
// line 26
echo " ";
$context["productname"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.gift.offrez");
// line 27
echo " ";
}
// line 28
echo "
<h1 id=\"sylius-product-name\" class=\"product-details__name\" ";
// line 29
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", false, false, false, 29));
echo ">";
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", null, true);
echo "</h1>
";
// line 31
if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 31, $this->source); })()) == "gift")) {
// line 32
echo "
";
// line 33
$this->loadTemplate("@SyliusShop/Product/Show/_giftcard.html.twig", "@SyliusShop/Product/show.html.twig", 33)->display($context);
// line 34
echo "
";
} else {
// line 36
echo " ";
$this->loadTemplate("@SyliusShop/Product/Show/_detailproduct.html.twig", "@SyliusShop/Product/show.html.twig", 36)->display($context);
// line 37
echo "
";
// line 38
$this->loadTemplate("@SyliusShop/Product/Show/_productaction.html.twig", "@SyliusShop/Product/show.html.twig", 38)->display($context);
// line 39
echo " ";
}
// line 40
echo "
</div>
<div class=\"column\">
";
// line 45
if ((twig_length_filter($this->env, 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.', 45, $this->source); })()), "images", [], "any", false, false, false, 45)) == 1)) {
// line 46
echo " ";
$this->loadTemplate("@SyliusShop/Product/Show/_images.html.twig", "@SyliusShop/Product/show.html.twig", 46)->display($context);
// line 47
echo " ";
} else {
// line 48
echo "
";
// line 49
if ((twig_length_filter($this->env, 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.', 49, $this->source); })()), "images", [], "any", false, false, false, 49)) > 1)) {
// line 50
echo " <div class=\"product-details__slider-main produit\">
";
// line 51
$context['_parent'] = $context;
$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", false, false, false, 51));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 52
echo " ";
$context["path"] = (( !(null === twig_get_attribute($this->env, $this->source, $context["image"], "path", [], "any", false, false, false, 52))) ? ($this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env, $this->source, $context["image"], "path", [], "any", false, false, false, 52), "sylius_large")) : (""));
// line 53
echo " <img src=\"";
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", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, 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.', 53, $this->source); })()), "name", [], "any", false, false, false, 53), "html", null, true);
echo "\" />
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 55
echo " </div>
<div class=\"product-details__slider-navigation\">
";
// line 57
$context['_parent'] = $context;
$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", false, false, false, 57));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 58
echo " ";
$context["path"] = (( !(null === twig_get_attribute($this->env, $this->source, $context["image"], "path", [], "any", false, false, false, 58))) ? ($this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env, $this->source, $context["image"], "path", [], "any", false, false, false, 58), "sylius_large")) : (""));
// line 59
echo " <img src=\"";
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", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, 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.', 59, $this->source); })()), "name", [], "any", false, false, false, 59), "html", null, true);
echo "\" />
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 61
echo " </div>
";
}
// line 63
echo " ";
}
// line 64
echo "
";
// line 66
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", false, false, false, 66))) {
// line 67
echo " <div class=\"product_video product-details__product_video\" style=\"padding-top:10px;\">
";
// line 68
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", false, false, false, 68);
echo "
</div>
";
}
// line 71
echo "
";
// line 73
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", false, false, false, 73))) {
// line 74
echo " <div class=\"dispo_description product-details__dispo_description\">
";
// line 75
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", false, false, false, 75);
echo "
</div>
";
}
// line 78
echo "
</div>
</div>
";
// line 82
if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 82, $this->source); })()) != "gift")) {
// line 83
echo " <div class=\"ui top attached large tabular menu\">
<a class=\"item active\" data-tab=\"details\">";
// line 84
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.product.informationscomplementaires"), "html", null, true);
echo "</a>
";
// line 85
if (twig_get_attribute($this->env, $this->source, ($context["SimpleAttributes"] ?? null), "pratiques", [], "any", true, true, false, 85)) {
// line 86
echo " <a class=\"item\" data-tab=\"attributes\" ";
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("tab", "attributes");
echo ">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.product.informationspratiques"), "html", null, true);
echo "</a>
";
}
// line 88
echo " <a class=\"item\" data-tab=\"reviews\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.reviews"), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, twig_length_filter($this->env, 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.', 88, $this->source); })()), "acceptedReviews", [], "any", false, false, false, 88)), "html", null, true);
echo ")</a>
</div>
";
// line 90
$this->loadTemplate("@SyliusShop/Product/Show/Tabs/_details.html.twig", "@SyliusShop/Product/show.html.twig", 90)->display($context);
// line 91
echo " ";
$this->loadTemplate("@SyliusShop/Product/Show/Tabs/_infospratiques.html.twig", "@SyliusShop/Product/show.html.twig", 91)->display($context);
// line 92
echo " ";
$this->loadTemplate("@SyliusShop/Product/Show/Tabs/_reviews.html.twig", "@SyliusShop/Product/show.html.twig", 92)->display($context);
// line 93
echo " ";
}
// line 94
echo "
<div class=\"text-center product-details__back-button\">
<a href=\"";
// line 97
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_product_search");
echo "\" class=\"button button--outline\">
<i class=\"fas fa-arrow-left\"></i> ";
// line 98
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.retourliste"), "html", null, true);
echo "
</a>
</div>
";
// line 103
$context['_parent'] = $context;
$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", false, false, false, 103));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["association"]) {
// line 104
echo " ";
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", false, false, false, 104), "id" => twig_get_attribute($this->env, $this->source, $context["association"], "id", [], "any", false, false, false, 104), "template" => "@SyliusShop/Product/Show/_association.html.twig"]));
echo "
";
$context['_iterated'] = true;
}
if (!$context['_iterated']) {
// line 106
echo " <div class=\"related-products\">
<img class=\"related-products__icon\" src=\"";
// line 107
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/img/associated-icon.png"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.produitsassocies"), "html", null, true);
echo "\">
<span class=\"related-products__tagline\">";
// line 108
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.produitsassocies"), "html", null, true);
echo "</span>
<h4 class=\"related-products__title\">";
// line 109
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.clientontcommande"), "html", null, true);
echo " </h4>
";
// line 110
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"]));
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['association'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 113
echo "</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 118
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 119
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"></script>
<script type=\"text/javascript\" src=\"//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js\"></script>
<link rel=\"stylesheet\" type=\"text/css\" href=\"//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css\"/>
<script>
//lightbox.option({
// 'albumLabel': '";
// line 128
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.lightbox.image_album_label"), "js"), "html", null, true);
echo "'
//});
\$(document).ready(function () {
\t \$('.sylius_add_to_cart_cartItem_variant_button').on('click', function () {
\t var selector = '';
key = \$(this).data( \"key\" );
\t var price = \$(this).data( \"price\" );
\t var originalPrice = \$(this).data( \"originalprice\" );
\t if (price !== undefined) {
\t \$('#product-price').text(price);
\t if (originalPrice !== undefined && originalPrice != \"\" && originalPrice != price ) {
\t \$('#product-original-price').css('display', 'inline').html('<del>' + originalPrice + '</del>');
\t } else {
\t \$('#product-original-price').css('display', 'none');
\t }
\t } else {
\t \$('#product-price').text(\$('#sylius-variants-pricing').attr('data-unavailable-text'));
\t \$('button[type=submit]').attr('disabled', 'disabled');
\t }
\t });
\$('.product-details__slider-main').slick({
slidesToShow: 1,
slidesToScroll: 1,
arrows: true,
fade: true,
infinite: false,
asNavFor: '.product-details__slider-navigation',
autoplay: true,
autoplaySpeed: 3000
});
\$('.product-details__slider-navigation').slick({
slidesToShow: 4,
slidesToScroll: 1,
asNavFor: '.product-details__slider-main',
arrows: false,
infinite: false,
focusOnSelect: true,
autoplay: true,
autoplaySpeed: 3000
});
\$('.related-products__products').slick({
slidesToShow: 3,
slidesToScroll: 1,
arrows: true,
dots: true,
infinite: false,
autoplay: true,
autoplaySpeed: 3000,
responsive: [
{
breakpoint: 991,
settings: {
slidesToShow: 2,
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 1,
}
},
]
});
const hideScreens = () => {
document.querySelector('#gift_screen1').style.display = 'none'
document.querySelector('#gift_screen2').style.display = 'none'
document.querySelector('#gift_screen3').style.display = 'none'
}
const showScreen1 = () => {
document.querySelector('#gift_screen1').style.display = 'block'
}
const showScreen2 = () => {
document.querySelector('#gift_screen2').style.display = 'block'
}
const showScreen3 = () => {
document.querySelector('#gift_screen3').style.display = 'block'
}
// form steps
document.querySelectorAll('.gotostep1').forEach((item) => {
item.addEventListener('click', (e) => {
e.preventDefault();
hideScreens();
showScreen1();
})
})
document.querySelectorAll('.gotostep2').forEach((item) => {
item.addEventListener('click', (e) => {
e.preventDefault();
hideScreens();
showScreen2();
})
})
document.querySelectorAll('.gotostep3').forEach((item) => {
item.addEventListener('click', (e) => {
e.preventDefault();
hideScreens();
showScreen3();
})
});
})
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Product/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout.html.twig' %}
{% block title %}{{ product.name }} | {{ parent() }}{% endblock %}
{% block metatags %}
{% if product.metaDescription is defined %}
\t<meta name=\"description\" content=\"{{ product.metaDescription }}\">
{% endif %}
{% endblock %}
{% block banner %}
{{ render(url('odiseo_sylius_banner_plugin_shop_partial_banner', {'template': '@SyliusShop/Banner/banner1.html.twig'})) }}
{% endblock %}
{% block content %}
<div class=\"\" id=\"p\">
{% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}
<div class=\"ui hidden divider\"></div>
<div class=\"ui two column stackable grid product-details\">
<div class=\"column product-details__left-col\">
{% set productname = product.name %}
{% if mode == \"gift\" %}
{% set productname = 'sylius.ui.gift.offrez'|trans %}
{% endif %}
<h1 id=\"sylius-product-name\" class=\"product-details__name\" {{ sylius_test_html_attribute('product-name', product.name) }}>{{ productname }}</h1>
{% if mode == \"gift\" %}
{% include '@SyliusShop/Product/Show/_giftcard.html.twig' %}
{% else %}
{% include '@SyliusShop/Product/Show/_detailproduct.html.twig' %}
{% include '@SyliusShop/Product/Show/_productaction.html.twig' %}
{% endif %}
</div>
<div class=\"column\">
{% if product.images|length == 1 %}
{% include '@SyliusShop/Product/Show/_images.html.twig' %}
{% else %}
{% if product.images|length > 1 %}
<div class=\"product-details__slider-main produit\">
{% for image in product.images %}
{% set path = image.path is not null ? image.path|imagine_filter('sylius_large') : '' %}
<img src=\"{{ path }}\" alt=\"{{ product.name }}\" />
{% endfor %}
</div>
<div class=\"product-details__slider-navigation\">
{% for image in product.images %}
{% set path = image.path is not null ? image.path|imagine_filter('sylius_large') : '' %}
<img src=\"{{ path }}\" alt=\"{{ product.name }}\" />
{% endfor %}
</div>
{% endif %}
{% endif %}
{% if product.getVideo() is not empty %}
<div class=\"product_video product-details__product_video\" style=\"padding-top:10px;\">
{{ product.getVideo() | raw }}
</div>
{% endif %}
{% if product.getDispoDescription() is not empty %}
<div class=\"dispo_description product-details__dispo_description\">
{{ product.getDispoDescription() | raw }}
</div>
{% endif %}
</div>
</div>
{% if mode != \"gift\" %}
<div class=\"ui top attached large tabular menu\">
<a class=\"item active\" data-tab=\"details\">{{ 'sylius.product.informationscomplementaires'|trans }}</a>
{% if SimpleAttributes.pratiques is defined %}
<a class=\"item\" data-tab=\"attributes\" {{ sylius_test_html_attribute('tab', 'attributes') }}>{{ 'sylius.product.informationspratiques'|trans }}</a>
{% endif %}
<a class=\"item\" data-tab=\"reviews\">{{ 'sylius.ui.reviews'|trans }} ({{ product.acceptedReviews|length }})</a>
</div>
{% include '@SyliusShop/Product/Show/Tabs/_details.html.twig' %}
{% include '@SyliusShop/Product/Show/Tabs/_infospratiques.html.twig' %}
{% include '@SyliusShop/Product/Show/Tabs/_reviews.html.twig' %}
{% endif %}
<div class=\"text-center product-details__back-button\">
<a href=\"{{ path('app_shop_product_search') }}\" class=\"button button--outline\">
<i class=\"fas fa-arrow-left\"></i> {{ 'sylius.ui.retourliste'|trans }}
</a>
</div>
{% for association in product.associations %}
{{ render(url('sylius_shop_partial_product_association_show', {'productId': product.id, 'id': association.id, 'template': '@SyliusShop/Product/Show/_association.html.twig'})) }}
{% else %}
<div class=\"related-products\">
<img class=\"related-products__icon\" src=\"{{ asset('assets/shop/img/associated-icon.png') }}\" alt=\"{{ 'sylius.ui.produitsassocies'|trans }}\">
<span class=\"related-products__tagline\">{{ 'sylius.ui.produitsassocies'|trans }}</span>
<h4 class=\"related-products__title\">{{ 'sylius.ui.clientontcommande'|trans }} </h4>
{{ render(url('sylius_shop_partial_product_index_latest', {'count': 10, 'template': '@SyliusShop/Product/_horizontalList.html.twig'})) }}
</div>
{% endfor %}
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"></script>
<script type=\"text/javascript\" src=\"//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js\"></script>
<link rel=\"stylesheet\" type=\"text/css\" href=\"//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css\"/>
<script>
//lightbox.option({
// 'albumLabel': '{{ 'sylius.lightbox.image_album_label'|trans|escape('js') }}'
//});
\$(document).ready(function () {
\t \$('.sylius_add_to_cart_cartItem_variant_button').on('click', function () {
\t var selector = '';
key = \$(this).data( \"key\" );
\t var price = \$(this).data( \"price\" );
\t var originalPrice = \$(this).data( \"originalprice\" );
\t if (price !== undefined) {
\t \$('#product-price').text(price);
\t if (originalPrice !== undefined && originalPrice != \"\" && originalPrice != price ) {
\t \$('#product-original-price').css('display', 'inline').html('<del>' + originalPrice + '</del>');
\t } else {
\t \$('#product-original-price').css('display', 'none');
\t }
\t } else {
\t \$('#product-price').text(\$('#sylius-variants-pricing').attr('data-unavailable-text'));
\t \$('button[type=submit]').attr('disabled', 'disabled');
\t }
\t });
\$('.product-details__slider-main').slick({
slidesToShow: 1,
slidesToScroll: 1,
arrows: true,
fade: true,
infinite: false,
asNavFor: '.product-details__slider-navigation',
autoplay: true,
autoplaySpeed: 3000
});
\$('.product-details__slider-navigation').slick({
slidesToShow: 4,
slidesToScroll: 1,
asNavFor: '.product-details__slider-main',
arrows: false,
infinite: false,
focusOnSelect: true,
autoplay: true,
autoplaySpeed: 3000
});
\$('.related-products__products').slick({
slidesToShow: 3,
slidesToScroll: 1,
arrows: true,
dots: true,
infinite: false,
autoplay: true,
autoplaySpeed: 3000,
responsive: [
{
breakpoint: 991,
settings: {
slidesToShow: 2,
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 1,
}
},
]
});
const hideScreens = () => {
document.querySelector('#gift_screen1').style.display = 'none'
document.querySelector('#gift_screen2').style.display = 'none'
document.querySelector('#gift_screen3').style.display = 'none'
}
const showScreen1 = () => {
document.querySelector('#gift_screen1').style.display = 'block'
}
const showScreen2 = () => {
document.querySelector('#gift_screen2').style.display = 'block'
}
const showScreen3 = () => {
document.querySelector('#gift_screen3').style.display = 'block'
}
// form steps
document.querySelectorAll('.gotostep1').forEach((item) => {
item.addEventListener('click', (e) => {
e.preventDefault();
hideScreens();
showScreen1();
})
})
document.querySelectorAll('.gotostep2').forEach((item) => {
item.addEventListener('click', (e) => {
e.preventDefault();
hideScreens();
showScreen2();
})
})
document.querySelectorAll('.gotostep3').forEach((item) => {
item.addEventListener('click', (e) => {
e.preventDefault();
hideScreens();
showScreen3();
})
});
})
</script>
{% endblock %}
", "@SyliusShop/Product/show.html.twig", "/home/mons/site/www/templates/bundles/SyliusShopBundle/Product/show.html.twig");
}
}