<?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;
/* Theme/Produit/Produit/Produit/acceuilproduit.html.twig */
class __TwigTemplate_6110a0dde3bbac975f04858799778caa3fa6759c48a724364754a5ec530cb969 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'meta' => [$this, 'block_meta'],
'title' => [$this, 'block_title'],
'userblog_body' => [$this, 'block_userblog_body'],
'srcjavascripttemplate' => [$this, 'block_srcjavascripttemplate'],
'javascripttemplate' => [$this, 'block_javascripttemplate'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Theme/Users/User/layoutuser.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Theme/Produit/Produit/Produit/acceuilproduit.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Theme/Produit/Produit/Produit/acceuilproduit.html.twig"));
$this->parent = $this->loadTemplate("Theme/Users/User/layoutuser.html.twig", "Theme/Produit/Produit/Produit/acceuilproduit.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_meta($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", "meta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
// line 4
echo "
\t";
// line 5
$this->displayParentBlock("meta", $context, $blocks);
echo "
\t
\t<meta name=\"keywords\" content=\"";
// line 7
echo twig_escape_filter($this->env, (isset($context["site"]) || array_key_exists("site", $context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.', 7, $this->source); })()), "html", null, true);
echo ", Catalogue, Produit,";
echo twig_escape_filter($this->env, (isset($context["keywords"]) || array_key_exists("keywords", $context) ? $context["keywords"] : (function () { throw new RuntimeError('Variable "keywords" does not exist.', 7, $this->source); })()), "html", null, true);
echo "\"/>
\t<meta name=\"author\" content=\"Noel Kenfack\"/>
\t<meta name=\"description\" content=\"";
// line 9
echo twig_escape_filter($this->env, (isset($context["site"]) || array_key_exists("site", $context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.', 9, $this->source); })()), "html", null, true);
echo " | Catalogue des produits\"/>
\t<link rel=\"stylesheet\" href=\"";
// line 10
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("autocomplete/css/jquery.auto-complete.css"), "html", null, true);
echo "\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 14
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 15
echo "
\t";
// line 16
$this->displayParentBlock("title", $context, $blocks);
echo " | Boutiques
\t
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 20
public function block_userblog_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", "userblog_body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "userblog_body"));
// line 21
echo "
<section style=\"padding: 15px 0px 5px 0px; background: #f7f7f7;\">
\t<div class=\"container\">
\t<div class=\"row\">
\t<div class=\"col-md-8\">
\t\t<ul class=\"breadcrumbs\">
\t\t <li><a href=\"";
// line 28
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_user_acces_plateforme");
echo "\"><i class=\"fa fa-home\" style=\"font-size: 11px;\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Accueil"), "html", null, true);
echo "</a></li>
\t\t <li><a href=\"";
// line 29
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("produit_produit_acceuil_sousdomaine_type_market_place");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Produits"), "html", null, true);
echo "</a></li>
\t\t ";
// line 30
if ((0 !== twig_compare((isset($context["souscategorie"]) || array_key_exists("souscategorie", $context) ? $context["souscategorie"] : (function () { throw new RuntimeError('Variable "souscategorie" does not exist.', 30, $this->source); })()), null))) {
// line 31
echo "\t\t <li>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["souscategorie"]) || array_key_exists("souscategorie", $context) ? $context["souscategorie"] : (function () { throw new RuntimeError('Variable "souscategorie" does not exist.', 31, $this->source); })()), "nom", [], "any", false, false, false, 31), "html", null, true);
echo "</li>
\t\t ";
} else {
// line 33
echo "\t\t <li>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tous les produits"), "html", null, true);
echo "</li>
\t\t ";
}
// line 35
echo "\t\t</ul>
\t</div>
\t<div class=\"col-md-4 text-right\">
\t\t";
// line 38
$this->loadTemplate("Theme/General/Template/Menu/contacts.html.twig", "Theme/Produit/Produit/Produit/acceuilproduit.html.twig", 38)->display($context);
// line 39
echo "\t</div>
\t</div>
\t</div>
</section>
\t
<div class=\"section-content\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-12\">
\t<div class=\"animecourant-panel\" style=\"display: block;\">
\t\t\t
\t</div>
</div>
</div>
<div class=\"row\">
\t
\t<div class=\"col-md-3\" style=\"padding: 3px;\">
\t\t<div class=\"toutleblock\">
\t\t\t<div style=\"padding: 7px 2px; box-shadow:0px 0px 2px rgba(0,0,0,0.01); background: #fff; border: 1px solid #ddd;\">
\t\t\t\t";
// line 60
$this->loadTemplate("Theme/General/Template/Menu/formfiltreproduit.html.twig", "Theme/Produit/Produit/Produit/acceuilproduit.html.twig", 60)->display($context);
// line 61
echo "\t\t\t</div>
\t\t\t
\t\t\t<div style=\"margin: 7px 0px 0px 0px; box-shadow:0px 0px 2px rgba(0,0,0,0.01); background: #fff;\">
\t\t\t<ul class=\"list-group\">
\t\t\t\t
\t\t\t\t";
// line 66
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Produit\\Produit\\CategorieController:menusouscategorie", ["taille" => 10]));
echo "
\t\t\t\t
\t\t\t </ul>
\t\t\t</div>
\t\t\t
\t\t\t<div style=\"margin: 7px 0px 0px 0px; box-shadow:0px 0px 2px rgba(0,0,0,0.01); background: #fff;\">
\t\t\t<ul class=\"list-group\">
\t\t\t\t
\t\t\t\t";
// line 74
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Produit\\Produit\\MarqueproduitController:menumarque", ["taille" => 10]));
echo "
\t\t\t\t
\t\t\t </ul>
\t\t\t</div>
\t\t\t <div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12 stop-courant-panel\">
\t\t\t </div>
\t\t</div>
\t</div>
\t
\t<div class=\"col-md-9\" style=\"padding: 3px;\">
\t\t
\t\t<div class=\"row\" style=\"margin: 0px\">
\t\t\t<div class=\"col-md-12\">
\t\t\t\t<h3 class=\"breadcrumbs-title\">
\t\t\t\t Liste des produits
\t\t\t\t</h3>
\t\t\t</div>
\t\t\t";
// line 93
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["liste_produit"]) || array_key_exists("liste_produit", $context) ? $context["liste_produit"] : (function () { throw new RuntimeError('Variable "liste_produit" does not exist.', 93, $this->source); })()));
$context['_iterated'] = false;
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["produit"]) {
// line 94
echo "\t\t\t\t<div class=\"col-md-4 col-sm-6 col-xs-12\">
\t\t\t\t";
// line 95
$this->loadTemplate("Theme/Produit/Produit/Produit/produitdescription.html.twig", "Theme/Produit/Produit/Produit/acceuilproduit.html.twig", 95)->display($context);
// line 96
echo "\t\t\t\t</div>
\t\t\t";
$context['_iterated'] = true;
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
if (!$context['_iterated']) {
// line 98
echo "\t\t\t\t<div class=\"col-md-12\">
\t\t\t\t\t<ul class=\"collapsible collapsible-accordion\" data-collapsible=\"accordion\" style=\"box-shadow: none;\">
\t\t\t\t\t\t<div style=\"height: 400px; border-left: 4px solid #3565ae; padding: 5px;\">
\t\t\t\t\t\t\t<div style=\"border-left: 5px solid #3565ae; padding: 3px; background: #f5f5f5; color: red;\">";
// line 101
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Aucune information disponible pour cette section"), "html", null, true);
echo "</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</ul>\t\t\t
\t\t\t\t</div>
\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['produit'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 106
echo "\t\t\t<div class=\"clearfix\"></div>
\t\t</div>
\t\t<div class=\"clearfix\"></div>
\t\t ";
// line 110
if ((1 === twig_compare((isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 110, $this->source); })()), 0))) {
// line 111
echo "\t\t\t\t\t\t
\t\t\t";
// line 112
if (((1 === twig_compare((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 112, $this->source); })()), 1)) && (0 >= twig_compare((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 112, $this->source); })()), (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 112, $this->source); })()))))) {
// line 113
echo "\t\t\t";
$context["pagepre"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 113, $this->source); })()) - 1);
// line 114
echo "\t\t\t";
} else {
// line 115
echo "\t\t\t\t";
$context["pagepre"] = (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 115, $this->source); })());
// line 116
echo "\t\t\t";
}
// line 117
echo "
\t\t\t";
// line 118
if ((-1 === twig_compare((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 118, $this->source); })()), (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 118, $this->source); })())))) {
// line 119
echo "\t\t\t\t";
$context["pagesuiv"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 119, $this->source); })()) + 1);
// line 120
echo "\t\t\t";
} else {
// line 121
echo "\t\t\t\t";
$context["pagesuiv"] = 1;
// line 122
echo "\t\t\t";
}
// line 123
echo "
\t\t\t";
// line 124
if ((-1 === twig_compare((isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 124, $this->source); })()), 5))) {
// line 125
echo "\t\t\t\t";
$context["debut"] = 1;
// line 126
echo "\t\t\t\t";
$context["fin"] = (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 126, $this->source); })());
// line 127
echo "\t\t\t";
} else {
// line 128
echo "\t\t\t\t";
if (((1 === twig_compare((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 128, $this->source); })()), 2)) && (-1 === twig_compare((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 128, $this->source); })()), ((isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 128, $this->source); })()) - 2))))) {
// line 129
echo "\t\t\t\t\t";
$context["debut"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 129, $this->source); })()) - 2);
// line 130
echo "\t\t\t\t\t";
if ((0 <= twig_compare(((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 130, $this->source); })()) + 2), (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 130, $this->source); })())))) {
// line 131
echo "\t\t\t\t\t\t";
$context["fin"] = (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 131, $this->source); })());
// line 132
echo "\t\t\t\t\t";
} else {
// line 133
echo "\t\t\t\t\t\t";
$context["fin"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 133, $this->source); })()) + 2);
// line 134
echo "\t\t\t\t\t";
}
// line 135
echo "\t\t\t\t";
} else {
// line 136
echo "\t\t\t\t\t";
if ((0 >= twig_compare((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 136, $this->source); })()), 2))) {
// line 137
echo "\t\t\t\t\t\t";
if ((0 === twig_compare((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 137, $this->source); })()), 1))) {
// line 138
echo "\t\t\t\t\t\t\t";
$context["debut"] = 1;
// line 139
echo "\t\t\t\t\t\t\t";
$context["fin"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 139, $this->source); })()) + 3);
// line 140
echo "\t\t\t\t\t\t";
} else {
// line 141
echo "\t\t\t\t\t\t\t";
$context["debut"] = 1;
// line 142
echo "\t\t\t\t\t\t\t";
$context["fin"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 142, $this->source); })()) + 2);
// line 143
echo "\t\t\t\t\t\t";
}
// line 144
echo "\t\t\t\t\t";
} else {
// line 145
echo "\t\t\t\t\t\t";
$context["debut"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 145, $this->source); })()) - 2);
// line 146
echo "\t\t\t\t\t\t";
if ((0 <= twig_compare(((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 146, $this->source); })()) + 2), (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 146, $this->source); })())))) {
// line 147
echo "\t\t\t\t\t\t\t";
$context["fin"] = (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 147, $this->source); })());
// line 148
echo "\t\t\t\t\t\t";
} else {
// line 149
echo "\t\t\t\t\t\t\t";
$context["fin"] = ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 149, $this->source); })()) + 2);
// line 150
echo "\t\t\t\t\t\t";
}
// line 151
echo "\t\t\t\t\t";
}
// line 152
echo "\t\t\t\t";
}
// line 153
echo "\t\t\t\t
\t\t\t";
}
// line 155
echo "\t\t\t
\t\t\t<div class=\"row\" style=\"margin: 15px 0px;\">
\t\t\t <div class=\"col-md-12\">
\t\t\t <div class=\"flex-container\" style=\"background: #fafafa; \">
\t\t\t\t <div class=\"paginate-ctn\">
\t\t\t\t\t<a href=\"";
// line 161
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("produit_produit_acceuil_sousdomaine_type_market_place", ["idscat" => (isset($context["idscat"]) || array_key_exists("idscat", $context) ? $context["idscat"] : (function () { throw new RuntimeError('Variable "idscat" does not exist.', 161, $this->source); })()), "idpays" => (isset($context["idpays"]) || array_key_exists("idpays", $context) ? $context["idpays"] : (function () { throw new RuntimeError('Variable "idpays" does not exist.', 161, $this->source); })()), "idmarque" => (isset($context["idmarque"]) || array_key_exists("idmarque", $context) ? $context["idmarque"] : (function () { throw new RuntimeError('Variable "idmarque" does not exist.', 161, $this->source); })()), "idtype" => (isset($context["idtype"]) || array_key_exists("idtype", $context) ? $context["idtype"] : (function () { throw new RuntimeError('Variable "idtype" does not exist.', 161, $this->source); })()), "idville" => (isset($context["idville"]) || array_key_exists("idville", $context) ? $context["idville"] : (function () { throw new RuntimeError('Variable "idville" does not exist.', 161, $this->source); })()), "page" => 1]), "html", null, true);
echo "\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-fast-backward\"></span> </a>
\t\t\t <a href=\"";
// line 162
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("produit_produit_acceuil_sousdomaine_type_market_place", ["idscat" => (isset($context["idscat"]) || array_key_exists("idscat", $context) ? $context["idscat"] : (function () { throw new RuntimeError('Variable "idscat" does not exist.', 162, $this->source); })()), "idpays" => (isset($context["idpays"]) || array_key_exists("idpays", $context) ? $context["idpays"] : (function () { throw new RuntimeError('Variable "idpays" does not exist.', 162, $this->source); })()), "idmarque" => (isset($context["idmarque"]) || array_key_exists("idmarque", $context) ? $context["idmarque"] : (function () { throw new RuntimeError('Variable "idmarque" does not exist.', 162, $this->source); })()), "idtype" => (isset($context["idtype"]) || array_key_exists("idtype", $context) ? $context["idtype"] : (function () { throw new RuntimeError('Variable "idtype" does not exist.', 162, $this->source); })()), "idville" => (isset($context["idville"]) || array_key_exists("idville", $context) ? $context["idville"] : (function () { throw new RuntimeError('Variable "idville" does not exist.', 162, $this->source); })()), "page" => (isset($context["pagepre"]) || array_key_exists("pagepre", $context) ? $context["pagepre"] : (function () { throw new RuntimeError('Variable "pagepre" does not exist.', 162, $this->source); })())]), "html", null, true);
echo "\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-step-backward\"></span> </a>
\t\t\t\t\t";
// line 163
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range((isset($context["debut"]) || array_key_exists("debut", $context) ? $context["debut"] : (function () { throw new RuntimeError('Variable "debut" does not exist.', 163, $this->source); })()), (isset($context["fin"]) || array_key_exists("fin", $context) ? $context["fin"] : (function () { throw new RuntimeError('Variable "fin" does not exist.', 163, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
// line 164
echo "\t\t\t\t\t\t<a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("produit_produit_acceuil_sousdomaine_type_market_place", ["idscat" => (isset($context["idscat"]) || array_key_exists("idscat", $context) ? $context["idscat"] : (function () { throw new RuntimeError('Variable "idscat" does not exist.', 164, $this->source); })()), "idpays" => (isset($context["idpays"]) || array_key_exists("idpays", $context) ? $context["idpays"] : (function () { throw new RuntimeError('Variable "idpays" does not exist.', 164, $this->source); })()), "idmarque" => (isset($context["idmarque"]) || array_key_exists("idmarque", $context) ? $context["idmarque"] : (function () { throw new RuntimeError('Variable "idmarque" does not exist.', 164, $this->source); })()), "idtype" => (isset($context["idtype"]) || array_key_exists("idtype", $context) ? $context["idtype"] : (function () { throw new RuntimeError('Variable "idtype" does not exist.', 164, $this->source); })()), "idville" => (isset($context["idville"]) || array_key_exists("idville", $context) ? $context["idville"] : (function () { throw new RuntimeError('Variable "idville" does not exist.', 164, $this->source); })()), "page" => $context["p"]]), "html", null, true);
echo "\" style=\"display: inline-block;\" class=\"round-effect ";
if ((0 === twig_compare($context["p"], (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 164, $this->source); })())))) {
echo "activepage";
}
echo "\">";
echo twig_escape_filter($this->env, $context["p"], "html", null, true);
echo "</a>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 166
echo "\t\t\t\t\t<a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("produit_produit_acceuil_sousdomaine_type_market_place", ["idscat" => (isset($context["idscat"]) || array_key_exists("idscat", $context) ? $context["idscat"] : (function () { throw new RuntimeError('Variable "idscat" does not exist.', 166, $this->source); })()), "idpays" => (isset($context["idpays"]) || array_key_exists("idpays", $context) ? $context["idpays"] : (function () { throw new RuntimeError('Variable "idpays" does not exist.', 166, $this->source); })()), "idmarque" => (isset($context["idmarque"]) || array_key_exists("idmarque", $context) ? $context["idmarque"] : (function () { throw new RuntimeError('Variable "idmarque" does not exist.', 166, $this->source); })()), "idtype" => (isset($context["idtype"]) || array_key_exists("idtype", $context) ? $context["idtype"] : (function () { throw new RuntimeError('Variable "idtype" does not exist.', 166, $this->source); })()), "idville" => (isset($context["idville"]) || array_key_exists("idville", $context) ? $context["idville"] : (function () { throw new RuntimeError('Variable "idville" does not exist.', 166, $this->source); })()), "page" => (isset($context["pagesuiv"]) || array_key_exists("pagesuiv", $context) ? $context["pagesuiv"] : (function () { throw new RuntimeError('Variable "pagesuiv" does not exist.', 166, $this->source); })())]), "html", null, true);
echo "\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-step-forward\"></span> </a>
\t\t\t <a href=\"";
// line 167
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("produit_produit_acceuil_sousdomaine_type_market_place", ["idscat" => (isset($context["idscat"]) || array_key_exists("idscat", $context) ? $context["idscat"] : (function () { throw new RuntimeError('Variable "idscat" does not exist.', 167, $this->source); })()), "idpays" => (isset($context["idpays"]) || array_key_exists("idpays", $context) ? $context["idpays"] : (function () { throw new RuntimeError('Variable "idpays" does not exist.', 167, $this->source); })()), "idmarque" => (isset($context["idmarque"]) || array_key_exists("idmarque", $context) ? $context["idmarque"] : (function () { throw new RuntimeError('Variable "idmarque" does not exist.', 167, $this->source); })()), "idtype" => (isset($context["idtype"]) || array_key_exists("idtype", $context) ? $context["idtype"] : (function () { throw new RuntimeError('Variable "idtype" does not exist.', 167, $this->source); })()), "idville" => (isset($context["idville"]) || array_key_exists("idville", $context) ? $context["idville"] : (function () { throw new RuntimeError('Variable "idville" does not exist.', 167, $this->source); })()), "page" => (isset($context["nombrepage"]) || array_key_exists("nombrepage", $context) ? $context["nombrepage"] : (function () { throw new RuntimeError('Variable "nombrepage" does not exist.', 167, $this->source); })())]), "html", null, true);
echo "\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-fast-forward\"></span> </a>
\t\t\t </div>
\t\t\t </div>
\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"clearfix\"></div>
\t\t\t";
} else {
// line 174
echo "
\t\t\t<div class=\"row\" style=\"margin: 15px 0px;\">
\t\t\t <div class=\"col-md-12\">
\t\t\t <div class=\"flex-container\" style=\"background: #fafafa; \">
\t\t\t\t <div class=\"paginate-ctn\">
\t\t\t\t
\t\t\t\t\t<a href=\"";
// line 180
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("produit_produit_acceuil_sousdomaine_type_market_place", ["idscat" => (isset($context["idscat"]) || array_key_exists("idscat", $context) ? $context["idscat"] : (function () { throw new RuntimeError('Variable "idscat" does not exist.', 180, $this->source); })()), "idpays" => (isset($context["idpays"]) || array_key_exists("idpays", $context) ? $context["idpays"] : (function () { throw new RuntimeError('Variable "idpays" does not exist.', 180, $this->source); })()), "idmarque" => (isset($context["idmarque"]) || array_key_exists("idmarque", $context) ? $context["idmarque"] : (function () { throw new RuntimeError('Variable "idmarque" does not exist.', 180, $this->source); })()), "idtype" => (isset($context["idtype"]) || array_key_exists("idtype", $context) ? $context["idtype"] : (function () { throw new RuntimeError('Variable "idtype" does not exist.', 180, $this->source); })()), "idville" => (isset($context["idville"]) || array_key_exists("idville", $context) ? $context["idville"] : (function () { throw new RuntimeError('Variable "idville" does not exist.', 180, $this->source); })()), "page" => (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 180, $this->source); })())]), "html", null, true);
echo "\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-fast-backward\"></span> </a>
\t\t\t\t\t<a href=\"";
// line 181
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("produit_produit_acceuil_sousdomaine_type_market_place", ["idscat" => (isset($context["idscat"]) || array_key_exists("idscat", $context) ? $context["idscat"] : (function () { throw new RuntimeError('Variable "idscat" does not exist.', 181, $this->source); })()), "idpays" => (isset($context["idpays"]) || array_key_exists("idpays", $context) ? $context["idpays"] : (function () { throw new RuntimeError('Variable "idpays" does not exist.', 181, $this->source); })()), "idmarque" => (isset($context["idmarque"]) || array_key_exists("idmarque", $context) ? $context["idmarque"] : (function () { throw new RuntimeError('Variable "idmarque" does not exist.', 181, $this->source); })()), "idtype" => (isset($context["idtype"]) || array_key_exists("idtype", $context) ? $context["idtype"] : (function () { throw new RuntimeError('Variable "idtype" does not exist.', 181, $this->source); })()), "idville" => (isset($context["idville"]) || array_key_exists("idville", $context) ? $context["idville"] : (function () { throw new RuntimeError('Variable "idville" does not exist.', 181, $this->source); })()), "page" => (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 181, $this->source); })())]), "html", null, true);
echo "\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-step-backward\"></span> </a>
\t\t\t\t\t\t<a href=\"";
// line 182
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("produit_produit_acceuil_sousdomaine_type_market_place", ["idscat" => (isset($context["idscat"]) || array_key_exists("idscat", $context) ? $context["idscat"] : (function () { throw new RuntimeError('Variable "idscat" does not exist.', 182, $this->source); })()), "idpays" => (isset($context["idpays"]) || array_key_exists("idpays", $context) ? $context["idpays"] : (function () { throw new RuntimeError('Variable "idpays" does not exist.', 182, $this->source); })()), "idmarque" => (isset($context["idmarque"]) || array_key_exists("idmarque", $context) ? $context["idmarque"] : (function () { throw new RuntimeError('Variable "idmarque" does not exist.', 182, $this->source); })()), "idtype" => (isset($context["idtype"]) || array_key_exists("idtype", $context) ? $context["idtype"] : (function () { throw new RuntimeError('Variable "idtype" does not exist.', 182, $this->source); })()), "idville" => (isset($context["idville"]) || array_key_exists("idville", $context) ? $context["idville"] : (function () { throw new RuntimeError('Variable "idville" does not exist.', 182, $this->source); })()), "page" => 1]), "html", null, true);
echo "\" style=\"display: inline-block;\" class=\"round-effect activepage\">1</a>
\t\t\t\t\t<a href=\"";
// line 183
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("produit_produit_acceuil_sousdomaine_type_market_place", ["idscat" => (isset($context["idscat"]) || array_key_exists("idscat", $context) ? $context["idscat"] : (function () { throw new RuntimeError('Variable "idscat" does not exist.', 183, $this->source); })()), "idpays" => (isset($context["idpays"]) || array_key_exists("idpays", $context) ? $context["idpays"] : (function () { throw new RuntimeError('Variable "idpays" does not exist.', 183, $this->source); })()), "idmarque" => (isset($context["idmarque"]) || array_key_exists("idmarque", $context) ? $context["idmarque"] : (function () { throw new RuntimeError('Variable "idmarque" does not exist.', 183, $this->source); })()), "idtype" => (isset($context["idtype"]) || array_key_exists("idtype", $context) ? $context["idtype"] : (function () { throw new RuntimeError('Variable "idtype" does not exist.', 183, $this->source); })()), "idville" => (isset($context["idville"]) || array_key_exists("idville", $context) ? $context["idville"] : (function () { throw new RuntimeError('Variable "idville" does not exist.', 183, $this->source); })()), "page" => (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 183, $this->source); })())]), "html", null, true);
echo "\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-step-forward\"></span> </a>
\t\t\t\t\t<a href=\"";
// line 184
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("produit_produit_acceuil_sousdomaine_type_market_place", ["idscat" => (isset($context["idscat"]) || array_key_exists("idscat", $context) ? $context["idscat"] : (function () { throw new RuntimeError('Variable "idscat" does not exist.', 184, $this->source); })()), "idpays" => (isset($context["idpays"]) || array_key_exists("idpays", $context) ? $context["idpays"] : (function () { throw new RuntimeError('Variable "idpays" does not exist.', 184, $this->source); })()), "idmarque" => (isset($context["idmarque"]) || array_key_exists("idmarque", $context) ? $context["idmarque"] : (function () { throw new RuntimeError('Variable "idmarque" does not exist.', 184, $this->source); })()), "idtype" => (isset($context["idtype"]) || array_key_exists("idtype", $context) ? $context["idtype"] : (function () { throw new RuntimeError('Variable "idtype" does not exist.', 184, $this->source); })()), "idville" => (isset($context["idville"]) || array_key_exists("idville", $context) ? $context["idville"] : (function () { throw new RuntimeError('Variable "idville" does not exist.', 184, $this->source); })()), "page" => (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 184, $this->source); })())]), "html", null, true);
echo "\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-fast-forward\"></span> </a>
\t\t\t </div>
\t\t\t </div>
\t\t </div>
\t\t\t</div>
\t\t\t<div class=\"clearfix\"></div>
\t\t\t";
}
// line 193
echo "\t</div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 201
public function block_srcjavascripttemplate($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", "srcjavascripttemplate"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "srcjavascripttemplate"));
// line 202
echo "<script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("template/js/onvisible.js"), "html", null, true);
echo "\" type=\"text/javascript\"></script>
<script src=\"";
// line 203
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("autocomplete/js/jquery.auto-complete.js"), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 206
public function block_javascripttemplate($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", "javascripttemplate"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripttemplate"));
// line 207
echo "
var bouge = 1;
var dimension = 200;
function activateelement()
{
var visibility = visibleElement('.animecourant-panel');
if(visibility && bouge == 0){
\tbouge = 1;
\t\$('.toutleblock').css('position','relative');
\t\$('.toutleblock').css('bottom','0px');
\t\$('.toutleblock').css('margin-bottom','0px');
}
}
function stopelement()
{
var visibility = visibleElement('.stop-courant-panel');
if(visibility && bouge == 1){
\tif(visibleElement('.animecourant-panel') && visibleElement('.stop-courant-panel'))
\t{
\t}else{
\tbouge = 0;
\t\$('.toutleblock').css('position','fixed');
\t\$('.toutleblock').css('width',dimension+'px');
\t\$('.toutleblock').css('bottom','7px');
\t\$('.toutleblock').css('margin-bottom','0px');
\t}
}
}
function controlScroll()
{
\tvar largeur = (\$(window).width());
\tdimension = \$('.toutleblock').width();
\tif (largeur >= 768)
\t{
\t\tif(visibleElement('.animecourant-panel') && visibleElement('.stop-courant-panel'))
\t\t{
\t\t\$('.toutleblock').css('position','fixed');
\t\t\$('.toutleblock').css('width',dimension+'px');
\t\t}else{
\t\twindow.setInterval(function() { stopelement(); }, 100);
\t\twindow.setInterval(function() { activateelement(); }, 100);
\t\t}
\t\t
\t}
}
controlScroll();
var jsonresult = ";
// line 259
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Produit\\Service\\VilleController:autorechercheville", ["taille" => 500]));
echo ";
var j = 0;
var departchoices = [];
for(var n in jsonresult){
\tnom = jsonresult[n].nom;
\tdrapeau = jsonresult[n].drapeau;
\tid = jsonresult[n].id;
\tnum = nom+\":\"+drapeau;
\tcourantelem = [nom,drapeau,id];
\tdepartchoices[j] = courantelem;
\tj++;
}
\$('#departement_etab').autoComplete({
minChars: 0,
source: function(term, suggest){
term = term.toLowerCase();
var suggestions = [];
for (i=0;i< departchoices.length;i++)
if (~(departchoices[i][0]+' '+departchoices[i][1]).toLowerCase().indexOf(term)) suggestions.push(departchoices[i]);
suggest(suggestions);
},
renderItem: function (item, search){
search = search.replace(/[-\\/\\\\^\$*+?.()|[\\]{}]/g, '\\\\\$&');
var re = new RegExp(\"(\" + search.split(' ').join('|') + \")\", \"gi\");
return '<div class=\"autocomplete-suggestion\" data-langname=\"'+item[0]+'\" data-lang=\"'+item[1]+'\" data-id=\"'+item[2]+'\" data-val=\"'+search+'\" data-img=\"'+item[1]+'\"><img src=\"";
// line 284
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(""), "html", null, true);
echo "'+item[1]+'\" style=\"width: 30px; height: 20px; padding: 2px; margin-bottom: -5px!important;\"> '+item[0].replace(re, \"<b>\$1</b>\")+'</div>';
},
onSelect: function(e, term, item){
\t\t\$('#departement_etab').val(item.data(\"langname\"));
},
\tcache: false
});
\$(\"#departement_etab\").focus(function(){
\trechercheutilisateur();
});
function rechercheutilisateur()
{
\tif(\$('#departement_etab').val().length >= 2)// on vérifier si l'utilisateur a entré plus de 5 caractères
\t{
\t var libre = \$('.zone-recherche-quartier').attr('value'); // on initialise la variable libre
\t var donnee = \$('#departement_etab').val(); //on récupère la donnée
\t if (libre == 0 && donnee != \$('.zone-recherche-quartier').attr('name')){ // on vérifier si la requête précedente est rétournée et que la recherche ne corespnd pas à la dernière effectuée
\t \$('.zone-recherche-quartier').attr('value',1); // on bloque d'autres recherches
\t \$('.zone-recherche-quartier').attr('name',donnee); // on enregistre la recherche effectuer.
\t
\t \$.ajax({
\t\t\turl : '";
// line 307
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("produit_service_auto_recherche_ville");
echo "',
\t\t\tdata : 'donnee='+donnee+'',
\t\t\ttype : 'POST',
\t\t\tdataType : 'json',
\t\t\tsuccess : function(data, statut){
\t\t\t\t
\t\t\t\t\$('.zone-recherche-quartier').attr('value',0); // on libère d'autre recherches
\t\t\t\tcompt = departchoices.length;
\t\t\t\tjsonresulta = data;
\t\t\t\t
\t\t\t\t
\t\t\t\tfor(var n in jsonresulta){
\t\t\t\t\tnom = jsonresulta[n].nom;
\t\t\t\t\tdrapeau = jsonresulta[n].drapeau;
\t\t\t\t\tid = jsonresulta[n].id;
\t\t\t\t\tnum = nom+\":\"+drapeau;
\t\t\t\t\tcourantelem = [nom,drapeau,id];
\t\t\t\t\tdepartchoices[compt] = courantelem;
\t\t\t\t\tcompt++;
\t\t\t\t}
\t\t\t setTimeout(function(){ rechercheutilisateur(); }, 100); // on relance la fonction après 200 ms.
\t\t\t
\t\t\t}
\t\t});
\t }else{
\t\tsetTimeout(function() { rechercheutilisateur(); }, 100);
\t }
\t}else{
\t\tsetTimeout(function() { rechercheutilisateur(); }, 100);
\t}
}
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Theme/Produit/Produit/Produit/acceuilproduit.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 682 => 307, 656 => 284, 628 => 259, 574 => 207, 564 => 206, 552 => 203, 547 => 202, 537 => 201, 521 => 193, 509 => 184, 505 => 183, 501 => 182, 497 => 181, 493 => 180, 485 => 174, 475 => 167, 470 => 166, 455 => 164, 451 => 163, 447 => 162, 443 => 161, 435 => 155, 431 => 153, 428 => 152, 425 => 151, 422 => 150, 419 => 149, 416 => 148, 413 => 147, 410 => 146, 407 => 145, 404 => 144, 401 => 143, 398 => 142, 395 => 141, 392 => 140, 389 => 139, 386 => 138, 383 => 137, 380 => 136, 377 => 135, 374 => 134, 371 => 133, 368 => 132, 365 => 131, 362 => 130, 359 => 129, 356 => 128, 353 => 127, 350 => 126, 347 => 125, 345 => 124, 342 => 123, 339 => 122, 336 => 121, 333 => 120, 330 => 119, 328 => 118, 325 => 117, 322 => 116, 319 => 115, 316 => 114, 313 => 113, 311 => 112, 308 => 111, 306 => 110, 300 => 106, 289 => 101, 284 => 98, 270 => 96, 268 => 95, 265 => 94, 247 => 93, 225 => 74, 214 => 66, 207 => 61, 205 => 60, 182 => 39, 180 => 38, 175 => 35, 169 => 33, 163 => 31, 161 => 30, 155 => 29, 149 => 28, 140 => 21, 130 => 20, 117 => 16, 114 => 15, 104 => 14, 91 => 10, 87 => 9, 80 => 7, 75 => 5, 72 => 4, 62 => 3, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"Theme/Users/User/layoutuser.html.twig\" %}
{% block meta %}
\t{{ parent() }}
\t
\t<meta name=\"keywords\" content=\"{{ site }}, Catalogue, Produit,{{ keywords }}\"/>
\t<meta name=\"author\" content=\"Noel Kenfack\"/>
\t<meta name=\"description\" content=\"{{ site }} | Catalogue des produits\"/>
\t<link rel=\"stylesheet\" href=\"{{ asset('autocomplete/css/jquery.auto-complete.css') }}\"/>
{% endblock %}
{% block title %}
\t{{ parent() }} | Boutiques
\t
{% endblock %}
{% block userblog_body %}
<section style=\"padding: 15px 0px 5px 0px; background: #f7f7f7;\">
\t<div class=\"container\">
\t<div class=\"row\">
\t<div class=\"col-md-8\">
\t\t<ul class=\"breadcrumbs\">
\t\t <li><a href=\"{{ path('users_user_acces_plateforme') }}\"><i class=\"fa fa-home\" style=\"font-size: 11px;\"></i> {{ 'Accueil'|trans }}</a></li>
\t\t <li><a href=\"{{ path('produit_produit_acceuil_sousdomaine_type_market_place') }}\">{{ 'Produits'|trans }}</a></li>
\t\t {% if souscategorie != null %}
\t\t <li>{{ souscategorie.nom }}</li>
\t\t {% else %}
\t\t <li>{{ 'Tous les produits'|trans }}</li>
\t\t {% endif %}
\t\t</ul>
\t</div>
\t<div class=\"col-md-4 text-right\">
\t\t{% include \"Theme/General/Template/Menu/contacts.html.twig\" %}
\t</div>
\t</div>
\t</div>
</section>
\t
<div class=\"section-content\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-12\">
\t<div class=\"animecourant-panel\" style=\"display: block;\">
\t\t\t
\t</div>
</div>
</div>
<div class=\"row\">
\t
\t<div class=\"col-md-3\" style=\"padding: 3px;\">
\t\t<div class=\"toutleblock\">
\t\t\t<div style=\"padding: 7px 2px; box-shadow:0px 0px 2px rgba(0,0,0,0.01); background: #fff; border: 1px solid #ddd;\">
\t\t\t\t{% include 'Theme/General/Template/Menu/formfiltreproduit.html.twig' %}
\t\t\t</div>
\t\t\t
\t\t\t<div style=\"margin: 7px 0px 0px 0px; box-shadow:0px 0px 2px rgba(0,0,0,0.01); background: #fff;\">
\t\t\t<ul class=\"list-group\">
\t\t\t\t
\t\t\t\t{{ render(controller(\"App\\\\Controller\\\\Produit\\\\Produit\\\\CategorieController:menusouscategorie\", {'taille': 10})) }}
\t\t\t\t
\t\t\t </ul>
\t\t\t</div>
\t\t\t
\t\t\t<div style=\"margin: 7px 0px 0px 0px; box-shadow:0px 0px 2px rgba(0,0,0,0.01); background: #fff;\">
\t\t\t<ul class=\"list-group\">
\t\t\t\t
\t\t\t\t{{ render(controller(\"App\\\\Controller\\\\Produit\\\\Produit\\\\MarqueproduitController:menumarque\", {'taille': 10})) }}
\t\t\t\t
\t\t\t </ul>
\t\t\t</div>
\t\t\t <div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12 stop-courant-panel\">
\t\t\t </div>
\t\t</div>
\t</div>
\t
\t<div class=\"col-md-9\" style=\"padding: 3px;\">
\t\t
\t\t<div class=\"row\" style=\"margin: 0px\">
\t\t\t<div class=\"col-md-12\">
\t\t\t\t<h3 class=\"breadcrumbs-title\">
\t\t\t\t Liste des produits
\t\t\t\t</h3>
\t\t\t</div>
\t\t\t{% for produit in liste_produit %}
\t\t\t\t<div class=\"col-md-4 col-sm-6 col-xs-12\">
\t\t\t\t{% include 'Theme/Produit/Produit/Produit/produitdescription.html.twig' %}
\t\t\t\t</div>
\t\t\t{% else %}
\t\t\t\t<div class=\"col-md-12\">
\t\t\t\t\t<ul class=\"collapsible collapsible-accordion\" data-collapsible=\"accordion\" style=\"box-shadow: none;\">
\t\t\t\t\t\t<div style=\"height: 400px; border-left: 4px solid #3565ae; padding: 5px;\">
\t\t\t\t\t\t\t<div style=\"border-left: 5px solid #3565ae; padding: 3px; background: #f5f5f5; color: red;\">{{ 'Aucune information disponible pour cette section'|trans }}</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</ul>\t\t\t
\t\t\t\t</div>
\t\t\t{% endfor %}
\t\t\t<div class=\"clearfix\"></div>
\t\t</div>
\t\t<div class=\"clearfix\"></div>
\t\t {% if nombrepage > 0 %}
\t\t\t\t\t\t
\t\t\t{% if page > 1 and page <= nombrepage %}
\t\t\t{% set pagepre = page - 1 %}
\t\t\t{% else %}
\t\t\t\t{% set pagepre = nombrepage %}
\t\t\t{% endif %}
\t\t\t{% if page < nombrepage %}
\t\t\t\t{% set pagesuiv = page + 1 %}
\t\t\t{% else %}
\t\t\t\t{% set pagesuiv = 1 %}
\t\t\t{% endif %}
\t\t\t{% if nombrepage < 5 %}
\t\t\t\t{% set debut = 1 %}
\t\t\t\t{% set fin = nombrepage %}
\t\t\t{% else %}
\t\t\t\t{% if page > 2 and page < (nombrepage - 2) %}
\t\t\t\t\t{% set debut = page - 2 %}
\t\t\t\t\t{% if page + 2 >= nombrepage %}
\t\t\t\t\t\t{% set fin = nombrepage %}
\t\t\t\t\t{% else %}
\t\t\t\t\t\t{% set fin = page + 2 %}
\t\t\t\t\t{% endif %}
\t\t\t\t{% else %}
\t\t\t\t\t{% if page <= 2 %}
\t\t\t\t\t\t{% if page == 1 %}
\t\t\t\t\t\t\t{% set debut = 1 %}
\t\t\t\t\t\t\t{% set fin = page + 3 %}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t{% set debut = 1 %}
\t\t\t\t\t\t\t{% set fin = page + 2 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% else %}
\t\t\t\t\t\t{% set debut = page - 2 %}
\t\t\t\t\t\t{% if page + 2 >= nombrepage %}
\t\t\t\t\t\t\t{% set fin = nombrepage %}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t{% set fin = page + 2 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endif %}
\t\t\t\t{% endif %}
\t\t\t\t
\t\t\t{% endif %}
\t\t\t
\t\t\t<div class=\"row\" style=\"margin: 15px 0px;\">
\t\t\t <div class=\"col-md-12\">
\t\t\t <div class=\"flex-container\" style=\"background: #fafafa; \">
\t\t\t\t <div class=\"paginate-ctn\">
\t\t\t\t\t<a href=\"{{ path('produit_produit_acceuil_sousdomaine_type_market_place', {'idscat': idscat,'idpays': idpays,'idmarque': idmarque,'idtype': idtype,'idville': idville, 'page': 1 }) }}\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-fast-backward\"></span> </a>
\t\t\t <a href=\"{{ path('produit_produit_acceuil_sousdomaine_type_market_place', {'idscat': idscat,'idpays': idpays, 'idmarque': idmarque,'idtype': idtype, 'idville': idville,'page': pagepre }) }}\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-step-backward\"></span> </a>
\t\t\t\t\t{% for p in debut..fin %}
\t\t\t\t\t\t<a href=\"{{ path('produit_produit_acceuil_sousdomaine_type_market_place', {'idscat': idscat,'idpays': idpays,'idmarque': idmarque,'idtype': idtype, 'idville': idville, 'page': p }) }}\" style=\"display: inline-block;\" class=\"round-effect {% if p == page %}activepage{% endif %}\">{{ p }}</a>
\t\t\t\t\t{% endfor %}
\t\t\t\t\t<a href=\"{{ path('produit_produit_acceuil_sousdomaine_type_market_place', {'idscat': idscat,'idpays': idpays,'idmarque': idmarque,'idtype': idtype, 'idville': idville, 'page': pagesuiv }) }}\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-step-forward\"></span> </a>
\t\t\t <a href=\"{{ path('produit_produit_acceuil_sousdomaine_type_market_place', {'idscat': idscat,'idpays': idpays, 'idmarque': idmarque,'idtype': idtype, 'idville': idville, 'page': nombrepage }) }}\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-fast-forward\"></span> </a>
\t\t\t </div>
\t\t\t </div>
\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"clearfix\"></div>
\t\t\t{% else %}
\t\t\t<div class=\"row\" style=\"margin: 15px 0px;\">
\t\t\t <div class=\"col-md-12\">
\t\t\t <div class=\"flex-container\" style=\"background: #fafafa; \">
\t\t\t\t <div class=\"paginate-ctn\">
\t\t\t\t
\t\t\t\t\t<a href=\"{{ path('produit_produit_acceuil_sousdomaine_type_market_place', {'idscat': idscat,'idpays': idpays,'idmarque': idmarque,'idtype': idtype, 'idville': idville, 'page': page }) }}\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-fast-backward\"></span> </a>
\t\t\t\t\t<a href=\"{{ path('produit_produit_acceuil_sousdomaine_type_market_place', {'idscat': idscat,'idpays': idpays,'idmarque': idmarque,'idtype': idtype, 'idville': idville, 'page': page }) }}\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-step-backward\"></span> </a>
\t\t\t\t\t\t<a href=\"{{ path('produit_produit_acceuil_sousdomaine_type_market_place', {'idscat': idscat,'idpays': idpays,'idmarque': idmarque,'idtype': idtype, 'idville': idville, 'page': 1 }) }}\" style=\"display: inline-block;\" class=\"round-effect activepage\">1</a>
\t\t\t\t\t<a href=\"{{ path('produit_produit_acceuil_sousdomaine_type_market_place', {'idscat': idscat,'idpays': idpays,'idmarque': idmarque,'idtype': idtype, 'idville': idville, 'page': page }) }}\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-step-forward\"></span> </a>
\t\t\t\t\t<a href=\"{{ path('produit_produit_acceuil_sousdomaine_type_market_place', {'idscat': idscat,'idpays': idpays,'idmarque': idmarque,'idtype': idtype, 'idville': idville, 'page': page }) }}\" style=\"display: inline-block;\" class=\"round-effect\"> <span class=\"fa fa-fast-forward\"></span> </a>
\t\t\t </div>
\t\t\t </div>
\t\t </div>
\t\t\t</div>
\t\t\t<div class=\"clearfix\"></div>
\t\t\t{% endif %}
\t</div>
</div>
</div>
</div>
{% endblock %}
{% block srcjavascripttemplate %}
<script src=\"{{ asset('template/js/onvisible.js') }}\" type=\"text/javascript\"></script>
<script src=\"{{ asset('autocomplete/js/jquery.auto-complete.js') }}\"></script>
{% endblock %}
{% block javascripttemplate %}
var bouge = 1;
var dimension = 200;
function activateelement()
{
var visibility = visibleElement('.animecourant-panel');
if(visibility && bouge == 0){
\tbouge = 1;
\t\$('.toutleblock').css('position','relative');
\t\$('.toutleblock').css('bottom','0px');
\t\$('.toutleblock').css('margin-bottom','0px');
}
}
function stopelement()
{
var visibility = visibleElement('.stop-courant-panel');
if(visibility && bouge == 1){
\tif(visibleElement('.animecourant-panel') && visibleElement('.stop-courant-panel'))
\t{
\t}else{
\tbouge = 0;
\t\$('.toutleblock').css('position','fixed');
\t\$('.toutleblock').css('width',dimension+'px');
\t\$('.toutleblock').css('bottom','7px');
\t\$('.toutleblock').css('margin-bottom','0px');
\t}
}
}
function controlScroll()
{
\tvar largeur = (\$(window).width());
\tdimension = \$('.toutleblock').width();
\tif (largeur >= 768)
\t{
\t\tif(visibleElement('.animecourant-panel') && visibleElement('.stop-courant-panel'))
\t\t{
\t\t\$('.toutleblock').css('position','fixed');
\t\t\$('.toutleblock').css('width',dimension+'px');
\t\t}else{
\t\twindow.setInterval(function() { stopelement(); }, 100);
\t\twindow.setInterval(function() { activateelement(); }, 100);
\t\t}
\t\t
\t}
}
controlScroll();
var jsonresult = {{ render(controller(\"App\\\\Controller\\\\Produit\\\\Service\\\\VilleController:autorechercheville\", {'taille': 500})) }};
var j = 0;
var departchoices = [];
for(var n in jsonresult){
\tnom = jsonresult[n].nom;
\tdrapeau = jsonresult[n].drapeau;
\tid = jsonresult[n].id;
\tnum = nom+\":\"+drapeau;
\tcourantelem = [nom,drapeau,id];
\tdepartchoices[j] = courantelem;
\tj++;
}
\$('#departement_etab').autoComplete({
minChars: 0,
source: function(term, suggest){
term = term.toLowerCase();
var suggestions = [];
for (i=0;i< departchoices.length;i++)
if (~(departchoices[i][0]+' '+departchoices[i][1]).toLowerCase().indexOf(term)) suggestions.push(departchoices[i]);
suggest(suggestions);
},
renderItem: function (item, search){
search = search.replace(/[-\\/\\\\^\$*+?.()|[\\]{}]/g, '\\\\\$&');
var re = new RegExp(\"(\" + search.split(' ').join('|') + \")\", \"gi\");
return '<div class=\"autocomplete-suggestion\" data-langname=\"'+item[0]+'\" data-lang=\"'+item[1]+'\" data-id=\"'+item[2]+'\" data-val=\"'+search+'\" data-img=\"'+item[1]+'\"><img src=\"{{ asset('') }}'+item[1]+'\" style=\"width: 30px; height: 20px; padding: 2px; margin-bottom: -5px!important;\"> '+item[0].replace(re, \"<b>\$1</b>\")+'</div>';
},
onSelect: function(e, term, item){
\t\t\$('#departement_etab').val(item.data(\"langname\"));
},
\tcache: false
});
\$(\"#departement_etab\").focus(function(){
\trechercheutilisateur();
});
function rechercheutilisateur()
{
\tif(\$('#departement_etab').val().length >= 2)// on vérifier si l'utilisateur a entré plus de 5 caractères
\t{
\t var libre = \$('.zone-recherche-quartier').attr('value'); // on initialise la variable libre
\t var donnee = \$('#departement_etab').val(); //on récupère la donnée
\t if (libre == 0 && donnee != \$('.zone-recherche-quartier').attr('name')){ // on vérifier si la requête précedente est rétournée et que la recherche ne corespnd pas à la dernière effectuée
\t \$('.zone-recherche-quartier').attr('value',1); // on bloque d'autres recherches
\t \$('.zone-recherche-quartier').attr('name',donnee); // on enregistre la recherche effectuer.
\t
\t \$.ajax({
\t\t\turl : '{{ path('produit_service_auto_recherche_ville') }}',
\t\t\tdata : 'donnee='+donnee+'',
\t\t\ttype : 'POST',
\t\t\tdataType : 'json',
\t\t\tsuccess : function(data, statut){
\t\t\t\t
\t\t\t\t\$('.zone-recherche-quartier').attr('value',0); // on libère d'autre recherches
\t\t\t\tcompt = departchoices.length;
\t\t\t\tjsonresulta = data;
\t\t\t\t
\t\t\t\t
\t\t\t\tfor(var n in jsonresulta){
\t\t\t\t\tnom = jsonresulta[n].nom;
\t\t\t\t\tdrapeau = jsonresulta[n].drapeau;
\t\t\t\t\tid = jsonresulta[n].id;
\t\t\t\t\tnum = nom+\":\"+drapeau;
\t\t\t\t\tcourantelem = [nom,drapeau,id];
\t\t\t\t\tdepartchoices[compt] = courantelem;
\t\t\t\t\tcompt++;
\t\t\t\t}
\t\t\t setTimeout(function(){ rechercheutilisateur(); }, 100); // on relance la fonction après 200 ms.
\t\t\t
\t\t\t}
\t\t});
\t }else{
\t\tsetTimeout(function() { rechercheutilisateur(); }, 100);
\t }
\t}else{
\t\tsetTimeout(function() { rechercheutilisateur(); }, 100);
\t}
}
{% endblock %}", "Theme/Produit/Produit/Produit/acceuilproduit.html.twig", "/home/afhunt/domains/mbill.afhunt.com/public_html/market/templates/Theme/Produit/Produit/Produit/acceuilproduit.html.twig");
}
}