<?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;
/* front/home.html.twig */
class __TwigTemplate_adb11b7a2f4714612c039810e5a1c4aa extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "front/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$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/home.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/home.html.twig"));
$this->parent = $this->loadTemplate("front/base.html.twig", "front/home.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_body($context, array $blocks = [])
{
$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 3
echo " <main class=\"main\" >
";
// line 4
if ((isset($context["sliders"]) || array_key_exists("sliders", $context) ? $context["sliders"] : (function () { throw new RuntimeError('Variable "sliders" does not exist.', 4, $this->source); })())) {
// line 5
echo " <section class=\"home-slider position-relative mb-30\">
<div class=\"container\">
<div class=\"home-slide-cover ";
// line 7
echo " mt-30\">
<div class=\"hero-slider-1 style-4 dot-style-1 dot-style-1-position-1\">
";
// line 9
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["sliders"]) || array_key_exists("sliders", $context) ? $context["sliders"] : (function () { throw new RuntimeError('Variable "sliders" does not exist.', 9, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["slider"]) {
// line 10
echo " <div class=\"single-hero-slider single-animation-wrap\">
<div class=\"container\">
<div class=\"row align-items-center slider-animated-1\">
";
// line 13
if (twig_get_attribute($this->env, $this->source, $context["slider"], "title", [], "any", false, false, false, 13)) {
// line 14
echo " <div class=\"col-lg-5 col-md-6\">
<div class=\"hero-slider-content-2 m-4\">
<h3 class=\"animated fw-900 text-brand\">";
// line 16
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["slider"], "title", [], "any", false, false, false, 16), "html", null, true);
echo "</h3>
";
// line 17
echo twig_get_attribute($this->env, $this->source, $context["slider"], "description", [], "any", false, false, false, 17);
echo "
<a class=\"animated btn btn-brush btn-brush-3\" href=\"";
// line 18
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["slider"], "url", [], "any", false, false, false, 18), "html", null, true);
echo "\" tabindex=\"0\"> Visiter </a>
</div>
</div>
";
}
// line 22
echo " <div class=\"";
echo ((twig_get_attribute($this->env, $this->source, $context["slider"], "title", [], "any", false, false, false, 22)) ? ("col-lg-7 col-md-6") : ("col-md-12"));
echo "\">
<div class=\"single-slider-img single-slider-img-1\">
<img class=\"animated\"
src=\"";
// line 25
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["slider"], "image", [], "any", false, false, false, 25)), "html", null, true);
echo "\" alt=\"Sunshine Elegance\"
style=\"width: 100%;\">
</div>
</div>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['slider'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 33
echo " </div>
<div class=\"slider-arrow hero-slider-1-arrow\"></div>
</div>
</div>
</section>
";
}
// line 39
echo " <div id=\"app\" class=\"pb-30\">
<section class=\"section-padding\" v-if=\"categories.length\" v-for=\"(entry,index) in categories\">
<div class=\"container pt-5 pb-5\">
<div class=\"heading-tab d-flex\">
<div class=\"heading-tab-left wow fadeIn animated\">
<h3 class=\"section-title mb-30 hidden\"><span>\${ entry.category.name }</span></h3>
</div>
<a href=\"#&\" class=\"view-more d-none d-md-flex mb-30 \" @click=\"openCategory(entry.category.id,entry.category.name)\">Voir plus<i class=\"fi-rs-angle-double-small-right\"></i></a>
</div>
<div class=\"row\">
<div class=\"col-lg-12 col-md-12\">
<div class=\"tab-content wow fadeIn animated\" id=\"myTabContent-1\">
<div class=\"tab-pane fade show active\" id=\"tab-one-1\" role=\"tabpanel\"
aria-labelledby=\"tab-one-1\">
<div class=\"carausel-4-columns-cover arrow-center position-relative\">
<div class=\"slider-arrow slider-arrow-2 carausel-4-columns-arrow\"
:id=\"'carausel-4-columns-'+entry.category.id+'-arrows'\"></div>
<div class=\"carausel-4-columns carausel-arrow-center\" :id=\"'carausel-4-columns-'+entry.category.id\">
<div class=\"product-cart-wrap\" v-for=\"prod in entry.products\">
<div class=\"product-img-action-wrap col-product\" @click=\"openProduct(prod.id,prod.name)\">
<div class=\"product-img product-img-zoom\">
<a href=\"#&\">
<img class=\"default-img product-img\"
:src=\"'images/300-400/'+prod.image\" :alt=\"prod.name\">
";
// line 64
echo " </a>
</div>
<div class=\"product-badges product-badges-position product-badges-mrg\"
v-if=\"(prod.promo && prod.promo.isValid) || !prod.stock || prod.isNew\">
<span v-if=\"!prod.stock\" class=\"hot mr-1\"
style=\"margin-right: 2px;font-size: 10px;\">Rupture de stock</span>
<span v-if=\"prod.isNew\" class=\"new mr-1\"
style=\"margin-right: 2px;font-size: 10px;\">Nouveau</span>
<span class=\"best\"
v-if=\"prod.promo && prod.promo.isValid && prod.promo.discountType=='amount'\"
style=\"font-size: 10px;\">-\${ prod.promo.discountValue.toFixed(3) } <sup
class=\"currency-style\">TND</sup></span>
<span class=\"best\"
v-if=\"prod.promo && prod.promo.isValid && prod.promo.discountType=='percent'\"
style=\"font-size: 10px;\">-\${ prod.promo.discountValue } %</span>
</div>
</div>
<div class=\"product-content-wrap\">
<h2><a href=\"#&\" @click=\"openProduct(prod.id,prod.name)\">\${ prod.name }</a></h2>
<div class=\"product-price\">
<span v-if=\"!prod.promo || (prod.promo && !prod.promo.isValid)\">\${ prod.priceTTC.toFixed(3) } <sup
class=\"currency-style\">TND</sup></span>
<span v-if=\"prod.promo && prod.promo.isValid && prod.promo.isValid && prod.promo.discountType=='amount'\">\${ (prod.priceTTC-prod.promo.discountValue).toFixed(3) } <sup
class=\"currency-style\">TND</sup></span>
<span v-if=\"prod.promo && prod.promo.isValid && prod.promo.isValid && prod.promo.discountType=='percent'\">\${ (prod.priceTTC-(prod.priceTTC*prod.promo.discountValue/100)).toFixed(3) } <sup
class=\"currency-style\">TND</sup></span>
<span class=\"old-price\"
v-if=\"prod.promo && prod.promo.isValid && prod.promo.isValid\">\${ prod.priceTTC.toFixed(3) } <sup
class=\"currency-style\">TND</sup></span>
</div>
<div class=\"product-action-1 show\" @click=\"getProduit(prod.id)\">
<button aria-label=\"Acheter maintenant\" class=\"action-btn hover-up\"><i
class=\"fi-rs-shopping-bag-add\"></i></button>
</div>
</div>
</div>
</div>
</div>
</div>
<!--End tab-pane-->
</div>
<!--End tab-content-->
</div>
<!--End Col-lg-9-->
</div>
</div>
</section>
</div>
</main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 114
public function block_javascripts($context, array $blocks = [])
{
$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 115
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"";
// line 116
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/assets/scripts/home/home.js"), "html", null, true);
echo "\"></script>
<script>
\$(\"#preloader-active-loading\").css('display', 'none');
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/home.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 241 => 116, 236 => 115, 226 => 114, 167 => 64, 141 => 39, 133 => 33, 119 => 25, 112 => 22, 105 => 18, 101 => 17, 97 => 16, 93 => 14, 91 => 13, 86 => 10, 82 => 9, 78 => 7, 74 => 5, 72 => 4, 69 => 3, 59 => 2, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'front/base.html.twig' %}
{% block body %}
<main class=\"main\" >
{% if sliders %}
<section class=\"home-slider position-relative mb-30\">
<div class=\"container\">
<div class=\"home-slide-cover {#bg-grey-10#} mt-30\">
<div class=\"hero-slider-1 style-4 dot-style-1 dot-style-1-position-1\">
{% for slider in sliders %}
<div class=\"single-hero-slider single-animation-wrap\">
<div class=\"container\">
<div class=\"row align-items-center slider-animated-1\">
{% if slider.title %}
<div class=\"col-lg-5 col-md-6\">
<div class=\"hero-slider-content-2 m-4\">
<h3 class=\"animated fw-900 text-brand\">{{ slider.title}}</h3>
{{ slider.description|raw }}
<a class=\"animated btn btn-brush btn-brush-3\" href=\"{{ slider.url}}\" tabindex=\"0\"> Visiter </a>
</div>
</div>
{% endif %}
<div class=\"{{ slider.title?\"col-lg-7 col-md-6\":\"col-md-12\" }}\">
<div class=\"single-slider-img single-slider-img-1\">
<img class=\"animated\"
src=\"{{ asset( slider.image) }}\" alt=\"Sunshine Elegance\"
style=\"width: 100%;\">
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
<div class=\"slider-arrow hero-slider-1-arrow\"></div>
</div>
</div>
</section>
{% endif %}
<div id=\"app\" class=\"pb-30\">
<section class=\"section-padding\" v-if=\"categories.length\" v-for=\"(entry,index) in categories\">
<div class=\"container pt-5 pb-5\">
<div class=\"heading-tab d-flex\">
<div class=\"heading-tab-left wow fadeIn animated\">
<h3 class=\"section-title mb-30 hidden\"><span>\${ entry.category.name }</span></h3>
</div>
<a href=\"#&\" class=\"view-more d-none d-md-flex mb-30 \" @click=\"openCategory(entry.category.id,entry.category.name)\">Voir plus<i class=\"fi-rs-angle-double-small-right\"></i></a>
</div>
<div class=\"row\">
<div class=\"col-lg-12 col-md-12\">
<div class=\"tab-content wow fadeIn animated\" id=\"myTabContent-1\">
<div class=\"tab-pane fade show active\" id=\"tab-one-1\" role=\"tabpanel\"
aria-labelledby=\"tab-one-1\">
<div class=\"carausel-4-columns-cover arrow-center position-relative\">
<div class=\"slider-arrow slider-arrow-2 carausel-4-columns-arrow\"
:id=\"'carausel-4-columns-'+entry.category.id+'-arrows'\"></div>
<div class=\"carausel-4-columns carausel-arrow-center\" :id=\"'carausel-4-columns-'+entry.category.id\">
<div class=\"product-cart-wrap\" v-for=\"prod in entry.products\">
<div class=\"product-img-action-wrap col-product\" @click=\"openProduct(prod.id,prod.name)\">
<div class=\"product-img product-img-zoom\">
<a href=\"#&\">
<img class=\"default-img product-img\"
:src=\"'images/300-400/'+prod.image\" :alt=\"prod.name\">
{# <img class=\"hover-img\" src=\"assets/imgs/shop/product-1-2.jpg\" alt=\"Sunshine Elegance\"> #}
</a>
</div>
<div class=\"product-badges product-badges-position product-badges-mrg\"
v-if=\"(prod.promo && prod.promo.isValid) || !prod.stock || prod.isNew\">
<span v-if=\"!prod.stock\" class=\"hot mr-1\"
style=\"margin-right: 2px;font-size: 10px;\">Rupture de stock</span>
<span v-if=\"prod.isNew\" class=\"new mr-1\"
style=\"margin-right: 2px;font-size: 10px;\">Nouveau</span>
<span class=\"best\"
v-if=\"prod.promo && prod.promo.isValid && prod.promo.discountType=='amount'\"
style=\"font-size: 10px;\">-\${ prod.promo.discountValue.toFixed(3) } <sup
class=\"currency-style\">TND</sup></span>
<span class=\"best\"
v-if=\"prod.promo && prod.promo.isValid && prod.promo.discountType=='percent'\"
style=\"font-size: 10px;\">-\${ prod.promo.discountValue } %</span>
</div>
</div>
<div class=\"product-content-wrap\">
<h2><a href=\"#&\" @click=\"openProduct(prod.id,prod.name)\">\${ prod.name }</a></h2>
<div class=\"product-price\">
<span v-if=\"!prod.promo || (prod.promo && !prod.promo.isValid)\">\${ prod.priceTTC.toFixed(3) } <sup
class=\"currency-style\">TND</sup></span>
<span v-if=\"prod.promo && prod.promo.isValid && prod.promo.isValid && prod.promo.discountType=='amount'\">\${ (prod.priceTTC-prod.promo.discountValue).toFixed(3) } <sup
class=\"currency-style\">TND</sup></span>
<span v-if=\"prod.promo && prod.promo.isValid && prod.promo.isValid && prod.promo.discountType=='percent'\">\${ (prod.priceTTC-(prod.priceTTC*prod.promo.discountValue/100)).toFixed(3) } <sup
class=\"currency-style\">TND</sup></span>
<span class=\"old-price\"
v-if=\"prod.promo && prod.promo.isValid && prod.promo.isValid\">\${ prod.priceTTC.toFixed(3) } <sup
class=\"currency-style\">TND</sup></span>
</div>
<div class=\"product-action-1 show\" @click=\"getProduit(prod.id)\">
<button aria-label=\"Acheter maintenant\" class=\"action-btn hover-up\"><i
class=\"fi-rs-shopping-bag-add\"></i></button>
</div>
</div>
</div>
</div>
</div>
</div>
<!--End tab-pane-->
</div>
<!--End tab-content-->
</div>
<!--End Col-lg-9-->
</div>
</div>
</section>
</div>
</main>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"{{ asset('front/assets/scripts/home/home.js') }}\"></script>
<script>
\$(\"#preloader-active-loading\").css('display', 'none');
</script>
{% endblock %}
", "front/home.html.twig", "/home/sunshil/demo/sunshine-elegance/templates/front/home.html.twig");
}
}