<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front/article/list.html.twig */
class __TwigTemplate_f0338c38f1a2619bd286a0f935031d15cd4397a9bc6c68fafc90aa5ac7db5b33 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'meta' => [$this, 'block_meta'],
'body' => [$this, 'block_body'],
'javascript' => [$this, 'block_javascript'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base_front.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", "front/article/list.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/article/list.html.twig"));
$this->parent = $this->loadTemplate("base_front.html.twig", "front/article/list.html.twig", 1);
yield from $this->parent->unwrap()->yield($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
yield " <title>Les produits disponibles pour votre mariage</title>
<meta name=\"description\" content=\"Les produits disponibles. Actuellement, ";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["countProducts"]) || array_key_exists("countProducts", $context) ? $context["countProducts"] : (function () { throw new RuntimeError('Variable "countProducts" does not exist.', 5, $this->source); })()), "html", null, true);
yield " produits disponibles.\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 8
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 9
yield " <div class=\"page-header\" style=\"
";
// line 10
if (((array_key_exists("categoryBackground", $context) && !(null === (isset($context["categoryBackground"]) || array_key_exists("categoryBackground", $context) ? $context["categoryBackground"] : (function () { throw new RuntimeError('Variable "categoryBackground" does not exist.', 10, $this->source); })()))) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["categoryBackground"]) || array_key_exists("categoryBackground", $context) ? $context["categoryBackground"] : (function () { throw new RuntimeError('Variable "categoryBackground" does not exist.', 10, $this->source); })()), "image", [], "any", false, false, false, 10)))) {
// line 11
yield " background: url(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((Twig\Extension\CoreExtension::constant("App\\Services\\File::IMAGE_CATEGORY_DIR") . CoreExtension::getAttribute($this->env, $this->source, (isset($context["categoryBackground"]) || array_key_exists("categoryBackground", $context) ? $context["categoryBackground"] : (function () { throw new RuntimeError('Variable "categoryBackground" does not exist.', 11, $this->source); })()), "image", [], "any", false, false, false, 11))), "html", null, true);
yield ")
";
} else {
// line 13
yield " background: url(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/vacance_article.jpg"), "html", null, true);
yield ")
";
}
// line 15
yield " no-repeat center;background-size: cover\">
<div class=\"container\">
<div class=\"row\">
<!-- page caption -->
<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 \">
<div class=\"page-caption\">
<h1 class=\"page-title\">Articles</h1>
</div>
</div>
<!-- /.page caption -->
</div>
</div>
<!-- page caption -->
<div class=\"page-breadcrumb\">
<div class=\"container\">
<div class=\"row\">
<nav aria-label=\"breadcrumb\">
<ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 33
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_home");
yield "\" class=\"breadcrumb-link\">Accueil</a></li>
<li class=\"breadcrumb-item active text-white\" aria-current=\"page\">Recherche ";
// line 34
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "session", [], "any", false, false, false, 34), "get", ["categoryName"], "method", false, false, false, 34)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "session", [], "any", false, false, false, 34), "get", ["categoryName"], "method", false, false, false, 34), "html", null, true);
}
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "session", [], "any", false, false, false, 34), "get", ["departmentName"], "method", false, false, false, 34)) {
yield "- ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "session", [], "any", false, false, false, 34), "get", ["departmentName"], "method", false, false, false, 34), "html", null, true);
}
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "session", [], "any", false, false, false, 34), "get", ["weddingdate"], "method", false, false, false, 34)) {
yield "- ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "session", [], "any", false, false, false, 34), "get", ["weddingdate"], "method", false, false, false, 34), "html", null, true);
}
yield "</li>
</ol>
</nav>
</div>
</div>
</div>
<!-- page breadcrumb -->
</div>
<!-- /.page-header -->
<!-- vendor-section -->
<div class=\"content\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-xl-8 col-lg-8 col-md-7 col-sm-12 col-12\">
<div class=\"row\">
\t\t\t\t\t\t";
// line 50
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 50, $this->source); })()));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 51
yield "\t\t\t\t\t\t\t<div class=\"col-lg-6 col-sm-12 col-12\">
\t\t\t\t\t\t\t\t<div class=\"container-block-Pcompanies mb-3\">
\t\t\t\t\t\t\t\t\t<div class=\"container-imageP zoomimg\">
\t\t\t\t\t\t\t\t\t\t";
// line 54
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "photos", [], "any", false, false, false, 54))) {
// line 55
yield "\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((Twig\Extension\CoreExtension::constant("App\\Services\\File::IMAGE_PRODUCT_DIR") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "photos", [], "any", false, false, false, 55), "first", [], "any", false, false, false, 55), "url", [], "any", false, false, false, 55))), "html", null, true);
yield "\" alt=\"default image\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
\t\t\t\t\t\t\t\t\t\t";
} else {
// line 57
yield "\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/vecteezy_vector-gear-logo-design-with-multi-colors-range_6172776.jpg"), "html", null, true);
yield "\" alt=\"default image\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
\t\t\t\t\t\t\t\t\t\t";
}
// line 59
yield "\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"container-info-presta\" style=\"padding-bottom: 80px;\">
\t\t\t\t\t\t\t\t\t\t<h2 class=\"vendor-title\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 62
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_product_single", ["slug" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "subCategories", [], "any", false, false, false, 62), 0, [], "array", false, false, false, 62), "categories", [], "any", false, false, false, 62), 0, [], "array", false, false, false, 62), "slug", [], "any", false, false, false, 62), "subCategorySlug" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "subCategories", [], "any", false, false, false, 62), 0, [], "array", false, false, false, 62), "subCategorySlug", [], "any", false, false, false, 62), "product_id" => CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 62), "productSlug" => CoreExtension::getAttribute($this->env, $this->source, $context["product"], "productSlug", [], "any", false, false, false, 62)]), "html", null, true);
yield "\" class=\"title\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 62), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t\t\t<p class=\"vendor-address\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 65
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "departments", [], "any", false, false, false, 65));
$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["department"]) {
// line 66
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["department"], "name", [], "any", false, false, false, 66), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 67
if ( !CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 67)) {
yield ",
\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 69
yield "\t\t\t\t\t\t\t\t\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 70
yield "\t\t\t\t\t\t\t\t\t\t\t\tToute la France
\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['department'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 72
yield "\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-money-bill-wave\"></i>
\t\t\t\t\t\t\t\t\t\t\tPrix
\t\t\t\t\t\t\t\t\t\t\t<strong>";
// line 76
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "price", [], "any", false, false, false, 76), 2, "."), "html", null, true);
yield "</strong>
\t\t\t\t\t\t\t\t\t\t\t€</p>
\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star rated\"></i>
";
// line 80
$context["notes"] = 0;
// line 81
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "avis", [], "any", false, false, false, 81));
foreach ($context['_seq'] as $context["_key"] => $context["avi"]) {
// line 82
yield " ";
$context["notes"] = ((isset($context["notes"]) || array_key_exists("notes", $context) ? $context["notes"] : (function () { throw new RuntimeError('Variable "notes" does not exist.', 82, $this->source); })()) + CoreExtension::getAttribute($this->env, $this->source, $context["avi"], "globalNote", [], "any", false, false, false, 82));
// line 83
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['avi'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 84
yield " ";
$context["noteTotal"] = ((((isset($context["notes"]) || array_key_exists("notes", $context) ? $context["notes"] : (function () { throw new RuntimeError('Variable "notes" does not exist.', 84, $this->source); })()) > 0)) ? (((isset($context["notes"]) || array_key_exists("notes", $context) ? $context["notes"] : (function () { throw new RuntimeError('Variable "notes" does not exist.', 84, $this->source); })()) / Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["product"], "avis", [], "any", false, false, false, 84)))) : (0));
// line 85
yield "\t\t\t\t\t\t\t\t\t\t\t";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["product"], "avis", [], "any", false, false, false, 85)), "html", null, true);
yield " Avis</p>
\t\t\t\t\t\t\t\t\t\t<p>";
// line 86
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "quantity", [], "any", false, false, false, 86), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\tQuantité restante</p>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"wishlist-sign\">
\t\t\t\t\t\t\t\t\t\t<a href=\"#\" class=\"btn-wishlist\">
\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-heart\"></i>
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<a href=\"";
// line 94
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_product_single", ["slug" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "subCategories", [], "any", false, false, false, 94), 0, [], "array", false, false, false, 94), "categories", [], "any", false, false, false, 94), 0, [], "array", false, false, false, 94), "slug", [], "any", false, false, false, 94), "subCategorySlug" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "subCategories", [], "any", false, false, false, 94), 0, [], "array", false, false, false, 94), "subCategorySlug", [], "any", false, false, false, 94), "product_id" => CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 94), "productSlug" => CoreExtension::getAttribute($this->env, $this->source, $context["product"], "productSlug", [], "any", false, false, false, 94)]), "html", null, true);
yield "\" class=\"title\">
\t\t\t\t\t\t\t\t\t\t<button class=\"btnVoirP btn\">Voir le produit</button>
\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
$context['_iterated'] = true;
}
if (!$context['_iterated']) {
// line 100
yield "\t\t\t\t\t\t\t<div class=\"vendor-thumbnail list-view p-4\">Aucun service correspondant</div>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 102
yield "\t\t\t\t\t</div>
";
// line 177
yield "
<div class=\"pagination\">
<nav aria-label=\"Page navigation example\">
";
// line 180
yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 180, $this->source); })()));
yield "
</nav>
</div>
<!-- /.paginations -->
</div>
<!-- sidebar-section -->
";
// line 187
yield Twig\Extension\CoreExtension::include($this->env, $context, "front/inc/filter_sidebar.html.twig");
yield "
<!-- /.sidebar-section -->
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 195
public function block_javascript($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", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 196
yield "\t<script src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/getCommune.js"), "html", null, true);
yield "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/article/list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 367 => 196, 357 => 195, 339 => 187, 329 => 180, 324 => 177, 320 => 102, 313 => 100, 302 => 94, 291 => 86, 286 => 85, 283 => 84, 277 => 83, 274 => 82, 269 => 81, 267 => 80, 260 => 76, 254 => 72, 247 => 70, 234 => 69, 229 => 67, 224 => 66, 206 => 65, 198 => 62, 193 => 59, 187 => 57, 181 => 55, 179 => 54, 174 => 51, 169 => 50, 138 => 34, 134 => 33, 114 => 15, 108 => 13, 102 => 11, 100 => 10, 97 => 9, 87 => 8, 74 => 5, 71 => 4, 61 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base_front.html.twig' %}
{% block meta %}
<title>Les produits disponibles pour votre mariage</title>
<meta name=\"description\" content=\"Les produits disponibles. Actuellement, {{ countProducts }} produits disponibles.\">
{% endblock %}
{% block body %}
<div class=\"page-header\" style=\"
{% if categoryBackground is defined and categoryBackground is not null and categoryBackground.image is not null %}
background: url({{ asset(constant('App\\\\Services\\\\File::IMAGE_CATEGORY_DIR') ~ categoryBackground.image) }})
{% else %}
background: url({{ asset('images/vacance_article.jpg') }})
{% endif %}
no-repeat center;background-size: cover\">
<div class=\"container\">
<div class=\"row\">
<!-- page caption -->
<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 \">
<div class=\"page-caption\">
<h1 class=\"page-title\">Articles</h1>
</div>
</div>
<!-- /.page caption -->
</div>
</div>
<!-- page caption -->
<div class=\"page-breadcrumb\">
<div class=\"container\">
<div class=\"row\">
<nav aria-label=\"breadcrumb\">
<ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\"><a href=\"{{ path('front_home') }}\" class=\"breadcrumb-link\">Accueil</a></li>
<li class=\"breadcrumb-item active text-white\" aria-current=\"page\">Recherche {% if app.session.get('categoryName') %}{{ app.session.get('categoryName') }}{% endif %} {% if app.session.get('departmentName') %}- {{ app.session.get('departmentName') }}{% endif %} {% if app.session.get('weddingdate') %}- {{ app.session.get('weddingdate') }}{% endif %}</li>
</ol>
</nav>
</div>
</div>
</div>
<!-- page breadcrumb -->
</div>
<!-- /.page-header -->
<!-- vendor-section -->
<div class=\"content\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-xl-8 col-lg-8 col-md-7 col-sm-12 col-12\">
<div class=\"row\">
\t\t\t\t\t\t{% for product in products %}
\t\t\t\t\t\t\t<div class=\"col-lg-6 col-sm-12 col-12\">
\t\t\t\t\t\t\t\t<div class=\"container-block-Pcompanies mb-3\">
\t\t\t\t\t\t\t\t\t<div class=\"container-imageP zoomimg\">
\t\t\t\t\t\t\t\t\t\t{% if product.photos is not empty %}
\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset(constant('App\\\\Services\\\\File::IMAGE_PRODUCT_DIR') ~ product.photos.first.url) }}\" alt=\"default image\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset('images/vecteezy_vector-gear-logo-design-with-multi-colors-range_6172776.jpg') }}\" alt=\"default image\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"container-info-presta\" style=\"padding-bottom: 80px;\">
\t\t\t\t\t\t\t\t\t\t<h2 class=\"vendor-title\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_product_single', {'slug': product.subCategories[0].categories[0].slug, 'subCategorySlug': product.subCategories[0].subCategorySlug, 'product_id': product.id, 'productSlug': product.productSlug}) }}\" class=\"title\">{{ product.name }}</a>
\t\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t\t\t<p class=\"vendor-address\">
\t\t\t\t\t\t\t\t\t\t\t{% for department in product.departments %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ department.name }}
\t\t\t\t\t\t\t\t\t\t\t\t{% if not loop.last %},
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\tToute la France
\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-money-bill-wave\"></i>
\t\t\t\t\t\t\t\t\t\t\tPrix
\t\t\t\t\t\t\t\t\t\t\t<strong>{{ product.price|number_format(2, '.') }}</strong>
\t\t\t\t\t\t\t\t\t\t\t€</p>
\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star rated\"></i>
{% set notes = 0 %}
{% for avi in product.avis %}
{% set notes = notes + avi.globalNote %}
{% endfor %}
{% set noteTotal = (notes > 0) ? notes / product.avis|length : 0 %}
\t\t\t\t\t\t\t\t\t\t\t{{ product.avis|length }} Avis</p>
\t\t\t\t\t\t\t\t\t\t<p>{{ product.quantity }}
\t\t\t\t\t\t\t\t\t\t\tQuantité restante</p>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"wishlist-sign\">
\t\t\t\t\t\t\t\t\t\t<a href=\"#\" class=\"btn-wishlist\">
\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-heart\"></i>
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_product_single', {'slug': product.subCategories[0].categories[0].slug, 'subCategorySlug': product.subCategories[0].subCategorySlug, 'product_id': product.id, 'productSlug': product.productSlug}) }}\" class=\"title\">
\t\t\t\t\t\t\t\t\t\t<button class=\"btnVoirP btn\">Voir le produit</button>
\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t<div class=\"vendor-thumbnail list-view p-4\">Aucun service correspondant</div>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</div>
{# {% for product in products %}
<div class=\"vendor-thumbnail list-view\">
<!-- Vendor thumbnail -->
<div class=\"row\">
<div class=\"col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 border-right pr-0 zoom-img\">
<div class=\"vendor-img\" style=\"background:url({% if product.photos is not empty %}{{ asset(constant('App\\\\Services\\\\File::IMAGE_PRODUCT_DIR') ~ product.photos.first.url) }}{% else %}{{ asset('images/illustration-default.jpg') }}{% endif %})no-repeat center;background-size:cover;height:100%\">
<!-- Vendor img -->
<a href=\"{{ path('front_product_single', {'slug': product.subCategories[0].categories[0].slug, 'subCategorySlug': product.subCategories[0].subCategorySlug, 'product_id': product.id, 'productSlug': product.productSlug}) }}\">
<div style=\"height:100%;width:100%\">
</div>
</a>
<div class=\"wishlist-sign\">
{% if app.user and app.user.roles == ['ROLE_USER'] %}
{% set isWish = filter_service.getIfIsWish(app.user, product) %}
{% if isWish %}
<a href=\"#\" class=\"btn-wishlist\" style=\"background-color:#ff4d4d;\"><i class=\"fa fa-heart\" style=\"color:#fff\"></i></a>
{% else %}
<a href=\"#\" class=\"btn-wishlist\"><i class=\"fa fa-heart\"></i></a>
{% endif %}
{% endif %}
</div>
</div>
</div>
<!-- /.Vendor img -->
<div class=\"col-xl-8 col-lg-8 col-md-12 col-sm-12 col-12 pl-0\">
<div class=\"vendor-content\">
<!-- Vendor Content -->
<h2 class=\"vendor-title\"><a href=\"{{ path('front_product_single', {'slug': product.subCategories[0].categories[0].slug, 'subCategorySlug': product.subCategories[0].subCategorySlug, 'product_id': product.id, 'productSlug': product.productSlug}) }}\" class=\"title\">{{ product.name }}</a></h2>
<p class=\"vendor-address\">
{% for department in product.departments %}
{{ department.name }}{% if not loop.last %},{% endif %}
{% else %}
Toute la France
{% endfor %}
</p>
<!-- /.Vendor meta -->
</div>
<div class=\"vendor-meta m-0\">
<div class=\"vendor-meta-item vendor-meta-item-bordered\">
<span class=\"vendor-price\">
{{ product.price|number_format(2, '.') }}€
</span>
<span class=\"vendor-text\">Prix</span></div>
<div class=\"vendor-meta-item vendor-meta-item-bordered\">
<span class=\"vendor-guest\">
{{ product.quantity }}
</span>
<span class=\"vendor-text\">Quantité restante</span>
</div>
{% set notes = 0 %}
{% for avi in product.avis %}
{% set notes = notes + avi.globalNote %}
{% endfor %}
{% set noteTotal = (notes > 0) ? notes / product.avis|length : 0 %}
<div class=\"vendor-meta-item vendor-meta-item-bordered\">
<span class=\"rating-star\">
{% for i in 1..5 %}
{% if i < noteTotal %}
<i class=\"fa fa-star rated\"></i>
{% else %}
<i class=\"fa fa-star rate-mute\"></i>
{% endif %}
{% endfor %}
</span>
<span class=\"rating-count vendor-text\">({{ product.avis|length }})</span></div>
</div>
<!-- /.Vendor Content -->
</div>
</div>
</div>
{% else %}
<div class=\"vendor-thumbnail list-view p-4\">Aucun article correspondant</div>
{% endfor %} #}
<div class=\"pagination\">
<nav aria-label=\"Page navigation example\">
{{ knp_pagination_render(products) }}
</nav>
</div>
<!-- /.paginations -->
</div>
<!-- sidebar-section -->
{{ include('front/inc/filter_sidebar.html.twig') }}
<!-- /.sidebar-section -->
</div>
</div>
</div>
{% endblock %}
{% block javascript %}
\t<script src=\"{{ asset('js/getCommune.js') }}\"></script>
{% endblock %}
", "front/article/list.html.twig", "/var/www/vhosts/hobbiinn.com/httpdocs/providdersvacance/templates/front/article/list.html.twig");
}
}