<?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/theme1/produits/page_sous_categorie.html.twig */
class __TwigTemplate_581156f58bd448bcca23ade977d28cdfda9ba152c8271fc30f8141c3ec64b23a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'preload' => [$this, 'block_preload'],
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate((("front/" . twig_get_attribute($this->env, $this->source, 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.', 1, $this->source); })()), "request", [], "any", false, false, false, 1), "server", [], "any", false, false, false, 1), "get", [0 => "APP_THEME"], "method", false, false, false, 1)) . "/base.html.twig"), "front/theme1/produits/page_sous_categorie.html.twig", 1);
}
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", "front/theme1/produits/page_sous_categorie.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/produits/page_sous_categorie.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_preload($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", "preload"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "preload"));
// line 4
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["categorie"] ?? null), "image", [], "any", true, true, false, 4) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 4, $this->source); })()), "image", [], "any", false, false, false, 4)))) {
// line 5
echo " <link rel=\"preload\" as=\"image\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 5, $this->source); })()), "image", [], "any", false, false, false, 5)), "html", null, true);
echo "\" />
";
}
// line 7
echo "
";
// line 8
if ((array_key_exists("resultats", $context) && !twig_test_empty((isset($context["resultats"]) || array_key_exists("resultats", $context) ? $context["resultats"] : (function () { throw new RuntimeError('Variable "resultats" does not exist.', 8, $this->source); })())))) {
// line 9
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["resultats"]) || array_key_exists("resultats", $context) ? $context["resultats"] : (function () { throw new RuntimeError('Variable "resultats" does not exist.', 9, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 10
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "image", [], "any", false, false, false, 10)) {
// line 11
echo " <link rel=\"preload\" as=\"image\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env, $this->source, $context["item"], "image", [], "any", false, false, false, 11)), "html", null, true);
echo "\" />
";
}
// line 13
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo "
";
}
// line 15
echo "
";
// line 16
if ((array_key_exists("galleries", $context) && !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 16, $this->source); })())))) {
// line 17
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 17, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 18
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "path", [], "any", true, true, false, 18)) {
// line 19
echo " <link rel=\"preload\" as=\"image\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageGalleryFunction(twig_get_attribute($this->env, $this->source, $context["item"], "path", [], "any", false, false, false, 19)), "html", null, true);
echo "\" />
";
}
// line 21
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 22
echo " ";
}
// line 23
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 27
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 28
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
// line 29
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["modele_galerie"]) || array_key_exists("modele_galerie", $context) ? $context["modele_galerie"] : (function () { throw new RuntimeError('Variable "modele_galerie" does not exist.', 29, $this->source); })()), 0, [], "array", false, false, false, 29), "type", [], "any", false, false, false, 29) == 4)) {
// line 30
echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/flexslider/flexslider.css"), "html", null, true);
echo "\" media=\"screen\" >
";
}
// line 32
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["template"] ?? null), "css", [], "any", true, true, false, 32)) {
// line 33
echo " <style>
";
// line 34
echo twig_get_attribute($this->env, $this->source, (isset($context["template"]) || array_key_exists("template", $context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.', 34, $this->source); })()), "css", [], "any", false, false, false, 34);
echo "
</style>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 40
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 41
echo "
";
// line 42
if ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 42, $this->source); })()), "positiontext", [], "any", false, false, false, 42) == 3)) {
// line 43
echo " ";
$context["position_texte"] = "text-left";
// line 44
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 44, $this->source); })()), "positiontext", [], "any", false, false, false, 44) == 2)) {
// line 45
echo " ";
$context["position_texte"] = "text-right";
// line 46
echo " ";
} else {
// line 47
echo " ";
$context["position_texte"] = "text-center";
// line 48
echo " ";
}
// line 49
echo "
";
// line 50
$context["type_affiche"] = "";
// line 51
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 51, $this->source); })()), "nombrearticle", [], "any", false, false, false, 51) == 1)) {
// line 52
echo " ";
$context["type_affiche"] = "type_affiche1";
// line 53
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 53, $this->source); })()), "nombrearticle", [], "any", false, false, false, 53) == 2)) {
// line 54
echo " ";
$context["type_affiche"] = "type_affiche2";
// line 55
echo " ";
} else {
// line 56
echo " ";
$context["type_affiche"] = "type_affiche3";
// line 57
echo " ";
}
// line 58
echo "
";
// line 59
if ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 59, $this->source); })()), "actif_slider", [], "any", false, false, false, 59) == 1)) {
// line 60
echo " ";
$context["type_affiche"] = ((isset($context["type_affiche"]) || array_key_exists("type_affiche", $context) ? $context["type_affiche"] : (function () { throw new RuntimeError('Variable "type_affiche" does not exist.', 60, $this->source); })()) . " owl-carousel");
// line 61
echo " ";
}
// line 62
echo "
";
// line 63
$context["multi_affichage"] = "affichage1";
// line 64
echo "
";
// line 65
if ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 65, $this->source); })()), "multi_affichage", [], "any", false, false, false, 65) == 1)) {
// line 66
echo " ";
$context["multi_affichage"] = "affichage1";
// line 67
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 67, $this->source); })()), "multi_affichage", [], "any", false, false, false, 67) == 2)) {
// line 68
echo " ";
$context["multi_affichage"] = "affichage2";
// line 69
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 69, $this->source); })()), "multi_affichage", [], "any", false, false, false, 69) == 3)) {
// line 70
echo " ";
$context["multi_affichage"] = "affichage3";
// line 71
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 71, $this->source); })()), "multi_affichage", [], "any", false, false, false, 71) == 4)) {
// line 72
echo " ";
$context["multi_affichage"] = "affichage4";
// line 73
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 73, $this->source); })()), "multi_affichage", [], "any", false, false, false, 73) == 5)) {
// line 74
echo " ";
$context["multi_affichage"] = "affichage5";
// line 75
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 75, $this->source); })()), "multi_affichage", [], "any", false, false, false, 75) == 6)) {
// line 76
echo " ";
$context["multi_affichage"] = "affichage6";
// line 77
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 77, $this->source); })()), "multi_affichage", [], "any", false, false, false, 77) == 7)) {
// line 78
echo " ";
$context["multi_affichage"] = "affichage7";
// line 79
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 79, $this->source); })()), "multi_affichage", [], "any", false, false, false, 79) == 8)) {
// line 80
echo " ";
$context["multi_affichage"] = "affichage8";
// line 81
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 81, $this->source); })()), "multi_affichage", [], "any", false, false, false, 81) == 9)) {
// line 82
echo " ";
$context["multi_affichage"] = "affichage9";
// line 83
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 83, $this->source); })()), "multi_affichage", [], "any", false, false, false, 83) == 10)) {
// line 84
echo " ";
$context["multi_affichage"] = "affichage10";
// line 85
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 85, $this->source); })()), "multi_affichage", [], "any", false, false, false, 85) == 11)) {
// line 86
echo " ";
$context["multi_affichage"] = "affichage11";
// line 87
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 87, $this->source); })()), "multi_affichage", [], "any", false, false, false, 87) == 12)) {
// line 88
echo " ";
$context["multi_affichage"] = "affichage12";
// line 89
echo " ";
}
// line 90
echo "
<div class=\"page_cms pt-5 page_product\">
<div class=\"breadcrumb-style-default\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
";
// line 97
if ((array_key_exists("breadcrumb", $context) && !twig_test_empty((isset($context["breadcrumb"]) || array_key_exists("breadcrumb", $context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.', 97, $this->source); })())))) {
// line 98
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, 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.', 98, $this->source); })()), "request", [], "any", false, false, false, 98), "server", [], "any", false, false, false, 98), "get", [0 => "APP_THEME"], "method", false, false, false, 98)) . "/partials/breadcrumb.html.twig"));
echo "
<h1 class=\"page-title\">";
// line 99
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_last($this->env, (isset($context["breadcrumb"]) || array_key_exists("breadcrumb", $context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.', 99, $this->source); })())), "name", [], "any", false, false, false, 99), "html", null, true);
echo "</h1>
";
}
// line 101
echo " </div>
</div>
</div>
</div>
</div>
<div class=\"container-fluid mt-3\">
<div class=\"row gx-5 py-2\">
";
// line 109
if ((array_key_exists("categories_tree", $context) && !twig_test_empty((isset($context["categories_tree"]) || array_key_exists("categories_tree", $context) ? $context["categories_tree"] : (function () { throw new RuntimeError('Variable "categories_tree" does not exist.', 109, $this->source); })())))) {
// line 110
echo " <div class=\"col-lg-3 ";
echo (((array_key_exists("show_filter_categorie", $context) && ((isset($context["show_filter_categorie"]) || array_key_exists("show_filter_categorie", $context) ? $context["show_filter_categorie"] : (function () { throw new RuntimeError('Variable "show_filter_categorie" does not exist.', 110, $this->source); })()) == true))) ? ("") : ("d-none"));
echo "\">
";
// line 111
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, 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.', 111, $this->source); })()), "request", [], "any", false, false, false, 111), "server", [], "any", false, false, false, 111), "get", [0 => "APP_THEME"], "method", false, false, false, 111)) . "/partials/product/_sidebar.html.twig"));
echo "
</div>
";
}
// line 114
echo "
<div class=\"col-lg-";
// line 115
echo (((array_key_exists("show_filter_categorie", $context) && ((isset($context["show_filter_categorie"]) || array_key_exists("show_filter_categorie", $context) ? $context["show_filter_categorie"] : (function () { throw new RuntimeError('Variable "show_filter_categorie" does not exist.', 115, $this->source); })()) == true))) ? ("9") : ("12"));
echo " bloc-content-sous-categorie ";
echo ((((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 115, $this->source); })()), "actif_haut", [], "any", false, false, false, 115) == false) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 115, $this->source); })()), "textecategorie", [], "any", false, false, false, 115)))) ? ("d-flex flex-column-reverse") : (""));
echo "\">
";
// line 116
if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 116, $this->source); })()), "textecategorie", [], "any", false, false, false, 116)) && (twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 116, $this->source); })()), "textecategorie", [], "any", false, false, false, 116) != ""))) {
// line 117
echo " <div class=\"list_blocs ";
echo twig_escape_filter($this->env, (isset($context["position_texte"]) || array_key_exists("position_texte", $context) ? $context["position_texte"] : (function () { throw new RuntimeError('Variable "position_texte" does not exist.', 117, $this->source); })()), "html", null, true);
echo "\">
<div class=\"col-lg-12 content_post\">
";
// line 119
echo twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 119, $this->source); })()), "textecategorie", [], "any", false, false, false, 119);
echo "
";
// line 120
if ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 120, $this->source); })()), "typelien", [], "any", false, false, false, 120) != 1)) {
// line 121
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 121, $this->source); })()), "typelien", [], "any", false, false, false, 121) == "4")) {
// line 122
echo " <div class=\"text-center py-2\">
<a href=\"tel:";
// line 123
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 123, $this->source); })()), "telephone", [], "any", false, false, false, 123), "html", null, true);
echo "\" class=\"btn btn-back-pulse\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 123, $this->source); })()), "titrelien", [], "any", false, false, false, 123), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 125
(isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 125, $this->source); })()), "typelien", [], "any", false, false, false, 125) == "2")) {
// line 126
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 127
echo twig_escape_filter($this->env, $this->extensions['App\Twig\FunctionExtension']->slugLinkInterneFunction(twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 127, $this->source); })()), "lieninterne", [], "any", false, false, false, 127)), "html", null, true);
echo "\" class=\"btn btn-back-pulse\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 127, $this->source); })()), "titrelien", [], "any", false, false, false, 127), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 129
(isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 129, $this->source); })()), "typelien", [], "any", false, false, false, 129) == "3")) {
// line 130
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 131
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 131, $this->source); })()), "lienexterne", [], "any", false, false, false, 131), "html", null, true);
echo "\" class=\"btn btn-back-pulse\" target=\"_blank\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 131, $this->source); })()), "titrelien", [], "any", false, false, false, 131), "html", null, true);
echo "</a>
</div>
";
}
// line 134
echo " ";
}
// line 135
echo " </div>
</div>
";
}
// line 138
echo "
<div class=\"blocs\">
";
// line 141
if ((array_key_exists("template", $context) && !twig_test_empty((isset($context["template"]) || array_key_exists("template", $context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.', 141, $this->source); })())))) {
// line 142
echo " ";
echo twig_include($this->env, $context, twig_template_from_string($this->env, twig_get_attribute($this->env, $this->source, (isset($context["template"]) || array_key_exists("template", $context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.', 142, $this->source); })()), "twig", [], "any", false, false, false, 142)));
echo "
";
}
// line 144
echo "
";
// line 145
if (((((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 145, $this->source); })()) == true) && twig_get_attribute($this->env, $this->source, (isset($context["posts"]) || array_key_exists("posts", $context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.', 145, $this->source); })()), "hasToPaginate", [], "any", false, false, false, 145)) && twig_get_attribute($this->env, $this->source, (isset($context["posts"]) || array_key_exists("posts", $context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.', 145, $this->source); })()), "pageSize", [], "any", false, false, false, 145))) {
// line 146
echo " <div class=\"pagination-items\">
";
// line 147
$context["paginator"] = (isset($context["posts"]) || array_key_exists("posts", $context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.', 147, $this->source); })());
// line 148
echo " <div class=\"navigation text-center\">
<ul class=\"pagination d-felx justify-content-center my-4\">
";
// line 150
if (twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 150, $this->source); })()), "hasPreviousPage", [], "any", false, false, false, 150)) {
// line 151
echo " <li class=\"prev mx-1\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_sous_categorie", ["categorie1" => twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 151, $this->source); })()), "slugurl", [], "any", false, false, false, 151), "categorie2" => twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 151, $this->source); })()), "slugurl", [], "any", false, false, false, 151)]), "html", null, true);
echo "?page=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 151, $this->source); })()), "previousPage", [], "any", false, false, false, 151), "html", null, true);
echo "\" rel=\"previous\"><i class=\"fa fw fa-long-arrow-left\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.previous", [], "variable"), "html", null, true);
echo "</a></li>
";
} else {
// line 153
echo " <li class=\"prev disabled mx-1\"><span><i class=\"fa fw fa-long-arrow-left\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.previous", [], "variable"), "html", null, true);
echo "</span></li>
";
}
// line 155
echo " ";
if (((isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 155, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 155, $this->source); })()), "pageSize", [], "any", false, false, false, 155))) {
// line 156
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 156, $this->source); })()), "lastPage", [], "any", false, false, false, 156)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 157
echo " ";
if (($context["i"] == twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 157, $this->source); })()), "currentPage", [], "any", false, false, false, 157))) {
// line 158
echo " <li class=\"active number mx-1\"><span>";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo " </span></li>
";
} else {
// line 160
echo " <li class=\"number mx-1\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_sous_categorie", ["categorie1" => twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 160, $this->source); })()), "slugurl", [], "any", false, false, false, 160), "categorie2" => twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 160, $this->source); })()), "slugurl", [], "any", false, false, false, 160)]), "html", null, true);
echo "?page=";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</a></li>
";
}
// line 162
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 163
echo " ";
}
// line 164
echo "
";
// line 165
if (((isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 165, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 165, $this->source); })()), "pageSize", [], "any", false, false, false, 165))) {
// line 166
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 166, $this->source); })()), "hasNextPage", [], "any", false, false, false, 166)) {
// line 167
echo " <li class=\"next mx-1\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_sous_categorie", ["categorie1" => twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 167, $this->source); })()), "slugurl", [], "any", false, false, false, 167), "categorie2" => twig_get_attribute($this->env, $this->source, (isset($context["sous_categorie"]) || array_key_exists("sous_categorie", $context) ? $context["sous_categorie"] : (function () { throw new RuntimeError('Variable "sous_categorie" does not exist.', 167, $this->source); })()), "slugurl", [], "any", false, false, false, 167)]), "html", null, true);
echo "?page=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 167, $this->source); })()), "nextPage", [], "any", false, false, false, 167), "html", null, true);
echo "\" rel=\"next\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.next", [], "variable"), "html", null, true);
echo " <i class=\"fa fw fa-long-arrow-right\"></i></a></li>
";
} else {
// line 169
echo " <li class=\"next disabled mx-1\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.next", [], "variable"), "html", null, true);
echo " <i class=\"fa fw fa-long-arrow-right\"></i></span></li>
";
}
// line 171
echo " ";
}
// line 172
echo "
</ul>
</div>
</div>
";
}
// line 177
echo " </div>
</div>
</div>
</div>
";
// line 183
if (((((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 183, $this->source); })()) && !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 183, $this->source); })()))) && array_key_exists("template_model_gallerie", $context)) && !twig_test_empty((isset($context["template_model_gallerie"]) || array_key_exists("template_model_gallerie", $context) ? $context["template_model_gallerie"] : (function () { throw new RuntimeError('Variable "template_model_gallerie" does not exist.', 183, $this->source); })())))) {
// line 184
echo " ";
echo twig_include($this->env, $context, twig_template_from_string($this->env, (isset($context["template_model_gallerie"]) || array_key_exists("template_model_gallerie", $context) ? $context["template_model_gallerie"] : (function () { throw new RuntimeError('Variable "template_model_gallerie" does not exist.', 184, $this->source); })())));
echo "
";
}
// line 186
echo "
";
// line 187
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 187, $this->source); })()), "urlvideo", [], "any", false, false, false, 187))) {
// line 188
echo " <div class=\"container-fluid wrapper mt-3\">
<div class=\"col-md-12 mt-1\">
<div class=\"video\">
";
// line 191
$context["id_video_externe"] = ((twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 191, $this->source); })()), "urlvideo", [], "any", false, false, false, 191), "?v="), 1, [], "array", true, true, false, 191)) ? (twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 191, $this->source); })()), "urlvideo", [], "any", false, false, false, 191), "?v="), 1, [], "array", false, false, false, 191)) : (null));
// line 192
echo " <a class=\"video-thumbnail m-0\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 192, $this->source); })()), "urlvideo", [], "any", false, false, false, 192), "html", null, true);
echo "\" data-fancybox=\"video\">
<img src=\"https://img.youtube.com/vi/";
// line 193
echo twig_escape_filter($this->env, (isset($context["id_video_externe"]) || array_key_exists("id_video_externe", $context) ? $context["id_video_externe"] : (function () { throw new RuntimeError('Variable "id_video_externe" does not exist.', 193, $this->source); })()), "html", null, true);
echo "/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
</a>
</div>
</div>
</div>
";
}
// line 199
echo "
";
// line 200
if (array_key_exists("blocs", $context)) {
// line 201
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["blocs"]) || array_key_exists("blocs", $context) ? $context["blocs"] : (function () { throw new RuntimeError('Variable "blocs" does not exist.', 201, $this->source); })()), "Bloc", [], "any", false, false, false, 201));
foreach ($context['_seq'] as $context["_key"] => $context["bloc"]) {
// line 202
echo " ";
if (($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() && (twig_get_attribute($this->env, $this->source, $context["bloc"], "mobile", [], "any", false, false, false, 202) == true))) {
// line 203
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, 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.', 203, $this->source); })()), "request", [], "any", false, false, false, 203), "server", [], "any", false, false, false, 203), "get", [0 => "APP_THEME"], "method", false, false, false, 203)) . "/bloc/bloc.html.twig"), ["bloc" => // line 204
$context["bloc"]], false);
// line 205
echo "
";
}
// line 207
echo "
";
// line 208
if ((($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isFullView() && ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() == false)) && (twig_get_attribute($this->env, $this->source, $context["bloc"], "desktop", [], "any", false, false, false, 208) == true))) {
// line 209
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, 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.', 209, $this->source); })()), "request", [], "any", false, false, false, 209), "server", [], "any", false, false, false, 209), "get", [0 => "APP_THEME"], "method", false, false, false, 209)) . "/bloc/bloc.html.twig"), ["bloc" => // line 210
$context["bloc"]], false);
// line 211
echo "
";
}
// line 213
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bloc'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 214
echo " ";
}
echo "
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 219
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 220
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 221
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["modele_galerie"]) || array_key_exists("modele_galerie", $context) ? $context["modele_galerie"] : (function () { throw new RuntimeError('Variable "modele_galerie" does not exist.', 221, $this->source); })()), 0, [], "array", false, false, false, 221), "type", [], "any", false, false, false, 221) == 4)) {
// line 222
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/flexslider/jquery.flexslider.js"), "html", null, true);
echo "\" ></script>
<script>
/*-------------------------------------------------*/
/* = Sx flexslider
/*-------------------------------------------------*/
if (\$(\".sx_flexslider\").length) {
\$('.flex-carousel').flexslider({
animation: \"slide\",
controlNav: false,
animationLoop: true,
slideshow: false,
itemWidth: 150,
asNavFor: '.flex-slider'
});
\$('.flex-slider').flexslider({
animation: \"slide\",
controlNav: false,
animationLoop: true,
slideshow: false,
sync: \".flex-carousel\"
});
}
</script>
";
}
// line 247
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front/theme1/produits/page_sous_categorie.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 712 => 247, 683 => 222, 681 => 221, 676 => 220, 666 => 219, 651 => 214, 645 => 213, 641 => 211, 639 => 210, 637 => 209, 635 => 208, 632 => 207, 628 => 205, 626 => 204, 624 => 203, 621 => 202, 616 => 201, 614 => 200, 611 => 199, 602 => 193, 597 => 192, 595 => 191, 590 => 188, 588 => 187, 585 => 186, 579 => 184, 577 => 183, 569 => 177, 562 => 172, 559 => 171, 553 => 169, 543 => 167, 540 => 166, 538 => 165, 535 => 164, 532 => 163, 526 => 162, 516 => 160, 510 => 158, 507 => 157, 502 => 156, 499 => 155, 493 => 153, 483 => 151, 481 => 150, 477 => 148, 475 => 147, 472 => 146, 470 => 145, 467 => 144, 461 => 142, 459 => 141, 454 => 138, 449 => 135, 446 => 134, 438 => 131, 435 => 130, 433 => 129, 426 => 127, 423 => 126, 421 => 125, 414 => 123, 411 => 122, 408 => 121, 406 => 120, 402 => 119, 396 => 117, 394 => 116, 388 => 115, 385 => 114, 379 => 111, 374 => 110, 372 => 109, 362 => 101, 357 => 99, 352 => 98, 350 => 97, 341 => 90, 338 => 89, 335 => 88, 332 => 87, 329 => 86, 326 => 85, 323 => 84, 320 => 83, 317 => 82, 314 => 81, 311 => 80, 308 => 79, 305 => 78, 302 => 77, 299 => 76, 296 => 75, 293 => 74, 290 => 73, 287 => 72, 284 => 71, 281 => 70, 278 => 69, 275 => 68, 272 => 67, 269 => 66, 267 => 65, 264 => 64, 262 => 63, 259 => 62, 256 => 61, 253 => 60, 251 => 59, 248 => 58, 245 => 57, 242 => 56, 239 => 55, 236 => 54, 233 => 53, 230 => 52, 227 => 51, 225 => 50, 222 => 49, 219 => 48, 216 => 47, 213 => 46, 210 => 45, 207 => 44, 204 => 43, 202 => 42, 199 => 41, 189 => 40, 175 => 34, 172 => 33, 169 => 32, 163 => 30, 161 => 29, 156 => 28, 146 => 27, 135 => 23, 132 => 22, 126 => 21, 120 => 19, 117 => 18, 112 => 17, 110 => 16, 107 => 15, 98 => 13, 92 => 11, 89 => 10, 84 => 9, 82 => 8, 79 => 7, 73 => 5, 70 => 4, 60 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"front/\"~ app.request.server.get('APP_THEME') ~\"/base.html.twig\" %}
{% block preload %}
{% if categorie.image is defined and categorie.image is not empty %}
<link rel=\"preload\" as=\"image\" href=\"{{asset_image(categorie.image)}}\" />
{% endif %}
{% if resultats is defined and resultats is not empty %}
{% for item in resultats %}
{% if item.image %}
<link rel=\"preload\" as=\"image\" href=\"{{asset_image(item.image)}}\" />
{% endif %}
{% endfor %}
{% endif %}
{% if galleries is defined and galleries is not empty %}
{% for item in galleries %}
{% if item.path is defined %}
<link rel=\"preload\" as=\"image\" href=\"{{asset_image_gallery(item.path)}}\" />
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}
{% block stylesheets %}
{{parent()}}
{% if modele_galerie[0].type == 4 %}
<link rel=\"stylesheet\" type=\"text/css\" href=\"{{asset('templates/front/theme1/assets/plugins/flexslider/flexslider.css')}}\" media=\"screen\" >
{% endif %}
{% if template.css is defined %}
<style>
{{template.css|raw}}
</style>
{% endif %}
{% endblock %}
{% block body %}
{% if sous_categorie.positiontext == 3 %}
{% set position_texte = \"text-left\" %}
{% elseif sous_categorie.positiontext == 2 %}
{% set position_texte = \"text-right\" %}
{% else %}
{% set position_texte = \"text-center\" %}
{% endif %}
{% set type_affiche = \"\" %}
{% if sous_categorie.nombrearticle == 1 %}
{% set type_affiche = \"type_affiche1\" %}
{% elseif sous_categorie.nombrearticle == 2 %}
{% set type_affiche = \"type_affiche2\" %}
{% else %}
{% set type_affiche = \"type_affiche3\" %}
{% endif %}
{% if sous_categorie.actif_slider == 1 %}
{% set type_affiche = type_affiche ~ \" owl-carousel\" %}
{% endif %}
{% set multi_affichage = \"affichage1\" %}
{% if sous_categorie.multi_affichage == 1 %}
{% set multi_affichage = \"affichage1\" %}
{% elseif sous_categorie.multi_affichage == 2 %}
{% set multi_affichage = \"affichage2\" %}
{% elseif sous_categorie.multi_affichage == 3 %}
{% set multi_affichage = \"affichage3\" %}
{% elseif sous_categorie.multi_affichage == 4 %}
{% set multi_affichage = \"affichage4\" %}
{% elseif sous_categorie.multi_affichage == 5 %}
{% set multi_affichage = \"affichage5\" %}
{% elseif sous_categorie.multi_affichage == 6 %}
{% set multi_affichage = \"affichage6\" %}
{% elseif sous_categorie.multi_affichage == 7 %}
{% set multi_affichage = \"affichage7\" %}
{% elseif sous_categorie.multi_affichage == 8 %}
{% set multi_affichage = \"affichage8\" %}
{% elseif sous_categorie.multi_affichage == 9 %}
{% set multi_affichage = \"affichage9\" %}
{% elseif sous_categorie.multi_affichage == 10 %}
{% set multi_affichage = \"affichage10\" %}
{% elseif sous_categorie.multi_affichage == 11 %}
{% set multi_affichage = \"affichage11\" %}
{% elseif sous_categorie.multi_affichage == 12 %}
{% set multi_affichage = \"affichage12\" %}
{% endif %}
<div class=\"page_cms pt-5 page_product\">
<div class=\"breadcrumb-style-default\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
{% if breadcrumb is defined and breadcrumb is not empty %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/breadcrumb.html.twig')}}
<h1 class=\"page-title\">{{breadcrumb|last.name}}</h1>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class=\"container-fluid mt-3\">
<div class=\"row gx-5 py-2\">
{% if categories_tree is defined and categories_tree is not empty %}
<div class=\"col-lg-3 {{show_filter_categorie is defined and show_filter_categorie == true ?'':'d-none'}}\">
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/product/_sidebar.html.twig')}}
</div>
{% endif %}
<div class=\"col-lg-{{show_filter_categorie is defined and show_filter_categorie == true?'9':'12'}} bloc-content-sous-categorie {{sous_categorie.actif_haut == false and sous_categorie.textecategorie is not empty ? \"d-flex flex-column-reverse\"}}\">
{% if sous_categorie.textecategorie is not empty and sous_categorie.textecategorie != \"\" %}
<div class=\"list_blocs {{position_texte}}\">
<div class=\"col-lg-12 content_post\">
{{sous_categorie.textecategorie|raw}}
{% if sous_categorie.typelien != 1 %}
{% if sous_categorie.typelien == '4' %}
<div class=\"text-center py-2\">
<a href=\"tel:{{sous_categorie.telephone}}\" class=\"btn btn-back-pulse\">{{sous_categorie.titrelien}}</a>
</div>
{% elseif sous_categorie.typelien == '2' %}
<div class=\"text-center py-2\">
<a href=\"{{slug_link_interne(sous_categorie.lieninterne)}}\" class=\"btn btn-back-pulse\">{{sous_categorie.titrelien}}</a>
</div>
{% elseif sous_categorie.typelien == '3' %}
<div class=\"text-center py-2\">
<a href=\"{{sous_categorie.lienexterne}}\" class=\"btn btn-back-pulse\" target=\"_blank\">{{sous_categorie.titrelien}}</a>
</div>
{% endif %}
{% endif %}
</div>
</div>
{% endif %}
<div class=\"blocs\">
{% if template is defined and template is not empty %}
{{ include(template_from_string(template.twig)) }}
{% endif %}
{% if pagination == true and posts.hasToPaginate and posts.pageSize %}
<div class=\"pagination-items\">
{% set paginator = posts %}
<div class=\"navigation text-center\">
<ul class=\"pagination d-felx justify-content-center my-4\">
{% if paginator.hasPreviousPage %}
<li class=\"prev mx-1\"><a href=\"{{ path('page_sous_categorie', {categorie1:categorie.slugurl,categorie2:sous_categorie.slugurl}) }}?page={{paginator.previousPage}}\" rel=\"previous\"><i class=\"fa fw fa-long-arrow-left\"></i> {{ 'paginator.previous'|trans([],'variable') }}</a></li>
{% else %}
<li class=\"prev disabled mx-1\"><span><i class=\"fa fw fa-long-arrow-left\"></i> {{ 'paginator.previous'|trans([],'variable') }}</span></li>
{% endif %}
{% if paginator and paginator.pageSize %}
{% for i in 1..paginator.lastPage %}
{% if i == paginator.currentPage %}
<li class=\"active number mx-1\"><span>{{ i }} </span></li>
{% else %}
<li class=\"number mx-1\"><a href=\"{{ path('page_sous_categorie', {categorie1:categorie.slugurl,categorie2:sous_categorie.slugurl}) }}?page={{i}}\">{{ i }}</a></li>
{% endif %}
{% endfor %}
{% endif %}
{% if paginator and paginator.pageSize %}
{% if paginator.hasNextPage %}
<li class=\"next mx-1\"><a href=\"{{ path('page_sous_categorie', {categorie1:categorie.slugurl,categorie2:sous_categorie.slugurl}) }}?page={{paginator.nextPage}}\" rel=\"next\">{{ 'paginator.next'|trans([],'variable') }} <i class=\"fa fw fa-long-arrow-right\"></i></a></li>
{% else %}
<li class=\"next disabled mx-1\"><span>{{ 'paginator.next'|trans([],'variable')}} <i class=\"fa fw fa-long-arrow-right\"></i></span></li>
{% endif %}
{% endif %}
</ul>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% if galleries and galleries is not empty and template_model_gallerie is defined and template_model_gallerie is not empty %}
{{ include(template_from_string(template_model_gallerie)) }}
{% endif %}
{% if categorie.urlvideo is not empty %}
<div class=\"container-fluid wrapper mt-3\">
<div class=\"col-md-12 mt-1\">
<div class=\"video\">
{% set id_video_externe = categorie.urlvideo|split('?v=')[1] is defined ? categorie.urlvideo|split('?v=')[1] : null %}
<a class=\"video-thumbnail m-0\" href=\"{{categorie.urlvideo}}\" data-fancybox=\"video\">
<img src=\"https://img.youtube.com/vi/{{id_video_externe}}/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
</a>
</div>
</div>
</div>
{% endif %}
{% if blocs is defined %}
{% for bloc in blocs.Bloc %}
{% if is_mobile() and bloc.mobile == true %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% if is_full_view() and is_mobile() == false and bloc.desktop == true %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endblock %}
{% block javascripts %}
{{parent()}}
{% if modele_galerie[0].type == 4 %}
<script src=\"{{asset('templates/front/theme1/assets/plugins/flexslider/jquery.flexslider.js')}}\" ></script>
<script>
/*-------------------------------------------------*/
/* = Sx flexslider
/*-------------------------------------------------*/
if (\$(\".sx_flexslider\").length) {
\$('.flex-carousel').flexslider({
animation: \"slide\",
controlNav: false,
animationLoop: true,
slideshow: false,
itemWidth: 150,
asNavFor: '.flex-slider'
});
\$('.flex-slider').flexslider({
animation: \"slide\",
controlNav: false,
animationLoop: true,
slideshow: false,
sync: \".flex-carousel\"
});
}
</script>
{% endif %}
{% endblock %}
", "front/theme1/produits/page_sous_categorie.html.twig", "/var/www/vhosts/hrz.fr/oscar-multilangue.hrz.fr/templates/front/theme1/produits/page_sous_categorie.html.twig");
}
}