<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* front/product/index.html.twig */
class __TwigTemplate_f69e348c7e5866d4619d8eda527b7e52 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'meta_description' => [$this, 'block_meta_description'],
'meta' => [$this, 'block_meta'],
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "front/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/product/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/product/index.html.twig"));
$this->parent = $this->loadTemplate("front/base.html.twig", "front/product/index.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield "Sunshine Elegance | ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["productName"]) || array_key_exists("productName", $context) ? $context["productName"] : (function () { throw new RuntimeError('Variable "productName" does not exist.', 2, $this->source); })()), "html", null, true);
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_meta_description(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_description"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_description"));
// line 4
yield " ";
if (CoreExtension::getAttribute($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); })()), "metaDescription", [], "any", false, false, false, 4)) {
// line 5
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(Twig\Extension\CoreExtension::striptags(CoreExtension::getAttribute($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))), "truncate", [155, "…"], "method", false, false, false, 5), "html", null, true);
yield "
";
} else {
// line 7
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(Twig\Extension\CoreExtension::striptags(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 7, $this->source); })()), "description", [], "any", false, false, false, 7))), "truncate", [155, "…"], "method", false, false, false, 7), "html", null, true);
yield "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 10
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_meta(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
// line 11
yield " <meta name=\"keywords\" content=\"\">
<meta name=\"description\" content=\"";
// line 12
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 12, $this->source); })()), "description", [], "any", false, false, false, 12)), "html", null, true);
yield "\">
<meta name=\"author\" content=\"Sunshine-Elegance\">
<!-- Facebook OG -->
";
// line 16
yield "
<meta property=\"og:image\" content=\"";
// line 17
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/300-400/" . (isset($context["productImg"]) || array_key_exists("productImg", $context) ? $context["productImg"] : (function () { throw new RuntimeError('Variable "productImg" does not exist.', 17, $this->source); })())))), "html", null, true);
yield "\">
<meta property=\"og:url\" content=\"https://www.sunshineelegance.tn/\">
<meta property=\"og:type\" content=\"article\">
<meta property=\"og:title\" content=\"Sunshine Elegance | ";
// line 20
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["productName"]) || array_key_exists("productName", $context) ? $context["productName"] : (function () { throw new RuntimeError('Variable "productName" does not exist.', 20, $this->source); })()), "html", null, true);
yield " \">
<meta property=\"og:description\" content=\"";
// line 21
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 21, $this->source); })()), "description", [], "any", false, false, false, 21)), "html", null, true);
yield "\">
<!-- Twitter OG -->
<meta name=\"twitter:title\" content=\"Sunshine Elegance | ";
// line 23
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["productName"]) || array_key_exists("productName", $context) ? $context["productName"] : (function () { throw new RuntimeError('Variable "productName" does not exist.', 23, $this->source); })()), "html", null, true);
yield " \">
<meta name=\"twitter:description\" content=\"";
// line 24
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags(CoreExtension::getAttribute($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); })()), "description", [], "any", false, false, false, 24)), "html", null, true);
yield " \">
<meta name=\"twitter:image\" content=\"";
// line 25
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/300-400/" . (isset($context["productImg"]) || array_key_exists("productImg", $context) ? $context["productImg"] : (function () { throw new RuntimeError('Variable "productImg" does not exist.', 25, $this->source); })())))), "html", null, true);
yield "\">
<meta name=\"twitter:card\" content=\"summary_large_image\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 28
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 29
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
<script>
var ID = '";
// line 31
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 31, $this->source); })()), "html", null, true);
yield "';
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 34
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 35
yield " ";
// line 36
yield " <main class=\"main\" id=\"app\" v-cloak>
<div class=\"page-header breadcrumb-wrap\">
<div class=\"container\">
<div class=\"breadcrumb\">
<a href=\"";
// line 40
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
yield "\" rel=\"nofollow\">Acceuil</a>
";
// line 41
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["categorie"] ?? null), "parent", [], "any", false, true, false, 41), "parent", [], "any", true, true, false, 41) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 41, $this->source); })()), "parent", [], "any", false, false, false, 41), "parent", [], "any", false, false, false, 41)))) {
// line 42
yield " <span></span> <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category_new", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 42, $this->source); })()), "parent", [], "any", false, false, false, 42), "parent", [], "any", false, false, false, 42), "id", [], "any", false, false, false, 42), "name" => $this->extensions['Twig\Extra\String\StringExtension']->createSlug(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 42, $this->source); })()), "parent", [], "any", false, false, false, 42), "parent", [], "any", false, false, false, 42), "name", [], "any", false, false, false, 42))]), "html", null, true);
yield "\"
rel=\"nofollow\">";
// line 43
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 43, $this->source); })()), "parent", [], "any", false, false, false, 43), "parent", [], "any", false, false, false, 43), "name", [], "any", false, false, false, 43), "html", null, true);
yield "</a>
";
}
// line 45
yield " ";
if (( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 45, $this->source); })()), "parent", [], "any", false, false, false, 45)) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 45, $this->source); })()), "parent", [], "any", false, false, false, 45)))) {
// line 46
yield " <span></span> <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category_new", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 46, $this->source); })()), "parent", [], "any", false, false, false, 46), "id", [], "any", false, false, false, 46), "name" => $this->extensions['Twig\Extra\String\StringExtension']->createSlug(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 46, $this->source); })()), "parent", [], "any", false, false, false, 46), "name", [], "any", false, false, false, 46))]), "html", null, true);
yield "\"
rel=\"nofollow\">";
// line 47
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 47, $this->source); })()), "parent", [], "any", false, false, false, 47), "name", [], "any", false, false, false, 47), "html", null, true);
yield "</a>
";
}
// line 49
yield " <span></span> <a
href=\"";
// line 50
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category_new", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 50, $this->source); })()), "getId", [], "method", false, false, false, 50), "name" => $this->extensions['Twig\Extra\String\StringExtension']->createSlug(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 50, $this->source); })()), "name", [], "any", false, false, false, 50))]), "html", null, true);
yield "\" rel=\"nofollow\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 50, $this->source); })()), "getName", [], "method", false, false, false, 50), "html", null, true);
yield "</a>
<span></span> ";
// line 51
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["productName"]) || array_key_exists("productName", $context) ? $context["productName"] : (function () { throw new RuntimeError('Variable "productName" does not exist.', 51, $this->source); })()), "html", null, true);
yield "
</div>
</div>
</div>
<section class=\"mt-50 mb-50\">
<div class=\"container\">
<div class=\"row flex-row-reverse\">
<div class=\"col-lg-12\">
<div class=\"product-detail accordion-detail\">
<div class=\"row mb-50\">
<div class=\"col-md-5 col-sm-12 col-xs-12\">
<div class=\"detail-gallery\">
<span class=\"zoom-icon\"><i class=\"fi-rs-search\"></i></span>
<!-- MAIN SLIDES -->
<div class=\"product-image-slider\">
<figure class=\"border-radius-10\" v-for=\"entry in produit.picture\">
<img :src=\"'";
// line 67
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["APP_URL"]) || array_key_exists("APP_URL", $context) ? $context["APP_URL"] : (function () { throw new RuntimeError('Variable "APP_URL" does not exist.', 67, $this->source); })()), "html", null, true);
yield "/images/'+produit.fichePicture\"
:alt=\"produit.name\">
</figure>
<!--<figure class=\"border-radius-10\">
<img src=\"../front/assets/imgs/shop/product-16-1.jpg\" alt=\"product image\">
</figure>
<figure class=\"border-radius-10\">
<img src=\"../front/assets/imgs/shop/product-16-3.jpg\" alt=\"product image\">
</figure>
<figure class=\"border-radius-10\">
<img src=\"../front/assets/imgs/shop/product-16-4.jpg\" alt=\"product image\">
</figure>
<figure class=\"border-radius-10\">
<img src=\"../front/assets/imgs/shop/product-16-5.jpg\" alt=\"product image\">
</figure>
<figure class=\"border-radius-10\">
<img src=\"../front/assets/imgs/shop/product-16-6.jpg\" alt=\"product image\">
</figure>
<figure class=\"border-radius-10\">
<img src=\"../front/assets/imgs/shop/product-16-7.jpg') }}\" alt=\"product image\">
</figure>-->
</div>
<!-- THUMBNAILS -->
<div class=\"slider-nav-thumbnails pl-15 pr-15\">
";
// line 95
yield " <div :class=\"entry==produit.fichePicture ? 'slick-slide slick-current slick-active' : 'slick-slide slick-active'\" v-for=\"(entry,index) in produit.picture\" @click=\"getThumbs(entry)\">
<img :src=\"'";
// line 96
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["APP_URL"]) || array_key_exists("APP_URL", $context) ? $context["APP_URL"] : (function () { throw new RuntimeError('Variable "APP_URL" does not exist.', 96, $this->source); })()), "html", null, true);
yield "/images/300-400/'+entry\" :alt=\"produit.name\">
</div>
</div>
</div>
<!-- End Gallery -->
<div class=\"social-icons single-share\">
<ul class=\"text-grey-5 d-inline-block\">
<li><strong class=\"mr-10\">Partage ça:</strong></li>
<li class=\"social-facebook\"><a href=\"#\"><img src=\"";
// line 104
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["APP_URL"]) || array_key_exists("APP_URL", $context) ? $context["APP_URL"] : (function () { throw new RuntimeError('Variable "APP_URL" does not exist.', 104, $this->source); })()), "html", null, true);
yield "/front/assets/imgs/theme/icons/icon-facebook.svg\" alt=\"Sunshine Elegance\"></a></li>
";
// line 106
yield " <li class=\"social-instagram\"><a href=\"#\"><img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["APP_URL"]) || array_key_exists("APP_URL", $context) ? $context["APP_URL"] : (function () { throw new RuntimeError('Variable "APP_URL" does not exist.', 106, $this->source); })()), "html", null, true);
yield "/front/assets/imgs/theme/icons/icon-instagram.svg\" alt=\"Sunshine Elegance\"></a></li>
";
// line 108
yield " </ul>
</div>
</div>
<div class=\"col-md-7 col-sm-12 col-xs-12\">
<div class=\"detail-info p-15\">
<h2 class=\"title-detail\">\${ produit.name }</h2>
<!--<div class=\"product-detail-rating\">
<div class=\"pro-details-brand\">
<span> Brands: <a href=\"shop-grid-right.html\">Bootstrap</a></span>
</div>
<div class=\"product-rate-cover text-end\">
<div class=\"product-rate d-inline-block\">
<div class=\"product-rating\" style=\"width:90%\">
</div>
</div>
<span class=\"font-small ml-5 text-muted\"> (25 reviews)</span>
</div>
</div>-->
<div class=\"clearfix product-price-cover\" >
<div class=\"product-price primary-color float-left\">
";
// line 129
yield " ";
// line 131
yield " <ins><span class=\"text-brand\">\${ selectedDeclinaison.price_ttc } <sup
class=\"currency-style\">TND</sup></span></ins>
";
// line 136
yield " <ins><span class=\"old-price font-md ml-15\"
v-if=\"selectedDeclinaison.in_promo\">\${ selectedDeclinaison.price_ht } <sup
class=\"currency-style\">TND</sup></span></ins>
<span class=\"save-price font-md color3 ml-15\"
v-if=\"selectedDeclinaison.in_promo && produit.promo.discountType=='amount'\">-\${ produit.promo.discountValue.toFixed(3) } <sup
class=\"currency-style\">TND</sup> Remise</span>
<span class=\"save-price font-md color3 ml-15\"
v-if=\"selectedDeclinaison.in_promo && produit.promo.discountType=='percent'\">-\${ produit.promo.discountValue } % Remise</span>
</div>
</div>
<div class=\"bt-1 border-color-1 mt-15 mb-15\"></div>
<div class=\"short-desc mb-15\" id=\"article\">
<p>\${ produit.description }</p>
</div>
<div class=\"short-desc mb-30\">
<p v-html=\"produit.specification\"></p>
</div>
<!-- Liste des couleurs -->
";
// line 163
yield " <div class=\"attr-detail attr-size mb-15\">
<strong class=\"mr-10\">Couleurs</strong>
<ul class=\"list-filter color-filter multi\">
<li :class=\"entry.name==selectedDeclinaison.couleur.name ? 'active' : ''\"
v-for=\"entry in produit.couleurs\"
@click=\"getTailles(entry.name,produit.declinaisons_produit)\">
<a href=\"#&\" :title=\"entry.name\">
<span :style=\"{ 'background-color': entry.code ? entry.code :'#fff','border': '1px solid #ddd' }\"></span>
</a>
</li>
</ul>
</div>
<!-- Liste des tailles -->
<div class=\"attr-detail attr-size\">
<strong class=\"mr-10\">Tailles</strong>
<ul class=\"list-filter size-filter font-small\">
<li v-for=\"(entry,key) in produit.tailles\"
:class=\"[(entry.taille==selectedDeclinaison.taille ? 'active' : ''), (entry.qty<=0 ? 'disabled-123' : '')]\"
style=\"margin-right:3px;margin-bottom:3px\"
@click=\"selectTaille(entry)\"><a href=\"#&\">\${ entry.taille }</a></li>
</ul>
</div>
<div class=\"bt-1 border-color-1 mt-30 mb-30\"></div>
<div class=\"detail-extralink\">
<div class=\"detail-qty border radius\">
<a href=\"#&\" class=\"qty-down-123\" @click=\"incrementQty('-',selectedDeclinaison.id)\"><i class=\"fi-rs-angle-small-down\"></i></a>
<span>\${ qty }</span>
<a href=\"#&\" class=\"qty-up-123\"
@click=\"incrementQty('+',selectedDeclinaison.id)\"><i
class=\"fi-rs-angle-small-up\"></i></a>
<!--<input type=\"number\" :max=\"selectedDeclinaison.qty\" min=\"0\">-->
</div>
<div class=\"product-extra-link2\">
<button :class=\"['button button-add-to-cart', (selectedDeclinaison.qty<=0 ? 'disabled' : '')]\"
@click=\"addProduct(qty)\">Ajouter au panier
</button>
<!--<a aria-label=\"Add To Wishlist\" class=\"action-btn hover-up\" href=\"shop-wishlist.html\"><i class=\"fi-rs-heart\"></i></a>
<a aria-label=\"Compare\" class=\"action-btn hover-up\" href=\"shop-compare.html\"><i class=\"fi-rs-shuffle\"></i></a>-->
</div>
</div>
<ul class=\"product-meta font-xs color-grey mt-50\">
<li class=\"mb-5\">Référence: <a href=\"#\">\${ selectedDeclinaison.ref }</a>
</li>
<!--<li class=\"mb-5\">Tags: <a href=\"#\" rel=\"tag\">Cloth</a>, <a href=\"#\" rel=\"tag\">Women</a>, <a href=\"#\" rel=\"tag\">Dress</a> </li>-->
<li>
Disponibilité:
<!--<span class=\"in-stock text-success ml-5\" v-if=\"selectedDeclinaison.qty>0\">\${ selectedDeclinaison.qty } articles restants</span>-->
<span class=\"in-stock text-danger ml-5\"
v-if=\"selectedDeclinaison.qty<=0\">Produit en rupture de stock</span>
<span class=\"in-stock text-danger ml-5\"
v-if=\"selectedDeclinaison.qty<=5 && selectedDeclinaison.qty>0\">Risque de rupture de stock</span>
<span class=\"in-stock text-success ml-5\"
v-if=\"selectedDeclinaison.qty>5\">Produit en stock</span>
</li>
</ul>
<div class=\"product_sort_info font-xs mb-30 mt-10\">
<ul>
<!--<li class=\"mb-10\"><i class=\"fi-rs-crown mr-5\"></i> 1 Year AL Jazeera Brand Warranty</li>-->
<li class=\"mb-10\"><i class=\"fi-rs-refresh mr-5\"></i> Politique de retour de 3 jours</li>
<li><i class=\"fi-rs-credit-card mr-5\"></i> Paiement à la livraison</li>
</ul>
</div>
</div>
<!-- Detail Info -->
</div>
</div>
<div class=\"tab-style3\">
<ul class=\"nav nav-tabs text-uppercase\">
<li class=\"nav-item\">
<a class=\"nav-link active\" id=\"Additional-info-tab\" data-bs-toggle=\"tab\"
href=\"#Additional-info\"><span style=\"color: #f7971e\">Informations additionnelles</span></a>
</li>
</ul>
<div class=\"tab-content shop_info_tab entry-main-content\">
<div class=\"tab-pane fade show active\" id=\"Additional-info\">
<table class=\"font-md\">
<tbody>
<tr class=\"pa_color\">
<th>Couleurs</th>
<td>
<ul class=\"list-filter color-filter multi\">
<li v-for=\"entry in produit.couleurs\">
<a href=\"#&\" :title=\"entry.name\">
<span :style=\"{ 'background-color': entry.code ? entry.code :'#fff','border': '1px solid #ddd' }\"></span>
</a>
</li>
</ul>
</td>
</tr>
<tr class=\"pa_size\">
<th>Tailles</th>
<td>
<p v-for=\"entry in produit.tailles\">\${ entry.taille }</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
";
// line 299
yield "
";
// line 313
yield "
";
// line 317
yield " </div>
</div>
";
// line 328
yield " </div>
<div class=\"row mt-60\">
<div class=\"col-12\">
<h3 class=\"section-title style-1 mb-30\">Produits dans la même catégorie</h3>
</div>
<div class=\"col-12\">
<div class=\"row related-products\">
";
// line 335
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["relatedProduct"]) || array_key_exists("relatedProduct", $context) ? $context["relatedProduct"] : (function () { throw new RuntimeError('Variable "relatedProduct" does not exist.', 335, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 336
yield " <div class=\"col-lg-3 col-md-4 col-12 col-sm-6\">
<div class=\"product-cart-wrap small hover-up\">
<div class=\"product-img-action-wrap\">
<div class=\"product-img product-img-zoom\">
<a href=\"";
// line 340
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product_new", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 340), "name" => $this->extensions['Twig\Extra\String\StringExtension']->createSlug(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 340))]), "html", null, true);
yield "\" style=\"height: 100%\">
<img class=\"default-img\" src=\"";
// line 341
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/images/300-400/" . CoreExtension::getAttribute($this->env, $this->source, $context["product"], "image", [], "any", false, false, false, 341)))), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 341), "html", null, true);
yield "\"
style=\"width: 100%\">
";
// line 344
yield " </a>
</div>
";
// line 352
yield " ";
if ((((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 352) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 352), "isValid", [], "any", false, false, false, 352)) || (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "stock", [], "any", false, false, false, 352) == 0)) || CoreExtension::getAttribute($this->env, $this->source, $context["product"], "isNew", [], "any", false, false, false, 352))) {
// line 353
yield " <div class=\"product-badges product-badges-position product-badges-mrg\">
";
// line 354
if ((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "stock", [], "any", false, false, false, 354) == 0)) {
// line 355
yield " <span class=\"hot mr-1\"
style=\"margin-right: 2px;font-size: 10px;\">Rupture de stock</span>
";
}
// line 358
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "isNew", [], "any", false, false, false, 358)) {
// line 359
yield " <span class=\"new mr-1\"
style=\"margin-right: 2px;font-size: 10px;\">Nouveau</span>
";
}
// line 362
yield " ";
if (((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 362) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 362), "isValid", [], "any", false, false, false, 362)) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 362), "discountType", [], "any", false, false, false, 362) == "amount"))) {
// line 363
yield " <span class=\"best\"
style=\"font-size: 10px;\">-";
// line 364
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 364), "discountValue", [], "any", false, false, false, 364), "html", null, true);
yield " <sup
class=\"currency-style\">TND</sup></span>
";
}
// line 367
yield " ";
if (((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 367) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 367), "isValid", [], "any", false, false, false, 367)) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 367), "discountType", [], "any", false, false, false, 367) == "percent"))) {
// line 368
yield " <span class=\"best\"
style=\"font-size: 10px;\">-";
// line 369
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 369), "discountValue", [], "any", false, false, false, 369), "html", null, true);
yield " %</span>
";
}
// line 371
yield " </div>
";
}
// line 373
yield " </div>
<div class=\"product-content-wrap\">
<h2><a href=\"";
// line 375
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product_new", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 375), "name" => $this->extensions['Twig\Extra\String\StringExtension']->createSlug(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 375))]), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 375), "html", null, true);
yield "</a></h2>
";
// line 380
yield " <div class=\"product-price\">
";
// line 381
if (((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 381) == null) || (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 381) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 381), "isValid", [], "any", false, false, false, 381) == false)))) {
// line 382
yield " <span>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "getPriceTtc", [], "method", false, false, false, 382), "html", null, true);
yield " <sup
class=\"currency-style\">TND</sup></span>
";
}
// line 385
yield " ";
if (((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 385) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 385), "isValid", [], "any", false, false, false, 385)) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 385), "discountType", [], "any", false, false, false, 385) == "amount"))) {
// line 386
yield " <span>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "getPriceTtc", [], "method", false, false, false, 386) - CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 386), "discountValue", [], "any", false, false, false, 386)), "html", null, true);
yield " <sup
class=\"currency-style\">TND</sup></span>
";
}
// line 389
yield " ";
if (((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 389) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 389), "isValid", [], "any", false, false, false, 389)) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 389), "discountType", [], "any", false, false, false, 389) == "percent"))) {
// line 390
yield " <span>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "getPriceTtc", [], "method", false, false, false, 390) - ((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "getPriceTtc", [], "method", false, false, false, 390) * CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 390), "discountValue", [], "any", false, false, false, 390)) / 100)), "html", null, true);
yield " <sup
class=\"currency-style\">TND</sup></span>
";
}
// line 393
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 393) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, false, 393), "isValid", [], "any", false, false, false, 393))) {
// line 394
yield " <span class=\"old-price\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "getPriceTtc", [], "method", false, false, false, 394), "html", null, true);
yield " <sup
class=\"currency-style\">TND</sup></span>
";
}
// line 397
yield " </div>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['product'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 402
yield " </div>
</div>
</div>
</div>
</div>
</section>
</main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 413
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 414
yield " ";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
<script src=\"";
// line 415
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/assets/scripts/product/index.js"), "html", null, true);
yield "\"></script>
<script>
\$( document ).ready(function() {
window.scrollTo(0,200);
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "front/product/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 703 => 415, 698 => 414, 685 => 413, 665 => 402, 655 => 397, 648 => 394, 645 => 393, 638 => 390, 635 => 389, 628 => 386, 625 => 385, 618 => 382, 616 => 381, 613 => 380, 607 => 375, 603 => 373, 599 => 371, 594 => 369, 591 => 368, 588 => 367, 582 => 364, 579 => 363, 576 => 362, 571 => 359, 568 => 358, 563 => 355, 561 => 354, 558 => 353, 555 => 352, 551 => 344, 544 => 341, 540 => 340, 534 => 336, 530 => 335, 521 => 328, 517 => 317, 514 => 313, 511 => 299, 406 => 163, 384 => 136, 378 => 131, 376 => 129, 354 => 108, 349 => 106, 345 => 104, 334 => 96, 331 => 95, 303 => 67, 284 => 51, 278 => 50, 275 => 49, 270 => 47, 265 => 46, 262 => 45, 257 => 43, 252 => 42, 250 => 41, 246 => 40, 240 => 36, 238 => 35, 225 => 34, 211 => 31, 205 => 29, 192 => 28, 178 => 25, 174 => 24, 170 => 23, 165 => 21, 161 => 20, 155 => 17, 152 => 16, 146 => 12, 143 => 11, 130 => 10, 115 => 7, 109 => 5, 106 => 4, 93 => 3, 68 => 2, 45 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'front/base.html.twig' %}
{% block title %}Sunshine Elegance | {{ productName }} {% endblock %}
{% block meta_description %}
{% if product.metaDescription %}
{{ product.metaDescription|striptags|u.truncate(155, '…') }}
{% else %}
{{ product.description|striptags|u.truncate(155, '…') }}
{% endif %}
{% endblock %}
{% block meta %}
<meta name=\"keywords\" content=\"\">
<meta name=\"description\" content=\"{{ product.description|striptags}}\">
<meta name=\"author\" content=\"Sunshine-Elegance\">
<!-- Facebook OG -->
{# get the picture from a collection #}
<meta property=\"og:image\" content=\"{{ absolute_url(asset('images/300-400/' ~ productImg)) }}\">
<meta property=\"og:url\" content=\"https://www.sunshineelegance.tn/\">
<meta property=\"og:type\" content=\"article\">
<meta property=\"og:title\" content=\"Sunshine Elegance | {{ productName }} \">
<meta property=\"og:description\" content=\"{{ product.description|striptags}}\">
<!-- Twitter OG -->
<meta name=\"twitter:title\" content=\"Sunshine Elegance | {{ productName }} \">
<meta name=\"twitter:description\" content=\"{{ product.description|striptags}} \">
<meta name=\"twitter:image\" content=\"{{ absolute_url(asset('images/300-400/' ~ productImg)) }}\">
<meta name=\"twitter:card\" content=\"summary_large_image\">
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<script>
var ID = '{{ id }}';
</script>
{% endblock %}
{% block body %}
{# {% verbatim %} #}
<main class=\"main\" id=\"app\" v-cloak>
<div class=\"page-header breadcrumb-wrap\">
<div class=\"container\">
<div class=\"breadcrumb\">
<a href=\"{{ path('home') }}\" rel=\"nofollow\">Acceuil</a>
{% if categorie.parent.parent is defined and categorie.parent.parent is not null %}
<span></span> <a href=\"{{ path('category_new', {id: categorie.parent.parent.id , name :categorie.parent.parent.name|slug}) }}\"
rel=\"nofollow\">{{ categorie.parent.parent.name }}</a>
{% endif %}
{% if categorie.parent is not empty and categorie.parent is not null %}
<span></span> <a href=\"{{ path('category_new', {id: categorie.parent.id, name :categorie.parent.name|slug}) }}\"
rel=\"nofollow\">{{ categorie.parent.name }}</a>
{% endif %}
<span></span> <a
href=\"{{ path('category_new', {id: categorie.getId(), name :categorie.name|slug}) }}\" rel=\"nofollow\">{{ categorie.getName() }}</a>
<span></span> {{ productName }}
</div>
</div>
</div>
<section class=\"mt-50 mb-50\">
<div class=\"container\">
<div class=\"row flex-row-reverse\">
<div class=\"col-lg-12\">
<div class=\"product-detail accordion-detail\">
<div class=\"row mb-50\">
<div class=\"col-md-5 col-sm-12 col-xs-12\">
<div class=\"detail-gallery\">
<span class=\"zoom-icon\"><i class=\"fi-rs-search\"></i></span>
<!-- MAIN SLIDES -->
<div class=\"product-image-slider\">
<figure class=\"border-radius-10\" v-for=\"entry in produit.picture\">
<img :src=\"'{{ APP_URL }}/images/'+produit.fichePicture\"
:alt=\"produit.name\">
</figure>
<!--<figure class=\"border-radius-10\">
<img src=\"../front/assets/imgs/shop/product-16-1.jpg\" alt=\"product image\">
</figure>
<figure class=\"border-radius-10\">
<img src=\"../front/assets/imgs/shop/product-16-3.jpg\" alt=\"product image\">
</figure>
<figure class=\"border-radius-10\">
<img src=\"../front/assets/imgs/shop/product-16-4.jpg\" alt=\"product image\">
</figure>
<figure class=\"border-radius-10\">
<img src=\"../front/assets/imgs/shop/product-16-5.jpg\" alt=\"product image\">
</figure>
<figure class=\"border-radius-10\">
<img src=\"../front/assets/imgs/shop/product-16-6.jpg\" alt=\"product image\">
</figure>
<figure class=\"border-radius-10\">
<img src=\"../front/assets/imgs/shop/product-16-7.jpg') }}\" alt=\"product image\">
</figure>-->
</div>
<!-- THUMBNAILS -->
<div class=\"slider-nav-thumbnails pl-15 pr-15\">
{# <div>#}
{# <img :src=\"'{{ APP_URL }}/images/300-400/'+selectedDeclinaison.picture\" alt=\"product image\">#}
{# </div>#}
<div :class=\"entry==produit.fichePicture ? 'slick-slide slick-current slick-active' : 'slick-slide slick-active'\" v-for=\"(entry,index) in produit.picture\" @click=\"getThumbs(entry)\">
<img :src=\"'{{ APP_URL }}/images/300-400/'+entry\" :alt=\"produit.name\">
</div>
</div>
</div>
<!-- End Gallery -->
<div class=\"social-icons single-share\">
<ul class=\"text-grey-5 d-inline-block\">
<li><strong class=\"mr-10\">Partage ça:</strong></li>
<li class=\"social-facebook\"><a href=\"#\"><img src=\"{{ APP_URL }}/front/assets/imgs/theme/icons/icon-facebook.svg\" alt=\"Sunshine Elegance\"></a></li>
{#<li class=\"social-twitter\"> <a href=\"#\"><img src=\"{{ APP_URL }}/front/assets/imgs/theme/icons/icon-twitter.svg\" alt=\"Sunshine Elegance\"></a></li>#}
<li class=\"social-instagram\"><a href=\"#\"><img src=\"{{ APP_URL }}/front/assets/imgs/theme/icons/icon-instagram.svg\" alt=\"Sunshine Elegance\"></a></li>
{#<li class=\"social-linkedin\"><a href=\"#\"><img src=\"{{ APP_URL }}/front/assets/imgs/theme/icons/icon-pinterest.svg\" alt=\"Sunshine Elegance\"></a></li>#}
</ul>
</div>
</div>
<div class=\"col-md-7 col-sm-12 col-xs-12\">
<div class=\"detail-info p-15\">
<h2 class=\"title-detail\">\${ produit.name }</h2>
<!--<div class=\"product-detail-rating\">
<div class=\"pro-details-brand\">
<span> Brands: <a href=\"shop-grid-right.html\">Bootstrap</a></span>
</div>
<div class=\"product-rate-cover text-end\">
<div class=\"product-rate d-inline-block\">
<div class=\"product-rating\" style=\"width:90%\">
</div>
</div>
<span class=\"font-small ml-5 text-muted\"> (25 reviews)</span>
</div>
</div>-->
<div class=\"clearfix product-price-cover\" >
<div class=\"product-price primary-color float-left\">
{# <ins><span class=\"text-brand\" v-if=\"!produit.promo\">\${ selectedDeclinaison.price_ttc } <sup class=\"currency-style\">TND</sup></span></ins> #}
{# <ins><span class=\"text-brand\" v-if=\"produit.promo && produit.promo.discountType=='amount'\">\${ (selectedDeclinaison.price_ttc-produit.promo.discountValue).toFixed(3) } <sup class=\"currency-style\">TND</sup></span></ins>
<ins><span class=\"text-brand\" v-if=\"produit.promo && produit.promo.discountType=='percent'\">\${ (selectedDeclinaison.price_ttc-(selectedDeclinaison.price_ttc*produit.promo.discountValue/100)).toFixed(3) } <sup class=\"currency-style\">TND</sup></span></ins> #}
<ins><span class=\"text-brand\">\${ selectedDeclinaison.price_ttc } <sup
class=\"currency-style\">TND</sup></span></ins>
{# <ins><span class=\"old-price font-md ml-15\" v-if=\"produit.promo\">\${ selectedDeclinaison.price_ttc } <sup class=\"currency-style\">TND</sup></span></ins> #}
<ins><span class=\"old-price font-md ml-15\"
v-if=\"selectedDeclinaison.in_promo\">\${ selectedDeclinaison.price_ht } <sup
class=\"currency-style\">TND</sup></span></ins>
<span class=\"save-price font-md color3 ml-15\"
v-if=\"selectedDeclinaison.in_promo && produit.promo.discountType=='amount'\">-\${ produit.promo.discountValue.toFixed(3) } <sup
class=\"currency-style\">TND</sup> Remise</span>
<span class=\"save-price font-md color3 ml-15\"
v-if=\"selectedDeclinaison.in_promo && produit.promo.discountType=='percent'\">-\${ produit.promo.discountValue } % Remise</span>
</div>
</div>
<div class=\"bt-1 border-color-1 mt-15 mb-15\"></div>
<div class=\"short-desc mb-15\" id=\"article\">
<p>\${ produit.description }</p>
</div>
<div class=\"short-desc mb-30\">
<p v-html=\"produit.specification\"></p>
</div>
<!-- Liste des couleurs -->
{# <div class=\"attr-detail attr-size mb-15\">
<strong class=\"mr-10\">Couleurs</strong>
<ul class=\"list-filter size-filter font-small\">
<li v-for=\"(entry,key) in produit.couleurs\" :class=\"entry==selectedDeclinaison.couleur ? 'active' : ''\" style=\"margin-right:3px;margin-bottom:3px\" @click=\"getTailles(entry,produit.declinaisons_produit)\"><a href=\"#&\">\${ entry }</a></li>
</ul>
</div> #}
<div class=\"attr-detail attr-size mb-15\">
<strong class=\"mr-10\">Couleurs</strong>
<ul class=\"list-filter color-filter multi\">
<li :class=\"entry.name==selectedDeclinaison.couleur.name ? 'active' : ''\"
v-for=\"entry in produit.couleurs\"
@click=\"getTailles(entry.name,produit.declinaisons_produit)\">
<a href=\"#&\" :title=\"entry.name\">
<span :style=\"{ 'background-color': entry.code ? entry.code :'#fff','border': '1px solid #ddd' }\"></span>
</a>
</li>
</ul>
</div>
<!-- Liste des tailles -->
<div class=\"attr-detail attr-size\">
<strong class=\"mr-10\">Tailles</strong>
<ul class=\"list-filter size-filter font-small\">
<li v-for=\"(entry,key) in produit.tailles\"
:class=\"[(entry.taille==selectedDeclinaison.taille ? 'active' : ''), (entry.qty<=0 ? 'disabled-123' : '')]\"
style=\"margin-right:3px;margin-bottom:3px\"
@click=\"selectTaille(entry)\"><a href=\"#&\">\${ entry.taille }</a></li>
</ul>
</div>
<div class=\"bt-1 border-color-1 mt-30 mb-30\"></div>
<div class=\"detail-extralink\">
<div class=\"detail-qty border radius\">
<a href=\"#&\" class=\"qty-down-123\" @click=\"incrementQty('-',selectedDeclinaison.id)\"><i class=\"fi-rs-angle-small-down\"></i></a>
<span>\${ qty }</span>
<a href=\"#&\" class=\"qty-up-123\"
@click=\"incrementQty('+',selectedDeclinaison.id)\"><i
class=\"fi-rs-angle-small-up\"></i></a>
<!--<input type=\"number\" :max=\"selectedDeclinaison.qty\" min=\"0\">-->
</div>
<div class=\"product-extra-link2\">
<button :class=\"['button button-add-to-cart', (selectedDeclinaison.qty<=0 ? 'disabled' : '')]\"
@click=\"addProduct(qty)\">Ajouter au panier
</button>
<!--<a aria-label=\"Add To Wishlist\" class=\"action-btn hover-up\" href=\"shop-wishlist.html\"><i class=\"fi-rs-heart\"></i></a>
<a aria-label=\"Compare\" class=\"action-btn hover-up\" href=\"shop-compare.html\"><i class=\"fi-rs-shuffle\"></i></a>-->
</div>
</div>
<ul class=\"product-meta font-xs color-grey mt-50\">
<li class=\"mb-5\">Référence: <a href=\"#\">\${ selectedDeclinaison.ref }</a>
</li>
<!--<li class=\"mb-5\">Tags: <a href=\"#\" rel=\"tag\">Cloth</a>, <a href=\"#\" rel=\"tag\">Women</a>, <a href=\"#\" rel=\"tag\">Dress</a> </li>-->
<li>
Disponibilité:
<!--<span class=\"in-stock text-success ml-5\" v-if=\"selectedDeclinaison.qty>0\">\${ selectedDeclinaison.qty } articles restants</span>-->
<span class=\"in-stock text-danger ml-5\"
v-if=\"selectedDeclinaison.qty<=0\">Produit en rupture de stock</span>
<span class=\"in-stock text-danger ml-5\"
v-if=\"selectedDeclinaison.qty<=5 && selectedDeclinaison.qty>0\">Risque de rupture de stock</span>
<span class=\"in-stock text-success ml-5\"
v-if=\"selectedDeclinaison.qty>5\">Produit en stock</span>
</li>
</ul>
<div class=\"product_sort_info font-xs mb-30 mt-10\">
<ul>
<!--<li class=\"mb-10\"><i class=\"fi-rs-crown mr-5\"></i> 1 Year AL Jazeera Brand Warranty</li>-->
<li class=\"mb-10\"><i class=\"fi-rs-refresh mr-5\"></i> Politique de retour de 3 jours</li>
<li><i class=\"fi-rs-credit-card mr-5\"></i> Paiement à la livraison</li>
</ul>
</div>
</div>
<!-- Detail Info -->
</div>
</div>
<div class=\"tab-style3\">
<ul class=\"nav nav-tabs text-uppercase\">
<li class=\"nav-item\">
<a class=\"nav-link active\" id=\"Additional-info-tab\" data-bs-toggle=\"tab\"
href=\"#Additional-info\"><span style=\"color: #f7971e\">Informations additionnelles</span></a>
</li>
</ul>
<div class=\"tab-content shop_info_tab entry-main-content\">
<div class=\"tab-pane fade show active\" id=\"Additional-info\">
<table class=\"font-md\">
<tbody>
<tr class=\"pa_color\">
<th>Couleurs</th>
<td>
<ul class=\"list-filter color-filter multi\">
<li v-for=\"entry in produit.couleurs\">
<a href=\"#&\" :title=\"entry.name\">
<span :style=\"{ 'background-color': entry.code ? entry.code :'#fff','border': '1px solid #ddd' }\"></span>
</a>
</li>
</ul>
</td>
</tr>
<tr class=\"pa_size\">
<th>Tailles</th>
<td>
<p v-for=\"entry in produit.tailles\">\${ entry.taille }</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
{# <div class=\"row mt-60\" v-if=\"tags.length\">#}
{# <div class=\"col-12\">#}
{# <h3 class=\"section-title style-1 mb-30\">Autres produits dans la même catégorie</h3>#}
{# </div>#}
{# <div class=\"col-12\">#}
{# <div class=\"row related-products\">#}
{# <div v-for=\"entry in tags\" class=\"col-lg-3 col-md-4 col-12 col-sm-6 row-product\"#}
{# @click=\"openProduct(entry.id,entry.name)\">#}
{# <div class=\"product-cart-wrap small hover-up col-product\">#}
{# <div class=\"product-img-action-wrap\">#}
{# <div class=\"product-img product-img-zoom\">#}
{# <a href=\"#&\" tabindex=\"0\">#}
{# #}{# <img class=\"default-img\" src=\"{{ asset('front/assets/imgs/shop/product-2-1.jpg') }}\" alt=\"Sunshine Elegance\"> #}
{# <img class=\"default-img product-img\"#}
{# :src=\"'{{ APP_URL }}/images/300-400/'+entry.image\" alt=\"Sunshine Elegance\">#}
{# </a>#}
{# </div>#}
{# <div class=\"product-action-1\" @click=\"openProduct(entry.id,entry.name)\">#}
{# <a aria-label=\"Ajouter au panier\"#}
{# class=\"action-btn small hover-up\" href=\"#&\"><i#}
{# class=\"fi-rs-shopping-bag-add\"></i></a>#}
{# </div>#}
{# <div class=\"product-badges product-badges-position product-badges-mrg\"#}
{# v-if=\"entry.promo\">#}
{# <span class=\"hot\"#}
{# v-if=\"entry.promo && entry.promo.discountType=='amount'\">-\${ entry.promo.discountValue.toFixed(3) } <sup#}
{# class=\"currency-style\">TND</sup></span>#}
{# <span class=\"hot\"#}
{# v-if=\"entry.promo && entry.promo.discountType=='percent'\">-\${ entry.promo.discountValue } %</span>#}
{# </div>#}
{# </div>#}
{# <div class=\"product-content-wrap\">#}
{# <h2><a href=\"#&\" tabindex=\"0\">\${ entry.name }</a></h2>#}
{# <div class=\"product-price\">#}
{# <span v-if=\"!entry.promo\">\${ entry.priceTTC.toFixed(3) } <sup#}
{# class=\"currency-style\">TND</sup></span>#}
{# <span v-if=\"entry.promo && entry.promo.discountType=='amount'\">\${ (entry.priceTTC-entry.promo.discountValue).toFixed(3) } <sup#}
{# class=\"currency-style\">TND</sup></span>#}
{# <span v-if=\"entry.promo && entry.promo.discountType=='percent'\">\${ (entry.priceTTC-(entry.priceTTC*entry.promo.discountValue/100)).toFixed(3) } <sup#}
{# class=\"currency-style\">TND</sup></span>#}
{# <span class=\"old-price\" v-if=\"entry.promo\">\${ entry.priceTTC.toFixed(3) } <sup#}
{# class=\"currency-style\">TND</sup></span>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
</div>
</div>
{#<div class=\"col-lg-3 primary-sidebar sticky-sidebar\">
<div class=\"widget-category mb-30\">
<h5 class=\"section-title style-1 mb-30 wow fadeIn animated\">Catégories</h5>
<ul class=\"categories\">
{% for entry in Globals.getCategories() %}
<li class=\"category-list\"><a href=\"{{ path('category_new', {id: entry.id}) }}\">{{ entry.name }}</a></li>
{% endfor %}
</ul>
</div>#}
</div>
<div class=\"row mt-60\">
<div class=\"col-12\">
<h3 class=\"section-title style-1 mb-30\">Produits dans la même catégorie</h3>
</div>
<div class=\"col-12\">
<div class=\"row related-products\">
{% for product in relatedProduct %}
<div class=\"col-lg-3 col-md-4 col-12 col-sm-6\">
<div class=\"product-cart-wrap small hover-up\">
<div class=\"product-img-action-wrap\">
<div class=\"product-img product-img-zoom\">
<a href=\"{{ path('product_new', {id: product.id,name:product.name|slug}) }}\" style=\"height: 100%\">
<img class=\"default-img\" src=\"{{ absolute_url(asset('/images/300-400/' ~ product.image)) }}\" alt=\"{{ product.name }}\"
style=\"width: 100%\">
{# <img class=\"hover-img\" src=\"{{ asset('images/' ~ product.image) }}\" alt=\"Sunshine Elegance\"> #}
</a>
</div>
{# <div class=\"product-action-1\">
<a aria-label=\"Quick view\" class=\"action-btn small hover-up\" data-bs-toggle=\"modal\" data-bs-target=\"#quickViewModal\">
<i class=\"fi-rs-eye\"></i></a>
<a aria-label=\"Add To Wishlist\" class=\"action-btn small hover-up\" href=\"shop-wishlist.html\" tabindex=\"0\"><i class=\"fi-rs-heart\"></i></a>
<a aria-label=\"Compare\" class=\"action-btn small hover-up\" href=\"shop-compare.html\" tabindex=\"0\"><i class=\"fi-rs-shuffle\"></i></a>
</div> #}
{% if( product.promotion and product.promotion.isValid) or product.stock == 0 or product.isNew %}
<div class=\"product-badges product-badges-position product-badges-mrg\">
{% if product.stock == 0 %}
<span class=\"hot mr-1\"
style=\"margin-right: 2px;font-size: 10px;\">Rupture de stock</span>
{% endif %}
{% if product.isNew %}
<span class=\"new mr-1\"
style=\"margin-right: 2px;font-size: 10px;\">Nouveau</span>
{% endif %}
{% if product.promotion and product.promotion.isValid and product.promotion.discountType=='amount' %}
<span class=\"best\"
style=\"font-size: 10px;\">-{{ product.promotion.discountValue }} <sup
class=\"currency-style\">TND</sup></span>
{% endif %}
{% if product.promotion and product.promotion.isValid and product.promotion.discountType=='percent' %}
<span class=\"best\"
style=\"font-size: 10px;\">-{{ product.promotion.discountValue }} %</span>
{% endif %}
</div>
{% endif %}
</div>
<div class=\"product-content-wrap\">
<h2><a href=\"{{ path('product_new', {id: product.id,name:product.name|slug}) }}\">{{ product.name }}</a></h2>
{# <div class=\"rating-result\" title=\"90%\">
<span>
</span>
</div> #}
<div class=\"product-price\">
{% if product.promotion == null or (product.promotion and product.promotion.isValid == false) %}
<span>{{ product.getPriceTtc() }} <sup
class=\"currency-style\">TND</sup></span>
{% endif %}
{% if product.promotion and product.promotion.isValid and product.promotion.discountType=='amount' %}
<span>{{ (product.getPriceTtc()-product.promotion.discountValue) }} <sup
class=\"currency-style\">TND</sup></span>
{% endif %}
{% if product.promotion and product.promotion.isValid and product.promotion.discountType=='percent' %}
<span>{{ (product.getPriceTtc()-(product.getPriceTtc()*product.promotion.discountValue/100)) }} <sup
class=\"currency-style\">TND</sup></span>
{% endif %}
{% if product.promotion and product.promotion.isValid %}
<span class=\"old-price\">{{ product.getPriceTtc() }} <sup
class=\"currency-style\">TND</sup></span>
{% endif %}
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</section>
</main>
{#{% endverbatim %}#}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"{{ asset('front/assets/scripts/product/index.js') }}\"></script>
<script>
\$( document ).ready(function() {
window.scrollTo(0,200);
});
</script>
{% endblock %}
", "front/product/index.html.twig", "/home/sunshil/www/sunshine-elegance/templates/front/product/index.html.twig");
}
}