var/cache/dev/twig/3e/3e88830d6f2604be13b7e2c1f3c0873ec6057300ad60679e0f19be45cb466ce8.php line 41

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* front/article/list.html.twig */
  15. class __TwigTemplate_f0338c38f1a2619bd286a0f935031d15cd4397a9bc6c68fafc90aa5ac7db5b33 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'meta' => [$this'block_meta'],
  25.             'body' => [$this'block_body'],
  26.             'javascript' => [$this'block_javascript'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "base_front.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/article/list.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/article/list.html.twig"));
  41.         $this->parent $this->loadTemplate("base_front.html.twig""front/article/list.html.twig"1);
  42.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 3
  49.     public function block_meta($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  56.         // line 4
  57.         yield "    <title>Les produits disponibles pour votre mariage</title>
  58.     <meta name=\"description\" content=\"Les produits disponibles. Actuellement, ";
  59.         // line 5
  60.         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"nulltrue);
  61.         yield " produits disponibles.\">
  62. ";
  63.         
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  65.         
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  67.         return; yield '';
  68.     }
  69.     // line 8
  70.     public function block_body($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  77.         // line 9
  78.         yield "    <div class=\"page-header\" style=\"
  79.     ";
  80.         // line 10
  81.         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"falsefalsefalse10)))) {
  82.             // line 11
  83.             yield "        background: url(";
  84.             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"falsefalsefalse11))), "html"nulltrue);
  85.             yield ")
  86.     ";
  87.         } else {
  88.             // line 13
  89.             yield "        background: url(";
  90.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/vacance_article.jpg"), "html"nulltrue);
  91.             yield ")
  92.     ";
  93.         }
  94.         // line 15
  95.         yield "    no-repeat center;background-size: cover\">
  96.         <div class=\"container\">
  97.             <div class=\"row\">
  98.                 <!-- page caption -->
  99.                 <div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 \">
  100.                     <div class=\"page-caption\">
  101.                         <h1 class=\"page-title\">Articles</h1>
  102.                     </div>
  103.                 </div>
  104.                 <!-- /.page caption -->
  105.             </div>
  106.         </div>
  107.         <!-- page caption -->
  108.         <div class=\"page-breadcrumb\">
  109.             <div class=\"container\">
  110.                 <div class=\"row\">
  111.                     <nav aria-label=\"breadcrumb\">
  112.                         <ol class=\"breadcrumb\">
  113.                             <li class=\"breadcrumb-item\"><a href=\"";
  114.         // line 33
  115.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_home");
  116.         yield "\" class=\"breadcrumb-link\">Accueil</a></li>
  117.                             <li class=\"breadcrumb-item active text-white\" aria-current=\"page\">Recherche ";
  118.         // line 34
  119.         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse34), "get", ["categoryName"], "method"falsefalsefalse34)) {
  120.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse34), "get", ["categoryName"], "method"falsefalsefalse34), "html"nulltrue);
  121.         }
  122.         yield " ";
  123.         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse34), "get", ["departmentName"], "method"falsefalsefalse34)) {
  124.             yield "- ";
  125.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse34), "get", ["departmentName"], "method"falsefalsefalse34), "html"nulltrue);
  126.         }
  127.         yield " ";
  128.         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse34), "get", ["weddingdate"], "method"falsefalsefalse34)) {
  129.             yield "- ";
  130.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse34), "get", ["weddingdate"], "method"falsefalsefalse34), "html"nulltrue);
  131.         }
  132.         yield "</li>
  133.                         </ol>
  134.                     </nav>
  135.                 </div>
  136.             </div>
  137.         </div>
  138.         <!-- page breadcrumb -->
  139.     </div>
  140.     <!-- /.page-header -->
  141.     <!-- vendor-section -->
  142.     <div class=\"content\">
  143.         <div class=\"container\">
  144.             <div class=\"row\">
  145.                 <div class=\"col-xl-8 col-lg-8 col-md-7 col-sm-12 col-12\">
  146.                     <div class=\"row\">
  147. \t\t\t\t\t\t";
  148.         // line 50
  149.         $context['_parent'] = $context;
  150.         $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); })()));
  151.         $context['_iterated'] = false;
  152.         foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  153.             // line 51
  154.             yield "\t\t\t\t\t\t\t<div class=\"col-lg-6 col-sm-12 col-12\">
  155. \t\t\t\t\t\t\t\t<div class=\"container-block-Pcompanies mb-3\">
  156. \t\t\t\t\t\t\t\t\t<div class=\"container-imageP zoomimg\">
  157. \t\t\t\t\t\t\t\t\t\t";
  158.             // line 54
  159.             if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source$context["product"], "photos", [], "any"falsefalsefalse54))) {
  160.                 // line 55
  161.                 yield "\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
  162.                 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->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "photos", [], "any"falsefalsefalse55), "first", [], "any"falsefalsefalse55), "url", [], "any"falsefalsefalse55))), "html"nulltrue);
  163.                 yield "\" alt=\"default image\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
  164. \t\t\t\t\t\t\t\t\t\t";
  165.             } else {
  166.                 // line 57
  167.                 yield "\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
  168.                 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"nulltrue);
  169.                 yield "\" alt=\"default image\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
  170. \t\t\t\t\t\t\t\t\t\t";
  171.             }
  172.             // line 59
  173.             yield "\t\t\t\t\t\t\t\t\t</div>
  174. \t\t\t\t\t\t\t\t\t<div class=\"container-info-presta\" style=\"padding-bottom: 80px;\">
  175. \t\t\t\t\t\t\t\t\t\t<h2 class=\"vendor-title\">
  176. \t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  177.             // line 62
  178.             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->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "subCategories", [], "any"falsefalsefalse62), 0, [], "array"falsefalsefalse62), "categories", [], "any"falsefalsefalse62), 0, [], "array"falsefalsefalse62), "slug", [], "any"falsefalsefalse62), "subCategorySlug" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "subCategories", [], "any"falsefalsefalse62), 0, [], "array"falsefalsefalse62), "subCategorySlug", [], "any"falsefalsefalse62), "product_id" => CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse62), "productSlug" => CoreExtension::getAttribute($this->env$this->source$context["product"], "productSlug", [], "any"falsefalsefalse62)]), "html"nulltrue);
  179.             yield "\" class=\"title\">";
  180.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "name", [], "any"falsefalsefalse62), "html"nulltrue);
  181.             yield "</a>
  182. \t\t\t\t\t\t\t\t\t\t</h2>
  183. \t\t\t\t\t\t\t\t\t\t<p class=\"vendor-address\">
  184. \t\t\t\t\t\t\t\t\t\t\t";
  185.             // line 65
  186.             $context['_parent'] = $context;
  187.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source$context["product"], "departments", [], "any"falsefalsefalse65));
  188.             $context['_iterated'] = false;
  189.             $context['loop'] = [
  190.               'parent' => $context['_parent'],
  191.               'index0' => 0,
  192.               'index'  => 1,
  193.               'first'  => true,
  194.             ];
  195.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  196.                 $length count($context['_seq']);
  197.                 $context['loop']['revindex0'] = $length 1;
  198.                 $context['loop']['revindex'] = $length;
  199.                 $context['loop']['length'] = $length;
  200.                 $context['loop']['last'] = === $length;
  201.             }
  202.             foreach ($context['_seq'] as $context["_key"] => $context["department"]) {
  203.                 // line 66
  204.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  205.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["department"], "name", [], "any"falsefalsefalse66), "html"nulltrue);
  206.                 yield "
  207. \t\t\t\t\t\t\t\t\t\t\t\t";
  208.                 // line 67
  209.                 if ( !CoreExtension::getAttribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse67)) {
  210.                     yield ",
  211. \t\t\t\t\t\t\t\t\t\t\t\t";
  212.                 }
  213.                 // line 69
  214.                 yield "\t\t\t\t\t\t\t\t\t\t\t";
  215.                 $context['_iterated'] = true;
  216.                 ++$context['loop']['index0'];
  217.                 ++$context['loop']['index'];
  218.                 $context['loop']['first'] = false;
  219.                 if (isset($context['loop']['length'])) {
  220.                     --$context['loop']['revindex0'];
  221.                     --$context['loop']['revindex'];
  222.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  223.                 }
  224.             }
  225.             if (!$context['_iterated']) {
  226.                 // line 70
  227.                 yield "\t\t\t\t\t\t\t\t\t\t\t\tToute la France
  228. \t\t\t\t\t\t\t\t\t\t\t";
  229.             }
  230.             $_parent $context['_parent'];
  231.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['department'], $context['_parent'], $context['loop']);
  232.             $context array_intersect_key($context$_parent) + $_parent;
  233.             // line 72
  234.             yield "\t\t\t\t\t\t\t\t\t\t</p>
  235. \t\t\t\t\t\t\t\t\t\t<p>
  236. \t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-money-bill-wave\"></i>
  237. \t\t\t\t\t\t\t\t\t\t\tPrix
  238. \t\t\t\t\t\t\t\t\t\t\t<strong>";
  239.             // line 76
  240.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env$this->source$context["product"], "price", [], "any"falsefalsefalse76), 2"."), "html"nulltrue);
  241.             yield "</strong>
  242. \t\t\t\t\t\t\t\t\t\t\t€</p>
  243. \t\t\t\t\t\t\t\t\t\t<p>
  244. \t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star rated\"></i>
  245.                                             ";
  246.             // line 80
  247.             $context["notes"] = 0;
  248.             // line 81
  249.             yield "                                            ";
  250.             $context['_parent'] = $context;
  251.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source$context["product"], "avis", [], "any"falsefalsefalse81));
  252.             foreach ($context['_seq'] as $context["_key"] => $context["avi"]) {
  253.                 // line 82
  254.                 yield "                                                ";
  255.                 $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"falsefalsefalse82));
  256.                 // line 83
  257.                 yield "                                            ";
  258.             }
  259.             $_parent $context['_parent'];
  260.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['avi'], $context['_parent'], $context['loop']);
  261.             $context array_intersect_key($context$_parent) + $_parent;
  262.             // line 84
  263.             yield "                                            ";
  264.             $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"falsefalsefalse84)))) : (0));
  265.             // line 85
  266.             yield "\t\t\t\t\t\t\t\t\t\t\t";
  267.             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"falsefalsefalse85)), "html"nulltrue);
  268.             yield " Avis</p>
  269. \t\t\t\t\t\t\t\t\t\t<p>";
  270.             // line 86
  271.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "quantity", [], "any"falsefalsefalse86), "html"nulltrue);
  272.             yield "
  273. \t\t\t\t\t\t\t\t\t\t\tQuantité restante</p>
  274. \t\t\t\t\t\t\t\t\t</div>
  275. \t\t\t\t\t\t\t\t\t<div class=\"wishlist-sign\">
  276. \t\t\t\t\t\t\t\t\t\t<a href=\"#\" class=\"btn-wishlist\">
  277. \t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-heart\"></i>
  278. \t\t\t\t\t\t\t\t\t\t</a>
  279. \t\t\t\t\t\t\t\t\t</div>
  280. \t\t\t\t\t\t\t\t\t<a href=\"";
  281.             // line 94
  282.             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->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "subCategories", [], "any"falsefalsefalse94), 0, [], "array"falsefalsefalse94), "categories", [], "any"falsefalsefalse94), 0, [], "array"falsefalsefalse94), "slug", [], "any"falsefalsefalse94), "subCategorySlug" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "subCategories", [], "any"falsefalsefalse94), 0, [], "array"falsefalsefalse94), "subCategorySlug", [], "any"falsefalsefalse94), "product_id" => CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse94), "productSlug" => CoreExtension::getAttribute($this->env$this->source$context["product"], "productSlug", [], "any"falsefalsefalse94)]), "html"nulltrue);
  283.             yield "\" class=\"title\">
  284. \t\t\t\t\t\t\t\t\t\t<button class=\"btnVoirP btn\">Voir le produit</button>
  285. \t\t\t\t\t\t\t\t\t</a>
  286. \t\t\t\t\t\t\t\t</div>
  287. \t\t\t\t\t\t\t</div>
  288. \t\t\t\t\t\t";
  289.             $context['_iterated'] = true;
  290.         }
  291.         if (!$context['_iterated']) {
  292.             // line 100
  293.             yield "\t\t\t\t\t\t\t<div class=\"vendor-thumbnail list-view p-4\">Aucun service correspondant</div>
  294. \t\t\t\t\t\t";
  295.         }
  296.         $_parent $context['_parent'];
  297.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  298.         $context array_intersect_key($context$_parent) + $_parent;
  299.         // line 102
  300.         yield "\t\t\t\t\t</div>
  301.                     ";
  302.         // line 177
  303.         yield "
  304.                     <div class=\"pagination\">
  305.                         <nav aria-label=\"Page navigation example\">
  306.                             ";
  307.         // line 180
  308.         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); })()));
  309.         yield "
  310.                         </nav>
  311.                     </div>
  312.                     <!-- /.paginations -->
  313.                 </div>
  314.                 <!-- sidebar-section -->
  315.                 ";
  316.         // line 187
  317.         yield Twig\Extension\CoreExtension::include($this->env$context"front/inc/filter_sidebar.html.twig");
  318.         yield "
  319.                 <!-- /.sidebar-section -->
  320.             </div>
  321.         </div>
  322.     </div>
  323. ";
  324.         
  325.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  326.         
  327.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  328.         return; yield '';
  329.     }
  330.     // line 195
  331.     public function block_javascript($context, array $blocks = [])
  332.     {
  333.         $macros $this->macros;
  334.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  335.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  336.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  337.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  338.         // line 196
  339.         yield "\t<script src=\"";
  340.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/getCommune.js"), "html"nulltrue);
  341.         yield "\"></script>
  342. ";
  343.         
  344.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  345.         
  346.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  347.         return; yield '';
  348.     }
  349.     /**
  350.      * @codeCoverageIgnore
  351.      */
  352.     public function getTemplateName()
  353.     {
  354.         return "front/article/list.html.twig";
  355.     }
  356.     /**
  357.      * @codeCoverageIgnore
  358.      */
  359.     public function isTraitable()
  360.     {
  361.         return false;
  362.     }
  363.     /**
  364.      * @codeCoverageIgnore
  365.      */
  366.     public function getDebugInfo()
  367.     {
  368.         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,);
  369.     }
  370.     public function getSourceContext()
  371.     {
  372.         return new Source("{% extends 'base_front.html.twig' %}
  373. {% block meta %}
  374.     <title>Les produits disponibles pour votre mariage</title>
  375.     <meta name=\"description\" content=\"Les produits disponibles. Actuellement, {{ countProducts }} produits disponibles.\">
  376. {% endblock %}
  377. {% block body %}
  378.     <div class=\"page-header\" style=\"
  379.     {% if categoryBackground is defined and categoryBackground is not null and categoryBackground.image is not null %}
  380.         background: url({{ asset(constant('App\\\\Services\\\\File::IMAGE_CATEGORY_DIR') ~ categoryBackground.image) }})
  381.     {% else %}
  382.         background: url({{ asset('images/vacance_article.jpg') }})
  383.     {% endif %}
  384.     no-repeat center;background-size: cover\">
  385.         <div class=\"container\">
  386.             <div class=\"row\">
  387.                 <!-- page caption -->
  388.                 <div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 \">
  389.                     <div class=\"page-caption\">
  390.                         <h1 class=\"page-title\">Articles</h1>
  391.                     </div>
  392.                 </div>
  393.                 <!-- /.page caption -->
  394.             </div>
  395.         </div>
  396.         <!-- page caption -->
  397.         <div class=\"page-breadcrumb\">
  398.             <div class=\"container\">
  399.                 <div class=\"row\">
  400.                     <nav aria-label=\"breadcrumb\">
  401.                         <ol class=\"breadcrumb\">
  402.                             <li class=\"breadcrumb-item\"><a href=\"{{ path('front_home') }}\" class=\"breadcrumb-link\">Accueil</a></li>
  403.                             <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>
  404.                         </ol>
  405.                     </nav>
  406.                 </div>
  407.             </div>
  408.         </div>
  409.         <!-- page breadcrumb -->
  410.     </div>
  411.     <!-- /.page-header -->
  412.     <!-- vendor-section -->
  413.     <div class=\"content\">
  414.         <div class=\"container\">
  415.             <div class=\"row\">
  416.                 <div class=\"col-xl-8 col-lg-8 col-md-7 col-sm-12 col-12\">
  417.                     <div class=\"row\">
  418. \t\t\t\t\t\t{% for product in products %}
  419. \t\t\t\t\t\t\t<div class=\"col-lg-6 col-sm-12 col-12\">
  420. \t\t\t\t\t\t\t\t<div class=\"container-block-Pcompanies mb-3\">
  421. \t\t\t\t\t\t\t\t\t<div class=\"container-imageP zoomimg\">
  422. \t\t\t\t\t\t\t\t\t\t{% if product.photos is not empty %}
  423. \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;\">
  424. \t\t\t\t\t\t\t\t\t\t{% else %}
  425. \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;\">
  426. \t\t\t\t\t\t\t\t\t\t{% endif %}
  427. \t\t\t\t\t\t\t\t\t</div>
  428. \t\t\t\t\t\t\t\t\t<div class=\"container-info-presta\" style=\"padding-bottom: 80px;\">
  429. \t\t\t\t\t\t\t\t\t\t<h2 class=\"vendor-title\">
  430. \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>
  431. \t\t\t\t\t\t\t\t\t\t</h2>
  432. \t\t\t\t\t\t\t\t\t\t<p class=\"vendor-address\">
  433. \t\t\t\t\t\t\t\t\t\t\t{% for department in product.departments %}
  434. \t\t\t\t\t\t\t\t\t\t\t\t{{ department.name }}
  435. \t\t\t\t\t\t\t\t\t\t\t\t{% if not loop.last %},
  436. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  437. \t\t\t\t\t\t\t\t\t\t\t{% else %}
  438. \t\t\t\t\t\t\t\t\t\t\t\tToute la France
  439. \t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  440. \t\t\t\t\t\t\t\t\t\t</p>
  441. \t\t\t\t\t\t\t\t\t\t<p>
  442. \t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-money-bill-wave\"></i>
  443. \t\t\t\t\t\t\t\t\t\t\tPrix
  444. \t\t\t\t\t\t\t\t\t\t\t<strong>{{ product.price|number_format(2, '.') }}</strong>
  445. \t\t\t\t\t\t\t\t\t\t\t€</p>
  446. \t\t\t\t\t\t\t\t\t\t<p>
  447. \t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star rated\"></i>
  448.                                             {% set notes = 0 %}
  449.                                             {% for avi in product.avis %}
  450.                                                 {% set notes = notes + avi.globalNote %}
  451.                                             {% endfor %}
  452.                                             {% set noteTotal = (notes > 0) ? notes / product.avis|length : 0 %}
  453. \t\t\t\t\t\t\t\t\t\t\t{{ product.avis|length }} Avis</p>
  454. \t\t\t\t\t\t\t\t\t\t<p>{{ product.quantity }}
  455. \t\t\t\t\t\t\t\t\t\t\tQuantité restante</p>
  456. \t\t\t\t\t\t\t\t\t</div>
  457. \t\t\t\t\t\t\t\t\t<div class=\"wishlist-sign\">
  458. \t\t\t\t\t\t\t\t\t\t<a href=\"#\" class=\"btn-wishlist\">
  459. \t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-heart\"></i>
  460. \t\t\t\t\t\t\t\t\t\t</a>
  461. \t\t\t\t\t\t\t\t\t</div>
  462. \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\">
  463. \t\t\t\t\t\t\t\t\t\t<button class=\"btnVoirP btn\">Voir le produit</button>
  464. \t\t\t\t\t\t\t\t\t</a>
  465. \t\t\t\t\t\t\t\t</div>
  466. \t\t\t\t\t\t\t</div>
  467. \t\t\t\t\t\t{% else %}
  468. \t\t\t\t\t\t\t<div class=\"vendor-thumbnail list-view p-4\">Aucun service correspondant</div>
  469. \t\t\t\t\t\t{% endfor %}
  470. \t\t\t\t\t</div>
  471.                     {# {% for product in products %}
  472.                         <div class=\"vendor-thumbnail list-view\">
  473.                         <!-- Vendor thumbnail -->
  474.                         <div class=\"row\">
  475.                             <div class=\"col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 border-right pr-0 zoom-img\">
  476.                                 <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%\">
  477.                                     <!-- Vendor img -->
  478.                                     <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}) }}\">
  479.                                         <div style=\"height:100%;width:100%\">
  480.                                         </div>
  481.                                     </a>
  482.                                     <div class=\"wishlist-sign\">
  483.                                         {% if app.user and app.user.roles == ['ROLE_USER'] %}
  484.                                             {% set isWish = filter_service.getIfIsWish(app.user, product) %}
  485.                                             {% if isWish %}
  486.                                                 <a href=\"#\" class=\"btn-wishlist\" style=\"background-color:#ff4d4d;\"><i class=\"fa fa-heart\" style=\"color:#fff\"></i></a>
  487.                                             {% else %}
  488.                                                 <a href=\"#\" class=\"btn-wishlist\"><i class=\"fa fa-heart\"></i></a>
  489.                                             {% endif %}
  490.                                         {% endif %}
  491.                                     </div>
  492.                                 </div>
  493.                             </div>
  494.                             <!-- /.Vendor img -->
  495.                             <div class=\"col-xl-8 col-lg-8 col-md-12 col-sm-12 col-12 pl-0\">
  496.                                 <div class=\"vendor-content\">
  497.                                     <!-- Vendor Content -->
  498.                                     <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>
  499.                                     <p class=\"vendor-address\">
  500.                                         {% for department in product.departments %}
  501.                                             {{ department.name }}{% if not loop.last %},{% endif %}
  502.                                         {% else %}
  503.                                             Toute la France
  504.                                         {% endfor %}
  505.                                     </p>
  506.                                     <!-- /.Vendor meta -->
  507.                                 </div>
  508.                                 <div class=\"vendor-meta m-0\">
  509.                                     <div class=\"vendor-meta-item vendor-meta-item-bordered\">
  510.                                         <span class=\"vendor-price\">
  511.                                         {{ product.price|number_format(2, '.') }}€
  512.                                         </span>
  513.                                         <span class=\"vendor-text\">Prix</span></div>
  514.                                     <div class=\"vendor-meta-item vendor-meta-item-bordered\">
  515.                                         <span class=\"vendor-guest\">
  516.                                               {{ product.quantity }}
  517.                                          </span>
  518.                                         <span class=\"vendor-text\">Quantité restante</span>
  519.                                     </div>
  520.                                     {% set notes = 0 %}
  521.                                     {% for avi in product.avis %}
  522.                                         {% set notes = notes + avi.globalNote %}
  523.                                     {% endfor %}
  524.                                     {% set noteTotal = (notes > 0) ? notes / product.avis|length : 0 %}
  525.                                     <div class=\"vendor-meta-item vendor-meta-item-bordered\">
  526.                                         <span class=\"rating-star\">
  527.                                             {% for i in 1..5 %}
  528.                                                 {% if i < noteTotal %}
  529.                                                     <i class=\"fa fa-star rated\"></i>
  530.                                                 {% else %}
  531.                                                     <i class=\"fa fa-star rate-mute\"></i>
  532.                                                 {% endif %}
  533.                                             {% endfor %}
  534.                                     </span>
  535.                                         <span class=\"rating-count vendor-text\">({{ product.avis|length }})</span></div>
  536.                                 </div>
  537.                                 <!-- /.Vendor Content -->
  538.                             </div>
  539.                         </div>
  540.                     </div>
  541.                     {% else %}
  542.                         <div class=\"vendor-thumbnail list-view p-4\">Aucun article correspondant</div>
  543.                     {% endfor %} #}
  544.                     <div class=\"pagination\">
  545.                         <nav aria-label=\"Page navigation example\">
  546.                             {{ knp_pagination_render(products) }}
  547.                         </nav>
  548.                     </div>
  549.                     <!-- /.paginations -->
  550.                 </div>
  551.                 <!-- sidebar-section -->
  552.                 {{ include('front/inc/filter_sidebar.html.twig') }}
  553.                 <!-- /.sidebar-section -->
  554.             </div>
  555.         </div>
  556.     </div>
  557. {% endblock %}
  558. {% block javascript %}
  559. \t<script src=\"{{ asset('js/getCommune.js') }}\"></script>
  560. {% endblock %}
  561. ""front/article/list.html.twig""/var/www/vhosts/hobbiinn.com/httpdocs/providdersvacance/templates/front/article/list.html.twig");
  562.     }
  563. }