var/cache/dev/twig/7b/7bca3c580481e0c0eb26e770d1c473d8.php line 129

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* achievement/index.html.twig */
  14. class __TwigTemplate_47e74ba08759618a6693041867dd7adf extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'stylesheets' => [$this'block_stylesheets'],
  25.             'banner' => [$this'block_banner'],
  26.             'main' => [$this'block_main'],
  27.             'contact' => [$this'block_contact'],
  28.             'footer' => [$this'block_footer'],
  29.             'script' => [$this'block_script'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 1
  35.         return "base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""achievement/index.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""achievement/index.html.twig"));
  44.         $this->parent $this->loadTemplate("base.html.twig""achievement/index.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     public function block_title($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         echo "Nos différentes réalisation - RénovAtHome ";
  60.         
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62.         
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  64.     }
  65.     // line 5
  66.     public function block_stylesheets($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  73.         // line 6
  74.         echo "    ";
  75.         $this->displayParentBlock("stylesheets"$context$blocks);
  76.         echo "
  77.     <link rel=\"stylesheet\" href=\"";
  78.         // line 7
  79.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/styles/realisation.css"), "html"nulltrue);
  80.         echo "\">
  81.     <meta name=\"description\" content=\"Plusieurs projets ont été réalisés par RenovAtHome. Couverture, Toiture, Isolation, Ravalement de façade, Sur mesure. Nos clients ont su faire confiance à l'entreprise et le referont sans hésitations.\">
  82. ";
  83.         
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  85.         
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  87.     }
  88.     // line 11
  89.     public function block_banner($context, array $blocks = [])
  90.     {
  91.         $macros $this->macros;
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  96.         
  97.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  98.         
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  100.     }
  101.     // line 13
  102.     public function block_main($context, array $blocks = [])
  103.     {
  104.         $macros $this->macros;
  105.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  107.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  109.         // line 14
  110.         echo "    <main>
  111.         <div class=\"container-real\">
  112.             <ul class=\"category-real flex-wrap justify-center\">
  113.                 <li class=\"label-real\">Trier par :</li>
  114.                 <li id=\"all\" class=\"category actif\">TOUT</li>
  115.                 ";
  116.         // line 19
  117.         $context['_parent'] = $context;
  118.         $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, (isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'19$this->source); })()), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_get_attribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'19$this->source); })()), "id", [], "any"falsefalsefalse19) <= twig_get_attribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'19$this->source); })()), "id", [], "any"falsefalsefalse19)); }));
  119.         foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {
  120.             // line 20
  121.             echo "                    <li id=\"";
  122.             echo twig_escape_filter($this->envtwig_replace_filter(twig_lower_filter($this->envtwig_get_attribute($this->env$this->source$context["cat"], "nom", [], "any"falsefalsefalse20)), [" " => "-"]), "html"nulltrue);
  123.             echo "\" class=\"category\">";
  124.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cat"], "nom", [], "any"falsefalsefalse20), "html"nulltrue);
  125.             echo "</li>
  126.                 ";
  127.         }
  128.         $_parent $context['_parent'];
  129.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']);
  130.         $context array_intersect_key($context$_parent) + $_parent;
  131.         // line 22
  132.         echo "            </ul>
  133.             ";
  134.         // line 23
  135.         $context["cpt"] = 1;
  136.         // line 24
  137.         echo "            ";
  138.         $context['_parent'] = $context;
  139.         $context['_seq'] = twig_ensure_traversable((isset($context["lasts"]) || array_key_exists("lasts"$context) ? $context["lasts"] : (function () { throw new RuntimeError('Variable "lasts" does not exist.'24$this->source); })()));
  140.         foreach ($context['_seq'] as $context["_key"] => $context["last"]) {
  141.             // line 25
  142.             echo "                <div class=\"last-real ";
  143.             echo ((((isset($context["cpt"]) || array_key_exists("cpt"$context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.'25$this->source); })()) == 1)) ? ("all") : (""));
  144.             echo " ";
  145.             echo twig_escape_filter($this->envtwig_replace_filter(twig_lower_filter($this->envtwig_get_attribute($this->env$this->source$context["last"], "catName", [], "any"falsefalsefalse25)), [" " => "-"]), "html"nulltrue);
  146.             echo "\" ";
  147.             echo ((((isset($context["cpt"]) || array_key_exists("cpt"$context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.'25$this->source); })()) != 1)) ? ("style =\"display:none;\"") : (""));
  148.             echo ">
  149.                     ";
  150.             // line 26
  151.             if (((twig_get_attribute($this->env$this->source$context["last"], "avant", [], "any"falsefalsefalse26) != "") && (twig_get_attribute($this->env$this->source$context["last"], "apres", [], "any"falsefalsefalse26) != ""))) {
  152.                 // line 27
  153.                 echo "                    <div class=\"slider\">
  154.                         <div class=\"slider__before\" style=\"background-image:url(";
  155.                 // line 28
  156.                 echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/realisations/" twig_get_attribute($this->env$this->source$context["last"], "avant", [], "any"falsefalsefalse28))), "middle"), "html"nulltrue);
  157.                 echo ");\"></div>
  158.                         <div class=\"slider__separator\">
  159.                             <div class=\"bar__separator\"></div>
  160.                             <div class=\"btn__separator\">
  161.                                 <span class=\"btn__separator_left_arrow\"></span>
  162.                                 <span class=\"btn__separator_right_arrow\"></span>
  163.                             </div>
  164.                             <div class=\"bar__separator\"></div>
  165.                         </div>
  166.                         <div class=\"slider__after\" style=\"background-image:url(";
  167.                 // line 37
  168.                 echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/realisations/" twig_get_attribute($this->env$this->source$context["last"], "apres", [], "any"falsefalsefalse37))), "middle"), "html"nulltrue);
  169.                 echo ");\"></div>
  170.                         <input class=\"slider__range\" type=\"range\" min=\"2\" max=\"98\" value=\"50\"/>
  171.                     </div>
  172.                     ";
  173.             } else {
  174.                 // line 41
  175.                 echo "                    <img src=\"";
  176.                 echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/realisations/" twig_get_attribute($this->env$this->source$context["last"], "cover", [], "any"falsefalsefalse41))), "middle"), "html"nulltrue);
  177.                 echo "\" alt=\"photo de couverture de la réalisation\" class=\"img-place-holder\">
  178.                     ";
  179.             }
  180.             // line 43
  181.             echo "                    <div class=\"desc-real\">
  182.                         <div class=\"titre\">
  183.                             <div class=\"deco-sous-titre\"></div>
  184.                             <span class=\"sous-titre\">dernière Réalisation</span>
  185.                         </div>
  186.                         <h2 class=\"titre-real\">";
  187.             // line 48
  188.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["last"], "nom", [], "any"falsefalsefalse48), "html"nulltrue);
  189.             echo "</h2>
  190.                         <p>";
  191.             // line 49
  192.             echo twig_get_attribute($this->env$this->source$context["last"], "description", [], "any"falsefalsefalse49);
  193.             echo "</p>
  194.                         <p>
  195.                             <b>Solution apportée par nos équipes :</b><br>
  196.                             ";
  197.             // line 52
  198.             echo twig_get_attribute($this->env$this->source$context["last"], "taches", [], "any"falsefalsefalse52);
  199.             echo "
  200.                         </p>
  201.                         <a class=\"show-real\" href=\"";
  202.             // line 54
  203.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("realisation", ["slug" => twig_get_attribute($this->env$this->source$context["last"], "slug", [], "any"falsefalsefalse54)]), "html"nulltrue);
  204.             echo "\">en découvrir plus <i class=\"fa-solid fa-arrow-right\"></i></a>
  205.                     </div>
  206.                 </div>
  207.                 ";
  208.             // line 57
  209.             $context["cpt"] = ((isset($context["cpt"]) || array_key_exists("cpt"$context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.'57$this->source); })()) + 1);
  210.             // line 58
  211.             echo "            ";
  212.         }
  213.         $_parent $context['_parent'];
  214.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['last'], $context['_parent'], $context['loop']);
  215.         $context array_intersect_key($context$_parent) + $_parent;
  216.         // line 59
  217.         echo "            
  218.             <div class=\"all-real\">
  219.                 ";
  220.         // line 61
  221.         $context['_parent'] = $context;
  222.         $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, (isset($context["realisations"]) || array_key_exists("realisations"$context) ? $context["realisations"] : (function () { throw new RuntimeError('Variable "realisations" does not exist.'61$this->source); })()), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_get_attribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'61$this->source); })()), "id", [], "any"falsefalsefalse61) <= twig_get_attribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'61$this->source); })()), "id", [], "any"falsefalsefalse61)); }));
  223.         foreach ($context['_seq'] as $context["_key"] => $context["realisation"]) {
  224.             // line 62
  225.             echo "                    <div class=\"card-real ";
  226.             echo twig_escape_filter($this->envtwig_replace_filter(twig_lower_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["realisation"], "categorie", [], "any"falsefalsefalse62), "nom", [], "any"falsefalsefalse62)), [" " => "-"]), "html"nulltrue);
  227.             echo "\">
  228.                         <a class=\"titre-evenement\" href=\"";
  229.             // line 63
  230.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("realisation", ["slug" => twig_get_attribute($this->env$this->source$context["realisation"], "slug", [], "any"falsefalsefalse63)]), "html"nulltrue);
  231.             echo "\">
  232.                             <div class=\"layer\">
  233.                                 <img src=\"";
  234.             // line 65
  235.             echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/realisations/" twig_get_attribute($this->env$this->source$context["realisation"], "cover", [], "any"falsefalsefalse65))), "miniature"), "html"nulltrue);
  236.             echo "\" alt=\"";
  237.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["realisation"], "nom", [], "any"falsefalsefalse65), "html"nulltrue);
  238.             echo "\">
  239.                                 <div class=\"overlay\">
  240.                                     <div class=\"text\"><span>EN DÉCOUVRIR PLUS <i class=\"fa-solid fa-arrow-right\"></i></span></div>
  241.                                 </div>
  242.                             </div>
  243.                             <span class=\"card-real-category\">";
  244.             // line 70
  245.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["realisation"], "categorie", [], "any"falsefalsefalse70), "nom", [], "any"falsefalsefalse70), "html"nulltrue);
  246.             echo "</span>
  247.                             <h3 class=\"card-real-title\">";
  248.             // line 71
  249.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["realisation"], "nom", [], "any"falsefalsefalse71), "html"nulltrue);
  250.             echo "</h3>
  251.                         </a>
  252.                     </div>
  253.                 ";
  254.         }
  255.         $_parent $context['_parent'];
  256.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['realisation'], $context['_parent'], $context['loop']);
  257.         $context array_intersect_key($context$_parent) + $_parent;
  258.         // line 75
  259.         echo "            </div>
  260.             <div class=\"more\">
  261.                 <span href=\"\" class=\"btn-more\">afficher plus de réalisations</span>
  262.             </div>
  263.         </div>
  264.     </main>
  265. ";
  266.         
  267.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  268.         
  269.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  270.     }
  271.     // line 83
  272.     public function block_contact($context, array $blocks = [])
  273.     {
  274.         $macros $this->macros;
  275.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  276.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contact"));
  277.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  278.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contact"));
  279.         
  280.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  281.         
  282.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  283.     }
  284.     // line 85
  285.     public function block_footer($context, array $blocks = [])
  286.     {
  287.         $macros $this->macros;
  288.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  289.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  290.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  291.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  292.         
  293.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  294.         
  295.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  296.     }
  297.     // line 87
  298.     public function block_script($context, array $blocks = [])
  299.     {
  300.         $macros $this->macros;
  301.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  302.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""script"));
  303.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  304.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""script"));
  305.         // line 88
  306.         echo "    ";
  307.         $this->displayParentBlock("script"$context$blocks);
  308.         echo "
  309.     <script src=\"";
  310.         // line 89
  311.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/main.js"), "html"nulltrue);
  312.         echo "\"></script>
  313.     <script>
  314.         \$(document).ready(function () {
  315.             var card = \$('.card-real')
  316.             var nombrereal = 4;
  317.             for (var i =nombrereal ; i < card.length; i++) {
  318.                card[i].style.display = 'none';
  319.             }
  320.             \$(\".btn-more\").click(function () {
  321.                 for (var i = nombrereal; i < nombrereal + 4; i++) {
  322.                     if (card[i]) {
  323.                         card[i].style.display = 'block';
  324.                     }
  325.                 }
  326.                 nombrereal += 4;
  327.                 if (nombrereal >= card.length) {
  328.                     event.target.style.display = 'none';
  329.                 }
  330.             });
  331.             \$('.category').click(function() {
  332.                 \$('.category').each(function () {
  333.                     \$(this).removeClass('actif');
  334.                 });
  335.                 \$(this).addClass('actif');
  336.                 var category = \$(this).attr('id');
  337.                 \$('.card-real').each(function() {
  338.                     if (\$(this).hasClass(category) || category === 'all'){
  339.                         \$(this).show();
  340.                     }
  341.                     else {
  342.                         \$(this).hide();
  343.                     }
  344.                 });
  345.                 \$('.last-real').each(function() {
  346.                     if (\$(this).hasClass(category)){
  347.                         \$(this).show();
  348.                     }
  349.                     else {
  350.                         \$(this).hide();
  351.                     }
  352.                 });
  353.             });
  354.         });
  355.     </script>
  356. ";
  357.         
  358.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  359.         
  360.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  361.     }
  362.     public function getTemplateName()
  363.     {
  364.         return "achievement/index.html.twig";
  365.     }
  366.     public function isTraitable()
  367.     {
  368.         return false;
  369.     }
  370.     public function getDebugInfo()
  371.     {
  372.         return array (  355 => 89,  350 => 88,  340 => 87,  322 => 85,  304 => 83,  288 => 75,  278 => 71,  274 => 70,  264 => 65,  259 => 63,  254 => 62,  250 => 61,  246 => 59,  240 => 58,  238 => 57,  232 => 54,  227 => 52,  221 => 49,  217 => 48,  210 => 43,  204 => 41,  197 => 37,  185 => 28,  182 => 27,  180 => 26,  171 => 25,  166 => 24,  164 => 23,  161 => 22,  150 => 20,  146 => 19,  139 => 14,  129 => 13,  111 => 11,  98 => 7,  93 => 6,  83 => 5,  64 => 3,  41 => 1,);
  373.     }
  374.     public function getSourceContext()
  375.     {
  376.         return new Source("{% extends 'base.html.twig' %}
  377. {% block title %}Nos différentes réalisation - RénovAtHome {% endblock %}
  378. {% block stylesheets %}
  379.     {{ parent() }}
  380.     <link rel=\"stylesheet\" href=\"{{ asset('assets/styles/realisation.css')}}\">
  381.     <meta name=\"description\" content=\"Plusieurs projets ont été réalisés par RenovAtHome. Couverture, Toiture, Isolation, Ravalement de façade, Sur mesure. Nos clients ont su faire confiance à l'entreprise et le referont sans hésitations.\">
  382. {% endblock %}
  383. {% block banner %}{% endblock %}
  384. {% block main %}
  385.     <main>
  386.         <div class=\"container-real\">
  387.             <ul class=\"category-real flex-wrap justify-center\">
  388.                 <li class=\"label-real\">Trier par :</li>
  389.                 <li id=\"all\" class=\"category actif\">TOUT</li>
  390.                 {% for cat in categories |sort((a, b) => a.id <= b.id) %}
  391.                     <li id=\"{{ cat.nom |lower|replace({' ': '-'}) }}\" class=\"category\">{{ cat.nom }}</li>
  392.                 {% endfor %}
  393.             </ul>
  394.             {% set cpt = 1 %}
  395.             {% for last in lasts %}
  396.                 <div class=\"last-real {{ cpt == 1 ? 'all'}} {{ last.catName|lower|replace({' ': '-'}) }}\" {{ cpt != 1 ? 'style =\"display:none;\"'}}>
  397.                     {% if last.avant != \"\" and last.apres != \"\" %}
  398.                     <div class=\"slider\">
  399.                         <div class=\"slider__before\" style=\"background-image:url({{ asset('uploads/realisations/'~last.avant) | imagine_filter('middle')}});\"></div>
  400.                         <div class=\"slider__separator\">
  401.                             <div class=\"bar__separator\"></div>
  402.                             <div class=\"btn__separator\">
  403.                                 <span class=\"btn__separator_left_arrow\"></span>
  404.                                 <span class=\"btn__separator_right_arrow\"></span>
  405.                             </div>
  406.                             <div class=\"bar__separator\"></div>
  407.                         </div>
  408.                         <div class=\"slider__after\" style=\"background-image:url({{ asset('uploads/realisations/'~last.apres) | imagine_filter('middle')}});\"></div>
  409.                         <input class=\"slider__range\" type=\"range\" min=\"2\" max=\"98\" value=\"50\"/>
  410.                     </div>
  411.                     {% else %}
  412.                     <img src=\"{{ asset('uploads/realisations/'~last.cover) | imagine_filter('middle')}}\" alt=\"photo de couverture de la réalisation\" class=\"img-place-holder\">
  413.                     {% endif %}
  414.                     <div class=\"desc-real\">
  415.                         <div class=\"titre\">
  416.                             <div class=\"deco-sous-titre\"></div>
  417.                             <span class=\"sous-titre\">dernière Réalisation</span>
  418.                         </div>
  419.                         <h2 class=\"titre-real\">{{ last.nom }}</h2>
  420.                         <p>{{ last.description |raw }}</p>
  421.                         <p>
  422.                             <b>Solution apportée par nos équipes :</b><br>
  423.                             {{ last.taches |raw}}
  424.                         </p>
  425.                         <a class=\"show-real\" href=\"{{ path('realisation', { 'slug' : last.slug })}}\">en découvrir plus <i class=\"fa-solid fa-arrow-right\"></i></a>
  426.                     </div>
  427.                 </div>
  428.                 {% set cpt = cpt + 1 %}
  429.             {% endfor %}
  430.             
  431.             <div class=\"all-real\">
  432.                 {% for realisation in realisations |sort((a, b) => a.id <= b.id) %}
  433.                     <div class=\"card-real {{ realisation.categorie.nom|lower|replace({' ': '-'}) }}\">
  434.                         <a class=\"titre-evenement\" href=\"{{ path('realisation', { 'slug' : realisation.slug })}}\">
  435.                             <div class=\"layer\">
  436.                                 <img src=\"{{ asset('uploads/realisations/'~realisation.cover) | imagine_filter('miniature')}}\" alt=\"{{ realisation.nom }}\">
  437.                                 <div class=\"overlay\">
  438.                                     <div class=\"text\"><span>EN DÉCOUVRIR PLUS <i class=\"fa-solid fa-arrow-right\"></i></span></div>
  439.                                 </div>
  440.                             </div>
  441.                             <span class=\"card-real-category\">{{ realisation.categorie.nom }}</span>
  442.                             <h3 class=\"card-real-title\">{{ realisation.nom }}</h3>
  443.                         </a>
  444.                     </div>
  445.                 {% endfor %}
  446.             </div>
  447.             <div class=\"more\">
  448.                 <span href=\"\" class=\"btn-more\">afficher plus de réalisations</span>
  449.             </div>
  450.         </div>
  451.     </main>
  452. {% endblock %}
  453. {% block contact %}{% endblock %}
  454. {% block footer %}{% endblock %}
  455. {% block script %}
  456.     {{ parent() }}
  457.     <script src=\"{{ asset('assets/js/main.js')}}\"></script>
  458.     <script>
  459.         \$(document).ready(function () {
  460.             var card = \$('.card-real')
  461.             var nombrereal = 4;
  462.             for (var i =nombrereal ; i < card.length; i++) {
  463.                card[i].style.display = 'none';
  464.             }
  465.             \$(\".btn-more\").click(function () {
  466.                 for (var i = nombrereal; i < nombrereal + 4; i++) {
  467.                     if (card[i]) {
  468.                         card[i].style.display = 'block';
  469.                     }
  470.                 }
  471.                 nombrereal += 4;
  472.                 if (nombrereal >= card.length) {
  473.                     event.target.style.display = 'none';
  474.                 }
  475.             });
  476.             \$('.category').click(function() {
  477.                 \$('.category').each(function () {
  478.                     \$(this).removeClass('actif');
  479.                 });
  480.                 \$(this).addClass('actif');
  481.                 var category = \$(this).attr('id');
  482.                 \$('.card-real').each(function() {
  483.                     if (\$(this).hasClass(category) || category === 'all'){
  484.                         \$(this).show();
  485.                     }
  486.                     else {
  487.                         \$(this).hide();
  488.                     }
  489.                 });
  490.                 \$('.last-real').each(function() {
  491.                     if (\$(this).hasClass(category)){
  492.                         \$(this).show();
  493.                     }
  494.                     else {
  495.                         \$(this).hide();
  496.                     }
  497.                 });
  498.             });
  499.         });
  500.     </script>
  501. {% endblock %}
  502. ""achievement/index.html.twig""/home/u847847315/domains/djabdigital.com/public_html/renovathome/templates/achievement/index.html.twig");
  503.     }
  504. }