<?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;
/* FrontBundle/Page/shop-product.html.twig */
class __TwigTemplate_b54001cca1fa868dc7d71e7d93cace65a36a8271f304afdc3b7f5c28848a82b8 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'description' => [$this, 'block_description'],
'google' => [$this, 'block_google'],
'extra_class' => [$this, 'block_extra_class'],
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "FrontBundle/layout_shop.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", "FrontBundle/Page/shop-product.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "FrontBundle/Page/shop-product.html.twig"));
$this->parent = $this->loadTemplate("FrontBundle/layout_shop.html.twig", "FrontBundle/Page/shop-product.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 3
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, (isset($context["app_sitename"]) || array_key_exists("app_sitename", $context) ? $context["app_sitename"] : (function () { throw new RuntimeError('Variable "app_sitename" does not exist.', 3, $this->source); })()), "html", null, true);
echo " - ";
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.', 3, $this->source); })()), "nameLocale", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "locale", [], "any", false, false, false, 3)], "method", false, false, false, 3), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 4
public function block_description($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", "description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
echo twig_replace_filter(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.', 4, $this->source); })()), "descriptionLocale", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "locale", [], "any", false, false, false, 4)], "method", false, false, false, 4), ["
" => " "]);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_google($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", "google"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "google"));
// line 6
echo " <!-- Google tag (gtag.js) -->
<script async src=\"https://www.googletagmanager.com/gtag/js?id=AW-11336737773\">
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-11336737773');
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 19
public function block_extra_class($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", "extra_class"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extra_class"));
echo "stack";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 23
public function block_stylesheets($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", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 24
echo " <link href=\"/front/css/owl.carousel.min.css\" rel=\"stylesheet\">
<link href=\"/front/css/owl.theme.default.min.css\" rel=\"stylesheet\">
<link href=\"/front/css/nouislider.css\" rel=\"stylesheet\">
<style>
.option-content{
border-radius: 14px;
background: #931517;
display: flex;
justify-content: center;
align-items: center;
width: 119px;
height: 19px;
flex-shrink: 0;
margin: 1.5rem auto 0.5rem auto;
color: #fff;
padding: 0.5rem 1rem;
font-size: 13px;
font-weight: 600;
}
.page_boutique-produit #product .options .col-md-6 li
{
background-color: #FFFFFF;
border-radius: 15px;
padding: 5px;
margin: 12px;
width: calc(25% - -59px);
float: left;
position: relative;
height: 74px;
border: 1px solid #FFFFFF;
}
.page_boutique-produit #product .options ul{
padding: 0;
}
.page_boutique-produit #product .options .title span.sub {
width: 100%;
display: inline-block;
font-size: 11px;
}
.page_boutique-produit #product .options .price{
margin: 3px 0 0 0 ;
}
.bon-cadeau-17 .bon-cadeau-option-block1,
.bon-cadeau-18 .bon-cadeau-option-block1,
.bon-cadeau-19 .bon-cadeau-option-block1,
.bon-cadeau-20 .bon-cadeau-option-block1,
.bon-cadeau-6 .bon-cadeau-option-block1,
.bon-cadeau-7 .bon-cadeau-option-block1,
.bon-cadeau-8 .bon-cadeau-option-block1,
.bon-cadeau-9 .bon-cadeau-option-block1 {
display: none;
}
.btn-primary.active,
.btn-primary:hover {
color: #ffffff;
text-decoration: none;
border: 1px solid var(--red);
background-color: var(--red);
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 94
public function block_body($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", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 95
echo "
<section id=\"product\" class=\"espace-content full mb-5 pb-5\" style=\"margin-top: 60px;\" data-id=\"";
// line 97
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.', 97, $this->source); })()), "id", [], "any", false, false, false, 97), "html", null, true);
echo "\">
<div class=\"content pt-5 pb-5 mt-5\" style=\"padding: 0 150px\">
<div class=\"row\">
<a href=\"";
// line 100
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("framework_front_shop_cat", ["category_slug" => twig_get_attribute($this->env, $this->source, 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.', 100, $this->source); })()), "category", [], "any", false, false, false, 100), "slug", [], "any", false, false, false, 100), "locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 100, $this->source); })()), "request", [], "any", false, false, false, 100), "locale", [], "any", false, false, false, 100)]), "html", null, true);
echo "\" class=\"link-back mb-4\"><img src=\"/front/img/button-arrow-r-l.svg\" alt=\"back\" width=\"25px\" class=\"me-2\" />";
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_product_back", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 100, $this->source); })()));
echo " ";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 100, $this->source); })()), "category", [], "any", false, false, false, 100), "nameLocale", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 100, $this->source); })()), "request", [], "any", false, false, false, 100), "locale", [], "any", false, false, false, 100)], "method", false, false, false, 100)), "html", null, true);
echo "</a>
<div class=\"col-md-12\">
<ul class=\"breadcrumb\">
<li><a href=\"/";
// line 103
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 103, $this->source); })()), "request", [], "any", false, false, false, 103), "locale", [], "any", false, false, false, 103), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, $this->extensions['App\Framework\Twig\AppExtension']->getUrl("boutique", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 103, $this->source); })()), "request", [], "any", false, false, false, 103), "locale", [], "any", false, false, false, 103)), "html", null, true);
echo "\">";
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_title", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 103, $this->source); })()));
echo "</a></li>
<li><a href=\"/";
// line 104
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 104, $this->source); })()), "request", [], "any", false, false, false, 104), "locale", [], "any", false, false, false, 104), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, $this->extensions['App\Framework\Twig\AppExtension']->getUrl("boutique", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 104, $this->source); })()), "request", [], "any", false, false, false, 104), "locale", [], "any", false, false, false, 104)), "html", null, true);
echo "/articles/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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); })()), "category", [], "any", false, false, false, 104), "slug", [], "any", false, false, false, 104), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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); })()), "category", [], "any", false, false, false, 104), "nameLocale", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 104, $this->source); })()), "request", [], "any", false, false, false, 104), "locale", [], "any", false, false, false, 104)], "method", false, false, false, 104), "html", null, true);
echo "</a></li>
<li><span>";
// line 105
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.', 105, $this->source); })()), "nameLocale", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 105, $this->source); })()), "request", [], "any", false, false, false, 105), "locale", [], "any", false, false, false, 105)], "method", false, false, false, 105), "html", null, true);
echo "</span></li>
</ul>
<a href=\"#\" class=\"favoris trigger-modal ";
// line 107
echo (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) ? ("bookmark") : ("not-logged-in"));
echo " ";
echo (((isset($context["saved"]) || array_key_exists("saved", $context) ? $context["saved"] : (function () { throw new RuntimeError('Variable "saved" does not exist.', 107, $this->source); })())) ? ("saved") : (""));
echo "\" data-id=\"";
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.', 107, $this->source); })()), "id", [], "any", false, false, false, 107), "html", null, true);
echo "\"><i></i></a>
</div>
<div class=\"col-md-5\">
<div class=\"owl-carousel product mt-5\">
";
// line 112
$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.', 112, $this->source); })()), "allImages", [], "any", false, false, false, 112));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 113
echo " <div class=\"item\"><img src=\"/uploads/products/";
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.', 113, $this->source); })()), "id", [], "any", false, false, false, 113), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, $context["image"], "html", null, true);
echo "\" alt=\"product\" /></div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 115
echo " </div>
<div class=\"row \">
<div class=\"col-9 mx-auto\">
";
// line 118
if (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.', 118, $this->source); })()), "published", [], "any", false, false, false, 118)) {
// line 119
echo " <a href=\"#\" class=\"btn-sm btn-primary active add-cart mb-3\" data-type=\"bons\" data-id=\"";
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.', 119, $this->source); })()), "id", [], "any", false, false, false, 119), "html", null, true);
echo "\"><img src=\"/front/img/cart.svg\" alt=\"cart\" class=\"me-2\" /> ";
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_product_cart_add", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 119, $this->source); })()));
echo "</a>
<a href=\"/";
// line 120
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 120, $this->source); })()), "request", [], "any", false, false, false, 120), "locale", [], "any", false, false, false, 120), "html", null, true);
echo "/boutique/panier\" class=\"btn-sm btn-primary text w-100 text-center\">";
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_product_cart_view", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 120, $this->source); })()));
echo "</a>
";
} else {
// line 122
echo " <h6 class=\"text-center\">";
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_nostock", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 122, $this->source); })()));
echo "</h6>
";
}
// line 124
echo " </div>
</div>
</div>
<div class=\"col-md-7 description mt-5 pt-0\">
<div class=\"row\">
<div class=\"col-12\"><h1 class=\"title\" style=\"letter-spacing: initial;\">";
// line 129
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.', 129, $this->source); })()), "nameLocale", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 129, $this->source); })()), "request", [], "any", false, false, false, 129), "locale", [], "any", false, false, false, 129)], "method", false, false, false, 129), "html", null, true);
echo "</h1></div>
<div class=\"col-12 to-cart mt-3 mb-3\">
<p class=\"price mt-2 me-4\" data-price=\"";
// line 131
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.', 131, $this->source); })()), "price", [], "any", false, false, false, 131), "html", null, true);
echo "\"><i>";
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.', 131, $this->source); })()), "priceFr", [], "any", false, false, false, 131), "html", null, true);
echo "</i> €</p>
<p class=\"qty me-4\"><i class=\"qty-bons-before\">";
// line 132
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_product_for", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 132, $this->source); })()));
echo "</i><a href=\"#\" data-action=\"minus\">-</a><span>1</span><a href=\"#\" data-action=\"plus\">+</a><i class=\"qty-bons-after\">";
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_product_for1", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 132, $this->source); })()));
echo "</i></p>
<p class=\"per-person p-0\">";
// line 133
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 133, $this->source); })()), "category", [], "any", false, false, false, 133), "slug", [], "any", false, false, false, 133), "bon-cadeau"))) {
echo "<span>";
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_product_price", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 133, $this->source); })()));
echo "</span>";
}
echo "</p>
</div>
</div>
<div class=\"row\">
<div class=\"col-12\">
<div class=\"desc mb-3\">
";
// line 141
echo " <p>";
echo twig_replace_filter(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.', 141, $this->source); })()), "descriptionLocale", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 141, $this->source); })()), "request", [], "any", false, false, false, 141), "locale", [], "any", false, false, false, 141)], "method", false, false, false, 141), ["
" => "<br>"]);
echo "</p>
</div>
<div class=\"additional mb-3\">
";
// line 144
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.', 144, $this->source); })()), "additionalLocale", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 144, $this->source); })()), "request", [], "any", false, false, false, 144), "locale", [], "any", false, false, false, 144)], "method", false, false, false, 144);
echo "
</div>
<div class=\"usecase\">
<p class=\"mb-2\">";
// line 147
echo (((0 === twig_compare(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.', 147, $this->source); })()), "slug", [], "any", false, false, false, 147), "bon-cadeau-9"))) ? ("") : ($this->extensions['App\Framework\Twig\AppExtension']->tr("shop_product_use", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 147, $this->source); })()))));
echo " ";
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.', 147, $this->source); })()), "usecaseLocale", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 147, $this->source); })()), "request", [], "any", false, false, false, 147), "locale", [], "any", false, false, false, 147)], "method", false, false, false, 147), "html", null, true);
echo "</p>
<p class=\"mb-5 text-xs\">";
// line 148
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_product_use2", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 148, $this->source); })()));
echo "</p>
</div>
";
// line 154
echo "
<div id=\"bloc2\" class=\"row mb-5\"></div>
";
// line 157
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 157, $this->source); })()), "category", [], "any", false, false, false, 157), "slug", [], "any", false, false, false, 157), "bon-cadeau"))) {
// line 158
echo " <div class=\"options ";
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.', 158, $this->source); })()), "slug", [], "any", false, false, false, 158), "html", null, true);
echo "\">
<label>";
// line 160
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_product_options_title", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 160, $this->source); })()));
echo "</label>
<div class=\"row\">
<div class=\"col-md-6 bon-cadeau-option-block1\">
<span class=\"option-content\">
Restaurant
</span>
<ul class=\"mt-3\">
";
// line 167
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["options"]) || array_key_exists("options", $context) ? $context["options"] : (function () { throw new RuntimeError('Variable "options" does not exist.', 167, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
// line 168
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["option"], "restaurant", [], "any", false, false, false, 168), true))) {
// line 169
echo " <li class=\"option-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "id", [], "any", false, false, false, 169), "html", null, true);
echo "\" style=\"height: 85px\">
";
// line 170
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["option"], "desc", [], "any", false, false, false, 170), ""))) {
echo "<span class=\"infos\" data-desc=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "desc", [], "any", false, false, false, 170), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "desc", [], "any", false, false, false, 170), "html", null, true);
echo "\">i</span>";
}
// line 171
echo " <p class=\"title\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 171), "html", null, true);
echo "<br>";
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["option"], "sub", [], "any", false, false, false, 171), ""))) {
echo " <span class=\"sub\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "sub", [], "any", false, false, false, 171), "html", null, true);
echo "</span> ";
}
echo "</p>
<p class=\"price\" ";
// line 172
if (( !twig_get_attribute($this->env, $this->source, $context["option"], "lounge", [], "any", false, false, false, 172) && (-1 === twig_compare(twig_get_attribute($this->env, $this->source, $context["option"], "id", [], "any", false, false, false, 172), 3)))) {
echo "style=\"margin: 5px 0 5px 0 !important;\"";
}
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["option"], "price", [], "any", false, false, false, 172), 64))) {
echo " style=\"margin: 13px 0 5px 0 !important;\"";
}
echo ">(+ ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "price", [], "any", false, false, false, 172), "html", null, true);
echo " €)</p>
<p class=\"qty\" data-price=\"";
// line 173
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "price", [], "any", false, false, false, 173), "html", null, true);
echo "\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "id", [], "any", false, false, false, 173), "html", null, true);
echo "\"><a href=\"#\" data-action=\"minus\">-</a><span>0</span><a href=\"#\" data-action=\"plus\">+</a></p>
</li>
";
}
// line 176
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 177
echo " </ul>
</div>
<div class=\"col-md-6 bon-cadeau-option-block3\">
<span class=\"option-content\">
";
// line 181
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("cadeau_title", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 181, $this->source); })()));
echo "
</span>
<ul class=\"mt-3\">
";
// line 184
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["options"]) || array_key_exists("options", $context) ? $context["options"] : (function () { throw new RuntimeError('Variable "options" does not exist.', 184, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
// line 185
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["option"], "boutique", [], "any", false, false, false, 185), true))) {
// line 186
echo " <li class=\"option-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "id", [], "any", false, false, false, 186), "html", null, true);
echo "\">
";
// line 187
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["option"], "desc", [], "any", false, false, false, 187), ""))) {
echo "<span class=\"infos\" data-desc=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "desc", [], "any", false, false, false, 187), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "desc", [], "any", false, false, false, 187), "html", null, true);
echo "\">i</span>";
}
// line 188
echo " <p class=\"title\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 188), "html", null, true);
echo "<br>";
if (twig_get_attribute($this->env, $this->source, $context["option"], "lounge", [], "any", false, false, false, 188)) {
echo "<span>Lounge Club</span>";
}
echo "</p>
<p class=\"price\" ";
// line 189
if (( !twig_get_attribute($this->env, $this->source, $context["option"], "lounge", [], "any", false, false, false, 189) && (-1 === twig_compare(twig_get_attribute($this->env, $this->source, $context["option"], "id", [], "any", false, false, false, 189), 3)))) {
echo "style=\"margin-top: 10px;\"";
}
echo ">(+ ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "price", [], "any", false, false, false, 189), "html", null, true);
echo " €)</p>
<p class=\"qty\" data-price=\"";
// line 190
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "price", [], "any", false, false, false, 190), "html", null, true);
echo "\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "id", [], "any", false, false, false, 190), "html", null, true);
echo "\"><a href=\"#\" data-action=\"minus\">-</a><span>0</span><a href=\"#\" data-action=\"plus\">+</a></p>
</li>
";
}
// line 193
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 194
echo " </ul>
</div>
</div>
<div class=\"row\">
<div class=\"col-md-6 bon-cadeau-option-block2\">
<span class=\"option-content\">
Lounge Club
</span>
<ul class=\"mt-3\">
";
// line 203
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["options"]) || array_key_exists("options", $context) ? $context["options"] : (function () { throw new RuntimeError('Variable "options" does not exist.', 203, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
// line 204
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["option"], "lounge", [], "any", false, false, false, 204), true))) {
// line 205
echo " <li class=\"option-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "id", [], "any", false, false, false, 205), "html", null, true);
echo "\">
";
// line 206
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["option"], "desc", [], "any", false, false, false, 206), ""))) {
echo "<span class=\"infos\" data-desc=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "desc", [], "any", false, false, false, 206), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "desc", [], "any", false, false, false, 206), "html", null, true);
echo "\">i</span>";
}
// line 207
echo " <p class=\"title\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 207), "html", null, true);
echo "<br>";
if (twig_get_attribute($this->env, $this->source, $context["option"], "lounge", [], "any", false, false, false, 207)) {
echo "<span>Lounge Club</span>";
}
echo "</p>
<p class=\"price\" ";
// line 208
if (( !twig_get_attribute($this->env, $this->source, $context["option"], "lounge", [], "any", false, false, false, 208) && (-1 === twig_compare(twig_get_attribute($this->env, $this->source, $context["option"], "id", [], "any", false, false, false, 208), 3)))) {
echo "style=\"margin-top: 10px;\"";
}
echo ">(+ ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "price", [], "any", false, false, false, 208), "html", null, true);
echo " €)</p>
<p class=\"qty\" data-price=\"";
// line 209
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "price", [], "any", false, false, false, 209), "html", null, true);
echo "\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "id", [], "any", false, false, false, 209), "html", null, true);
echo "\"><a href=\"#\" data-action=\"minus\">-</a><span>0</span><a href=\"#\" data-action=\"plus\">+</a></p>
</li>
";
}
// line 212
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 213
echo " </ul>
</div>
</div>
</div>
";
}
// line 219
echo "
</div>
</div>
<div class=\"floating-cart\"><img src=\"/front/img/cart.svg\" alt=\"cart\" /></div>
</div>
</div>
</div>
</section>
<section id=\"similar\" class=\"espace-content full mb-5 pb-5\" style=\"margin-top: 40px;\">
<div class=\"content\">
<h2 class=\"pt-5 mb-3 no-bar\">";
// line 231
echo twig_upper_filter($this->env, $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_product_similar_title", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 231, $this->source); })())));
echo "<span class=\"full-bar\"></span></h2>
</div>
</section>
<section class=\"items-slider espace-content p-0 mt-5 mb-5\">
<div class=\"content pt-5 pb-5 mt-5\">
<div class=\"owl-carousel related p-0\">
";
// line 241
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["similar"]) || array_key_exists("similar", $context) ? $context["similar"] : (function () { throw new RuntimeError('Variable "similar" does not exist.', 241, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 242
echo " ";
if (((1 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 242), 19)) && twig_get_attribute($this->env, $this->source, $context["item"], "published", [], "any", false, false, false, 242))) {
// line 243
echo " <div class=\"item row\">
<div class=\"col-12 \">
<a href=\"/";
// line 245
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 245, $this->source); })()), "request", [], "any", false, false, false, 245), "locale", [], "any", false, false, false, 245), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, $this->extensions['App\Framework\Twig\AppExtension']->getUrl("boutique", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 245, $this->source); })()), "request", [], "any", false, false, false, 245), "locale", [], "any", false, false, false, 245)), "html", null, true);
echo "/produit/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "slug", [], "any", false, false, false, 245), "html", null, true);
echo "\">
<img alt=\"slug\" class=\"cover\" src=\"/uploads/products/";
// line 246
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 246), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "mainImage", [], "any", false, false, false, 246), "html", null, true);
echo "\" />
</a>
<a href=\"/";
// line 248
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 248, $this->source); })()), "request", [], "any", false, false, false, 248), "locale", [], "any", false, false, false, 248), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, $this->extensions['App\Framework\Twig\AppExtension']->getUrl("boutique", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 248, $this->source); })()), "request", [], "any", false, false, false, 248), "locale", [], "any", false, false, false, 248)), "html", null, true);
echo "/produit/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "slug", [], "any", false, false, false, 248), "html", null, true);
echo "\">
<span class=\"name\">";
// line 249
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "nameLocale", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 249, $this->source); })()), "request", [], "any", false, false, false, 249), "locale", [], "any", false, false, false, 249)], "method", false, false, false, 249), "html", null, true);
echo "</span>
<span class=\"price\">";
// line 250
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "priceFr", [], "any", false, false, false, 250), "html", null, true);
echo " €</span>
</a>
<a href=\"/";
// line 252
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 252, $this->source); })()), "request", [], "any", false, false, false, 252), "locale", [], "any", false, false, false, 252), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, $this->extensions['App\Framework\Twig\AppExtension']->getUrl("boutique", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 252, $this->source); })()), "request", [], "any", false, false, false, 252), "locale", [], "any", false, false, false, 252)), "html", null, true);
echo "/produit/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "slug", [], "any", false, false, false, 252), "html", null, true);
echo "\">
<span class=\"category\">";
// line 253
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "category", [], "any", false, false, false, 253), "nameLocale", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 253, $this->source); })()), "request", [], "any", false, false, false, 253), "locale", [], "any", false, false, false, 253)], "method", false, false, false, 253), "html", null, true);
echo "</span>
</a>
</div>
</div>
";
}
// line 258
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 259
echo "
</div>
<div class=\"horizontal-bar-container\">
<div class=\"horizontal-bar\"></div>
<div class=\"horizontal-bar-ctrl\"></div>
</div>
</div>
</section>
<section class=\"actu-content newsletter\" style=\"margin-bottom: 180px;\">
<div class=\"content mt-5 pt-5\">
<h2 class=\"mb-5 no-bar\">";
// line 277
echo twig_upper_filter($this->env, $this->extensions['App\Framework\Twig\AppExtension']->tr("newsletter_title", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 277, $this->source); })())));
echo "<span class=\"full-bar\"></span></h2>
<div class=\"pt-5\">
<form>
<p class=\"title\">";
// line 280
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("newsletter_subtitle", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 280, $this->source); })()));
echo "</p>
<p class=\"desc\">";
// line 281
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("newsletter_desc", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 281, $this->source); })()));
echo "</p>
<div class=\"email-input\">
<input type=\"text\" value=\"\" placeholder=\"";
// line 283
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("newsletter_email", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 283, $this->source); })()));
echo "\" class=\"email mt-3\" />
<a href=\"#\" class=\"register\"> </a>
</div>
<div class=\"row\">
<div class=\"col-12 mt-4\">
<input type=\"checkbox\" id=\"confirm\" class=\"apple-switch\" checked=\"checked\" />
<label for=\"confirm\">";
// line 289
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("newsletter_agree", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 289, $this->source); })()));
echo "</label>
<p class=\"text-center mt-4\" id=\"message_newsletter\"></p>
</div>
</div>
</form>
</div>
</div>
</section>
";
// line 300
$this->loadTemplate("FrontBundle/Partial/modal.html.twig", "FrontBundle/Page/shop-product.html.twig", 300)->display($context);
// line 301
echo " ";
$this->loadTemplate("FrontBundle/Partial/footer.html.twig", "FrontBundle/Page/shop-product.html.twig", 301)->display($context);
// line 302
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 305
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 306
echo "
<script src=\"/front/js/owl.carousel.min.js\"></script>
<script type=\"text/javascript\">
function updatePrice(){
console.log('updateprice')
var product_price = parseFloat(\$('#product .price').data('price'));
var qty = parseInt(\$('.to-cart span').text());
var options_prices = 0;
var option_qty_save = 0;
var price = 0;
\$('#product .options li .qty').each(function(index, value) {
var option_price = parseFloat(\$(this).data('price'));
var option_qty = parseInt(\$(this).find('span').text());
if(option_qty > 0){
options_prices = options_prices + (option_price * option_qty);
option_qty_save = option_qty
}
}).promise().done( function(){
// price = (product_price + options_prices) * qty;
price = (product_price * qty) + options_prices; //NOUVEAU CALCUL
\$('#product .price i').text(price.toFixed(2).replace( '.', ',' ));
if(option_qty_save == 0 && qty == 1){
\$('.per-person').fadeIn();
} else {
\$('.per-person').fadeOut();
}
});
}
\$( document ).ready(function() {
if( window.innerWidth <= 1024 ){
\$('#product .col-md-5').addClass('col-md-4');
\$('#product .col-md-5').removeClass('col-md-5');
\$('#product .col-md-7').addClass('col-md-8');
\$('#product .col-md-7').removeClass('col-md-7');
\$('#bloc2').append(\$('.to-cart'));
}
// HIDE FORFAITS DUO
var product_slug = '";
// line 356
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.', 356, $this->source); })()), "slug", [], "any", false, false, false, 356), "html", null, true);
echo "';
var slugs = ['bon-cadeau-6', 'bon-cadeau-7', 'bon-cadeau-8', 'bon-cadeau-9'];
if(jQuery.inArray(product_slug, slugs) != -1) {
\$('.options .option-1').hide();
\$('.options .option-2').hide();
}
// END HIDE FORFAITS DUO
\$('.additional li').each(function(index, value) {
if(\$(this).data('info')){
var add_desc = '';
if( \$(this).data('info') == 'sp-ga' ){
/*add_desc = \"";
// line 372
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_bons_desc1", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 372, $this->source); })()));
echo "\".replace(/'/g, \"\\\\'\");*/
add_desc = \"";
// line 373
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_bons_desc1", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 373, $this->source); })()));
echo "\";
} else if( \$(this).data('info') == 'mj-m1' ){
/*add_desc = \"";
// line 375
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_bons_desc2", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 375, $this->source); })()));
echo "\".replace(/'/g, \"\\\\'\");*/
add_desc = \"";
// line 376
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_bons_desc2", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 376, $this->source); })()));
echo "\";
} else if( \$(this).data('info') == 'mj-m2' ){
/*add_desc = \"";
// line 378
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_bons_desc3", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 378, $this->source); })()));
echo "\".replace(/'/g, \"\\\\'\");*/
add_desc = \"";
// line 379
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_bons_desc3", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 379, $this->source); })()));
echo "\";
} else if( \$(this).data('info') == 've-m1' ){
/*add_desc = \"";
// line 381
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_bons_desc4", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 381, $this->source); })()));
echo "\".replace(/'/g, \"\\\\'\");*/
add_desc = \"";
// line 382
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_bons_desc4", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 382, $this->source); })()));
echo "\";
} else if( \$(this).data('info') == 've-m2' ){
/*add_desc = \"";
// line 384
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_bons_desc5", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 384, $this->source); })()));
echo "\".replace(/'/g, \"\\\\'\");*/
add_desc = \"";
// line 385
echo $this->extensions['App\Framework\Twig\AppExtension']->tr("shop_bons_desc5", (isset($context["tr"]) || array_key_exists("tr", $context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.', 385, $this->source); })()));
echo "\";
}
\$(this).append('<span class=\"infos\" data-desc=\"'+add_desc+'\">i</span>')
}
});
\$('.infos').each(function(index, value) {
\$(this).tooltipster({
content: \$(this).data('desc'),
delay: 200,
contentAsHTML: true,
trigger: 'click'
});
});
\$('#product .bookmark').click(function(e){
e.preventDefault();
if( \$(this).hasClass('saved') ){
var action = 'unsave';
} else {
var action = 'save';
}
\$.ajax({
type: \"POST\",
url: \"/shop/product/\"+action+\"/";
// line 416
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.', 416, $this->source); })()), "id", [], "any", false, false, false, 416), "html", null, true);
echo "\",
data: null,
dataType: \"json\",
success: function(response) {
if( action == 'save' ){
\$('#product .bookmark').addClass('saved');
\$('#product .bookmark span').text('Produit sauvegardé');
} else {
\$('#product .bookmark').removeClass('saved');
\$('#product .bookmark span').text('Ajouter aux favoris');
}
}
});
});
\$('.options .qty a').click(function(e){
e.preventDefault();
var element = \$(this).parents('.qty');
var count = parseInt(element.find('span').text());
if( \$(this).data('action') == 'plus' ){
// BLOCK FORFAITS DUO EN FONCTION DU NOMBRE DE PARTICIPANTS
console.log('check forfait duo');
var qtyPres = parseInt(\$('.to-cart span').text());
var maxDuo = parseInt((qtyPres / 2)+(qtyPres % 2));
var currentDuo = parseInt(\$('.qty[data-id=\"1\"] span').text()) + parseInt(\$('.qty[data-id=\"2\"] span').text()) + 1;
var refFix = parseInt(element.data('id'));
// console.log('max forfait duo : '+maxDuo);
// console.log('currentDuo : '+currentDuo);
// console.log('ref : '+refFix);
if(refFix == 1 || refFix == 2){
if(currentDuo > maxDuo){
// console.log('ok block');
return 0;
}
}
// FIN BLOCK FORFAITS DUO EN FONCTION DU NOMBRE DE PARTICIPANTS
count++;
} else {
count--;
if(count < 0){
count = 0;
}
}
if(count > 0){
\$(this).parents('li').addClass('active');
} else {
\$(this).parents('li').removeClass('active');
}
element.find('span').text(count);
updatePrice();
});
\$('.to-cart .qty a').click(function(e){
e.preventDefault();
var element = \$(this).parents('.qty');
var count = parseInt(element.find('span').text());
if( \$(this).data('action') == 'plus' ){
count++;
} else {
count--;
if(count < 1){
count = 1;
}
}
element.find('span').text(count);
updatePrice();
});
\$('.owl-carousel.product').owlCarousel({
loop:false,
margin:34,
nav:false,
dots:false,
responsive:{
0:{
items:1
},
600:{
items:1
},
1920:{
items:1
}
}
});
var owl = \$('.owl-carousel.related');
owl.owlCarousel({
loop:false,
margin:110,
nav:true,
responsive:{
0:{
items:1
},
768:{
items:2
},
1024:{
items:3
},
1920:{
items:4
}
}
});
owl.on('changed.owl.carousel', function(event) {
var itemsNbr = owl.data()['owl.carousel'].settings.items;
var itemsTotal = event.item.count;
var itemsIndex = event.item.index;
var pagesNbr = itemsTotal - itemsNbr;
var horizontalBar = \$('.horizontal-bar').outerWidth();
var horizontalBarCtrl = \$('.horizontal-bar-ctrl').outerWidth();
var courseLength = \$('.horizontal-bar').outerWidth() - \$('.horizontal-bar-ctrl').outerWidth();
var left = itemsIndex * 100 / pagesNbr; // percent
left = left * courseLength / 100;
\$('.horizontal-bar-ctrl').css('left', left+'px');
});
});
</script>
<!-- script pour gérer la connexion lors de la demande d'ajout de favoris --->
<script>
\$(document).ready(function() {
\$('.trigger-modal').on('click', function(e) {
e.preventDefault(); // Empêche le comportement par défaut du lien
const url = \"/\" + \$(\"html\").attr(\"lang\") + \"/user/connected\";
\$.ajax({
url: url,
success: function(data) {
if (!data.isLoggedIn) {
const locale = data.locale;
let modalTitle, modalContent, modalButtonText;
if(locale === \"fr\") {
modalTitle = \"Connexion nécessaire\";
modalContent = \"Pour réaliser cette action vous devez être connecté. Si vous n'avez pas encore de compte, vous pouvez en créer un.\";
modalButtonText = \"Se connecter\";
} else if(locale === \"en\") {
modalTitle = \"Connection required\";
modalContent = \"You must be logged in to perform this action. If you don't have an account yet, you can create one.\";
modalButtonText = \"Sign in\";
} else if (locale === \"de\") {
modalTitle = \"Verbindung erforderlich\";
modalContent = \"Um diese Aktion durchzuführen, müssen Sie angemeldet sein. Wenn Sie noch kein Konto haben, können Sie eines erstellen.\";
modalButtonText = \"Sich anmelden\";
}
// Mise à jour du texte du bouton
\$(\".modalbutton\").text(modalButtonText);
// Mise à jour du titre et du contenu de la modale
\$(\"#modalLoginReminderLabel\").text(modalTitle);
\$(\"#modalLoginReminder .modal-body\").text(modalContent);
// Affichage de la modale
\$(\"#modalLoginReminder\").modal('show');
}
}
});
});
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "FrontBundle/Page/shop-product.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 945 => 416, 911 => 385, 907 => 384, 902 => 382, 898 => 381, 893 => 379, 889 => 378, 884 => 376, 880 => 375, 875 => 373, 871 => 372, 852 => 356, 800 => 306, 790 => 305, 779 => 302, 776 => 301, 774 => 300, 760 => 289, 751 => 283, 746 => 281, 742 => 280, 736 => 277, 716 => 259, 710 => 258, 702 => 253, 694 => 252, 689 => 250, 685 => 249, 677 => 248, 670 => 246, 662 => 245, 658 => 243, 655 => 242, 651 => 241, 638 => 231, 624 => 219, 616 => 213, 610 => 212, 602 => 209, 594 => 208, 585 => 207, 577 => 206, 572 => 205, 569 => 204, 565 => 203, 554 => 194, 548 => 193, 540 => 190, 532 => 189, 523 => 188, 515 => 187, 510 => 186, 507 => 185, 503 => 184, 497 => 181, 491 => 177, 485 => 176, 477 => 173, 465 => 172, 454 => 171, 446 => 170, 441 => 169, 438 => 168, 434 => 167, 424 => 160, 418 => 158, 416 => 157, 411 => 154, 406 => 148, 400 => 147, 394 => 144, 386 => 141, 372 => 133, 366 => 132, 360 => 131, 355 => 129, 348 => 124, 342 => 122, 335 => 120, 328 => 119, 326 => 118, 321 => 115, 310 => 113, 306 => 112, 294 => 107, 289 => 105, 279 => 104, 271 => 103, 261 => 100, 255 => 97, 251 => 95, 241 => 94, 164 => 24, 154 => 23, 135 => 19, 115 => 6, 105 => 5, 85 => 4, 64 => 3, 41 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'FrontBundle/layout_shop.html.twig' %}
{% block title %}{{ app_sitename }} - {{ product.nameLocale(app.request.locale) }}{% endblock %}
{% block description %}{{ product.descriptionLocale(app.request.locale)|replace({'\\r\\n': ' '})|raw }}{% endblock %}
{% block google %}
<!-- Google tag (gtag.js) -->
<script async src=\"https://www.googletagmanager.com/gtag/js?id=AW-11336737773\">
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-11336737773');
</script>
{% endblock %}
{% block extra_class %}stack{% endblock %}
{# {% block menu_min %}200{% endblock %} #}
{# {% block menu_max %}2636{% endblock %} #}
{% block stylesheets %}
<link href=\"/front/css/owl.carousel.min.css\" rel=\"stylesheet\">
<link href=\"/front/css/owl.theme.default.min.css\" rel=\"stylesheet\">
<link href=\"/front/css/nouislider.css\" rel=\"stylesheet\">
<style>
.option-content{
border-radius: 14px;
background: #931517;
display: flex;
justify-content: center;
align-items: center;
width: 119px;
height: 19px;
flex-shrink: 0;
margin: 1.5rem auto 0.5rem auto;
color: #fff;
padding: 0.5rem 1rem;
font-size: 13px;
font-weight: 600;
}
.page_boutique-produit #product .options .col-md-6 li
{
background-color: #FFFFFF;
border-radius: 15px;
padding: 5px;
margin: 12px;
width: calc(25% - -59px);
float: left;
position: relative;
height: 74px;
border: 1px solid #FFFFFF;
}
.page_boutique-produit #product .options ul{
padding: 0;
}
.page_boutique-produit #product .options .title span.sub {
width: 100%;
display: inline-block;
font-size: 11px;
}
.page_boutique-produit #product .options .price{
margin: 3px 0 0 0 ;
}
.bon-cadeau-17 .bon-cadeau-option-block1,
.bon-cadeau-18 .bon-cadeau-option-block1,
.bon-cadeau-19 .bon-cadeau-option-block1,
.bon-cadeau-20 .bon-cadeau-option-block1,
.bon-cadeau-6 .bon-cadeau-option-block1,
.bon-cadeau-7 .bon-cadeau-option-block1,
.bon-cadeau-8 .bon-cadeau-option-block1,
.bon-cadeau-9 .bon-cadeau-option-block1 {
display: none;
}
.btn-primary.active,
.btn-primary:hover {
color: #ffffff;
text-decoration: none;
border: 1px solid var(--red);
background-color: var(--red);
}
</style>
{% endblock %}
{% block body %}
<section id=\"product\" class=\"espace-content full mb-5 pb-5\" style=\"margin-top: 60px;\" data-id=\"{{ product.id }}\">
<div class=\"content pt-5 pb-5 mt-5\" style=\"padding: 0 150px\">
<div class=\"row\">
<a href=\"{{ path('framework_front_shop_cat', {'category_slug': product.category.slug, 'locale': app.request.locale}) }}\" class=\"link-back mb-4\"><img src=\"/front/img/button-arrow-r-l.svg\" alt=\"back\" width=\"25px\" class=\"me-2\" />{{ 'shop_product_back'|tr(tr)|raw }} {{ product.category.nameLocale(app.request.locale)|lower }}</a>
<div class=\"col-md-12\">
<ul class=\"breadcrumb\">
<li><a href=\"/{{app.request.locale }}/{{ 'boutique'|getUrl(app.request.locale) }}\">{{ 'shop_title'|tr(tr)|raw }}</a></li>
<li><a href=\"/{{app.request.locale }}/{{ 'boutique'|getUrl(app.request.locale) }}/articles/{{ product.category.slug }}\">{{ product.category.nameLocale(app.request.locale) }}</a></li>
<li><span>{{ product.nameLocale(app.request.locale) }}</span></li>
</ul>
<a href=\"#\" class=\"favoris trigger-modal {{ (is_granted('IS_AUTHENTICATED_REMEMBERED')) ? 'bookmark' : 'not-logged-in' }} {{ (saved) ? 'saved' : '' }}\" data-id=\"{{ product.id }}\"><i></i></a>
</div>
<div class=\"col-md-5\">
<div class=\"owl-carousel product mt-5\">
{% for image in product.allImages %}
<div class=\"item\"><img src=\"/uploads/products/{{product.id}}/{{image}}\" alt=\"product\" /></div>
{% endfor %}
</div>
<div class=\"row \">
<div class=\"col-9 mx-auto\">
{% if product.published %}
<a href=\"#\" class=\"btn-sm btn-primary active add-cart mb-3\" data-type=\"bons\" data-id=\"{{ product.id }}\"><img src=\"/front/img/cart.svg\" alt=\"cart\" class=\"me-2\" /> {{ 'shop_product_cart_add'|tr(tr)|raw }}</a>
<a href=\"/{{app.request.locale}}/boutique/panier\" class=\"btn-sm btn-primary text w-100 text-center\">{{ 'shop_product_cart_view'|tr(tr)|raw }}</a>
{% else %}
<h6 class=\"text-center\">{{ 'shop_nostock'|tr(tr)|raw }}</h6>
{% endif %}
</div>
</div>
</div>
<div class=\"col-md-7 description mt-5 pt-0\">
<div class=\"row\">
<div class=\"col-12\"><h1 class=\"title\" style=\"letter-spacing: initial;\">{{ product.nameLocale(app.request.locale) }}</h1></div>
<div class=\"col-12 to-cart mt-3 mb-3\">
<p class=\"price mt-2 me-4\" data-price=\"{{ product.price }}\"><i>{{ product.priceFr }}</i> €</p>
<p class=\"qty me-4\"><i class=\"qty-bons-before\">{{ 'shop_product_for'|tr(tr)|raw }}</i><a href=\"#\" data-action=\"minus\">-</a><span>1</span><a href=\"#\" data-action=\"plus\">+</a><i class=\"qty-bons-after\">{{ 'shop_product_for1'|tr(tr)|raw }}</i></p>
<p class=\"per-person p-0\">{% if product.category.slug == 'bon-cadeau' %}<span>{{ 'shop_product_price'|tr(tr)|raw }}</span>{% endif %}</p>
</div>
</div>
<div class=\"row\">
<div class=\"col-12\">
<div class=\"desc mb-3\">
{# <label>Description :</label> #}
<p>{{ product.descriptionLocale(app.request.locale)|replace({'\\r\\n': '<br>'})|raw }}</p>
</div>
<div class=\"additional mb-3\">
{{ product.additionalLocale(app.request.locale)|raw }}
</div>
<div class=\"usecase\">
<p class=\"mb-2\">{{ (product.slug == 'bon-cadeau-9') ? '' : 'shop_product_use'|tr(tr)|raw }} {{ product.usecaseLocale(app.request.locale) }}</p>
<p class=\"mb-5 text-xs\">{{ 'shop_product_use2'|tr(tr)|raw }}</p>
</div>
{# <div class=\"info mt-5 mb-5\">
<label>Informations complémentaires :</label>
<p>{{ product.additionalLocale(app.request.locale)|replace({'\\r\\n': '<br>'})|raw }}</p>
</div> #}
<div id=\"bloc2\" class=\"row mb-5\"></div>
{% if product.category.slug == 'bon-cadeau' %}
<div class=\"options {{ product.slug }}\">
<label>{{ 'shop_product_options_title'|tr(tr)|raw }}</label>
<div class=\"row\">
<div class=\"col-md-6 bon-cadeau-option-block1\">
<span class=\"option-content\">
Restaurant
</span>
<ul class=\"mt-3\">
{% for option in options %}
{% if option.restaurant == true %}
<li class=\"option-{{option.id}}\" style=\"height: 85px\">
{% if option.desc != '' %}<span class=\"infos\" data-desc=\"{{ option.desc }}\" title=\"{{ option.desc }}\">i</span>{% endif %}
<p class=\"title\">{{ option.name }}<br>{% if option.sub != '' %} <span class=\"sub\">{{ option.sub }}</span> {% endif %}</p>
<p class=\"price\" {% if not option.lounge and option.id < 3 %}style=\"margin: 5px 0 5px 0 !important;\"{% endif %} {% if option.price == 64 %} style=\"margin: 13px 0 5px 0 !important;\"{% endif %}>(+ {{ option.price }} €)</p>
<p class=\"qty\" data-price=\"{{ option.price }}\" data-id=\"{{ option.id }}\"><a href=\"#\" data-action=\"minus\">-</a><span>0</span><a href=\"#\" data-action=\"plus\">+</a></p>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
<div class=\"col-md-6 bon-cadeau-option-block3\">
<span class=\"option-content\">
{{ 'cadeau_title'|tr(tr)|raw }}
</span>
<ul class=\"mt-3\">
{% for option in options %}
{% if option.boutique == true %}
<li class=\"option-{{option.id}}\">
{% if option.desc != '' %}<span class=\"infos\" data-desc=\"{{ option.desc }}\" title=\"{{ option.desc }}\">i</span>{% endif %}
<p class=\"title\">{{ option.name }}<br>{% if option.lounge %}<span>Lounge Club</span>{% endif %}</p>
<p class=\"price\" {% if not option.lounge and option.id < 3 %}style=\"margin-top: 10px;\"{% endif %}>(+ {{ option.price }} €)</p>
<p class=\"qty\" data-price=\"{{ option.price }}\" data-id=\"{{ option.id }}\"><a href=\"#\" data-action=\"minus\">-</a><span>0</span><a href=\"#\" data-action=\"plus\">+</a></p>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
<div class=\"row\">
<div class=\"col-md-6 bon-cadeau-option-block2\">
<span class=\"option-content\">
Lounge Club
</span>
<ul class=\"mt-3\">
{% for option in options %}
{% if option.lounge == true %}
<li class=\"option-{{option.id}}\">
{% if option.desc != '' %}<span class=\"infos\" data-desc=\"{{ option.desc }}\" title=\"{{ option.desc }}\">i</span>{% endif %}
<p class=\"title\">{{ option.name }}<br>{% if option.lounge %}<span>Lounge Club</span>{% endif %}</p>
<p class=\"price\" {% if not option.lounge and option.id < 3 %}style=\"margin-top: 10px;\"{% endif %}>(+ {{ option.price }} €)</p>
<p class=\"qty\" data-price=\"{{ option.price }}\" data-id=\"{{ option.id }}\"><a href=\"#\" data-action=\"minus\">-</a><span>0</span><a href=\"#\" data-action=\"plus\">+</a></p>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</div>
{% endif %}
</div>
</div>
<div class=\"floating-cart\"><img src=\"/front/img/cart.svg\" alt=\"cart\" /></div>
</div>
</div>
</div>
</section>
<section id=\"similar\" class=\"espace-content full mb-5 pb-5\" style=\"margin-top: 40px;\">
<div class=\"content\">
<h2 class=\"pt-5 mb-3 no-bar\">{{ 'shop_product_similar_title'|tr(tr)|upper|raw }}<span class=\"full-bar\"></span></h2>
</div>
</section>
<section class=\"items-slider espace-content p-0 mt-5 mb-5\">
<div class=\"content pt-5 pb-5 mt-5\">
<div class=\"owl-carousel related p-0\">
{% for item in similar %}
{% if item.id > 19 and item.published %}
<div class=\"item row\">
<div class=\"col-12 \">
<a href=\"/{{app.request.locale}}/{{ 'boutique'|getUrl(app.request.locale) }}/produit/{{ item.slug }}\">
<img alt=\"slug\" class=\"cover\" src=\"/uploads/products/{{item.id}}/{{ item.mainImage }}\" />
</a>
<a href=\"/{{app.request.locale}}/{{ 'boutique'|getUrl(app.request.locale) }}/produit/{{ item.slug }}\">
<span class=\"name\">{{ item.nameLocale(app.request.locale) }}</span>
<span class=\"price\">{{ item.priceFr }} €</span>
</a>
<a href=\"/{{app.request.locale}}/{{ 'boutique'|getUrl(app.request.locale) }}/produit/{{ item.slug }}\">
<span class=\"category\">{{ item.category.nameLocale(app.request.locale) }}</span>
</a>
</div>
</div>
{% endif %}
{% endfor %}
</div>
<div class=\"horizontal-bar-container\">
<div class=\"horizontal-bar\"></div>
<div class=\"horizontal-bar-ctrl\"></div>
</div>
</div>
</section>
<section class=\"actu-content newsletter\" style=\"margin-bottom: 180px;\">
<div class=\"content mt-5 pt-5\">
<h2 class=\"mb-5 no-bar\">{{ 'newsletter_title'|tr(tr)|upper|raw }}<span class=\"full-bar\"></span></h2>
<div class=\"pt-5\">
<form>
<p class=\"title\">{{ 'newsletter_subtitle'|tr(tr)|raw }}</p>
<p class=\"desc\">{{ 'newsletter_desc'|tr(tr)|raw }}</p>
<div class=\"email-input\">
<input type=\"text\" value=\"\" placeholder=\"{{ 'newsletter_email'|tr(tr)|raw }}\" class=\"email mt-3\" />
<a href=\"#\" class=\"register\"> </a>
</div>
<div class=\"row\">
<div class=\"col-12 mt-4\">
<input type=\"checkbox\" id=\"confirm\" class=\"apple-switch\" checked=\"checked\" />
<label for=\"confirm\">{{ 'newsletter_agree'|tr(tr)|raw }}</label>
<p class=\"text-center mt-4\" id=\"message_newsletter\"></p>
</div>
</div>
</form>
</div>
</div>
</section>
{% include ('FrontBundle/Partial/modal.html.twig') %}
{% include 'FrontBundle/Partial/footer.html.twig' %}
{% endblock %}
{% block javascripts %}
<script src=\"/front/js/owl.carousel.min.js\"></script>
<script type=\"text/javascript\">
function updatePrice(){
console.log('updateprice')
var product_price = parseFloat(\$('#product .price').data('price'));
var qty = parseInt(\$('.to-cart span').text());
var options_prices = 0;
var option_qty_save = 0;
var price = 0;
\$('#product .options li .qty').each(function(index, value) {
var option_price = parseFloat(\$(this).data('price'));
var option_qty = parseInt(\$(this).find('span').text());
if(option_qty > 0){
options_prices = options_prices + (option_price * option_qty);
option_qty_save = option_qty
}
}).promise().done( function(){
// price = (product_price + options_prices) * qty;
price = (product_price * qty) + options_prices; //NOUVEAU CALCUL
\$('#product .price i').text(price.toFixed(2).replace( '.', ',' ));
if(option_qty_save == 0 && qty == 1){
\$('.per-person').fadeIn();
} else {
\$('.per-person').fadeOut();
}
});
}
\$( document ).ready(function() {
if( window.innerWidth <= 1024 ){
\$('#product .col-md-5').addClass('col-md-4');
\$('#product .col-md-5').removeClass('col-md-5');
\$('#product .col-md-7').addClass('col-md-8');
\$('#product .col-md-7').removeClass('col-md-7');
\$('#bloc2').append(\$('.to-cart'));
}
// HIDE FORFAITS DUO
var product_slug = '{{product.slug}}';
var slugs = ['bon-cadeau-6', 'bon-cadeau-7', 'bon-cadeau-8', 'bon-cadeau-9'];
if(jQuery.inArray(product_slug, slugs) != -1) {
\$('.options .option-1').hide();
\$('.options .option-2').hide();
}
// END HIDE FORFAITS DUO
\$('.additional li').each(function(index, value) {
if(\$(this).data('info')){
var add_desc = '';
if( \$(this).data('info') == 'sp-ga' ){
/*add_desc = \"{{ 'shop_bons_desc1'|tr(tr)|raw }}\".replace(/'/g, \"\\\\'\");*/
add_desc = \"{{ 'shop_bons_desc1'|tr(tr)|raw }}\";
} else if( \$(this).data('info') == 'mj-m1' ){
/*add_desc = \"{{ 'shop_bons_desc2'|tr(tr)|raw }}\".replace(/'/g, \"\\\\'\");*/
add_desc = \"{{ 'shop_bons_desc2'|tr(tr)|raw }}\";
} else if( \$(this).data('info') == 'mj-m2' ){
/*add_desc = \"{{ 'shop_bons_desc3'|tr(tr)|raw }}\".replace(/'/g, \"\\\\'\");*/
add_desc = \"{{ 'shop_bons_desc3'|tr(tr)|raw }}\";
} else if( \$(this).data('info') == 've-m1' ){
/*add_desc = \"{{ 'shop_bons_desc4'|tr(tr)|raw }}\".replace(/'/g, \"\\\\'\");*/
add_desc = \"{{ 'shop_bons_desc4'|tr(tr)|raw }}\";
} else if( \$(this).data('info') == 've-m2' ){
/*add_desc = \"{{ 'shop_bons_desc5'|tr(tr)|raw }}\".replace(/'/g, \"\\\\'\");*/
add_desc = \"{{ 'shop_bons_desc5'|tr(tr)|raw }}\";
}
\$(this).append('<span class=\"infos\" data-desc=\"'+add_desc+'\">i</span>')
}
});
\$('.infos').each(function(index, value) {
\$(this).tooltipster({
content: \$(this).data('desc'),
delay: 200,
contentAsHTML: true,
trigger: 'click'
});
});
\$('#product .bookmark').click(function(e){
e.preventDefault();
if( \$(this).hasClass('saved') ){
var action = 'unsave';
} else {
var action = 'save';
}
\$.ajax({
type: \"POST\",
url: \"/shop/product/\"+action+\"/{{ product.id }}\",
data: null,
dataType: \"json\",
success: function(response) {
if( action == 'save' ){
\$('#product .bookmark').addClass('saved');
\$('#product .bookmark span').text('Produit sauvegardé');
} else {
\$('#product .bookmark').removeClass('saved');
\$('#product .bookmark span').text('Ajouter aux favoris');
}
}
});
});
\$('.options .qty a').click(function(e){
e.preventDefault();
var element = \$(this).parents('.qty');
var count = parseInt(element.find('span').text());
if( \$(this).data('action') == 'plus' ){
// BLOCK FORFAITS DUO EN FONCTION DU NOMBRE DE PARTICIPANTS
console.log('check forfait duo');
var qtyPres = parseInt(\$('.to-cart span').text());
var maxDuo = parseInt((qtyPres / 2)+(qtyPres % 2));
var currentDuo = parseInt(\$('.qty[data-id=\"1\"] span').text()) + parseInt(\$('.qty[data-id=\"2\"] span').text()) + 1;
var refFix = parseInt(element.data('id'));
// console.log('max forfait duo : '+maxDuo);
// console.log('currentDuo : '+currentDuo);
// console.log('ref : '+refFix);
if(refFix == 1 || refFix == 2){
if(currentDuo > maxDuo){
// console.log('ok block');
return 0;
}
}
// FIN BLOCK FORFAITS DUO EN FONCTION DU NOMBRE DE PARTICIPANTS
count++;
} else {
count--;
if(count < 0){
count = 0;
}
}
if(count > 0){
\$(this).parents('li').addClass('active');
} else {
\$(this).parents('li').removeClass('active');
}
element.find('span').text(count);
updatePrice();
});
\$('.to-cart .qty a').click(function(e){
e.preventDefault();
var element = \$(this).parents('.qty');
var count = parseInt(element.find('span').text());
if( \$(this).data('action') == 'plus' ){
count++;
} else {
count--;
if(count < 1){
count = 1;
}
}
element.find('span').text(count);
updatePrice();
});
\$('.owl-carousel.product').owlCarousel({
loop:false,
margin:34,
nav:false,
dots:false,
responsive:{
0:{
items:1
},
600:{
items:1
},
1920:{
items:1
}
}
});
var owl = \$('.owl-carousel.related');
owl.owlCarousel({
loop:false,
margin:110,
nav:true,
responsive:{
0:{
items:1
},
768:{
items:2
},
1024:{
items:3
},
1920:{
items:4
}
}
});
owl.on('changed.owl.carousel', function(event) {
var itemsNbr = owl.data()['owl.carousel'].settings.items;
var itemsTotal = event.item.count;
var itemsIndex = event.item.index;
var pagesNbr = itemsTotal - itemsNbr;
var horizontalBar = \$('.horizontal-bar').outerWidth();
var horizontalBarCtrl = \$('.horizontal-bar-ctrl').outerWidth();
var courseLength = \$('.horizontal-bar').outerWidth() - \$('.horizontal-bar-ctrl').outerWidth();
var left = itemsIndex * 100 / pagesNbr; // percent
left = left * courseLength / 100;
\$('.horizontal-bar-ctrl').css('left', left+'px');
});
});
</script>
<!-- script pour gérer la connexion lors de la demande d'ajout de favoris --->
<script>
\$(document).ready(function() {
\$('.trigger-modal').on('click', function(e) {
e.preventDefault(); // Empêche le comportement par défaut du lien
const url = \"/\" + \$(\"html\").attr(\"lang\") + \"/user/connected\";
\$.ajax({
url: url,
success: function(data) {
if (!data.isLoggedIn) {
const locale = data.locale;
let modalTitle, modalContent, modalButtonText;
if(locale === \"fr\") {
modalTitle = \"Connexion nécessaire\";
modalContent = \"Pour réaliser cette action vous devez être connecté. Si vous n'avez pas encore de compte, vous pouvez en créer un.\";
modalButtonText = \"Se connecter\";
} else if(locale === \"en\") {
modalTitle = \"Connection required\";
modalContent = \"You must be logged in to perform this action. If you don't have an account yet, you can create one.\";
modalButtonText = \"Sign in\";
} else if (locale === \"de\") {
modalTitle = \"Verbindung erforderlich\";
modalContent = \"Um diese Aktion durchzuführen, müssen Sie angemeldet sein. Wenn Sie noch kein Konto haben, können Sie eines erstellen.\";
modalButtonText = \"Sich anmelden\";
}
// Mise à jour du texte du bouton
\$(\".modalbutton\").text(modalButtonText);
// Mise à jour du titre et du contenu de la modale
\$(\"#modalLoginReminderLabel\").text(modalTitle);
\$(\"#modalLoginReminder .modal-body\").text(modalContent);
// Affichage de la modale
\$(\"#modalLoginReminder\").modal('show');
}
}
});
});
});
</script>
{% endblock %}
", "FrontBundle/Page/shop-product.html.twig", "/home/clients/3cdd021c67ffcc8186b679e7845b2138/sites/api-royal-palace.dix-demo.fr/13_06_24/templates/FrontBundle/Page/shop-product.html.twig");
}
}