var/cache/dev/twig/38/380499cf190565c4bc3066853ac84d46.php line 50

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. /* front/blog/index.html.twig */
  14. class __TwigTemplate_bac45faab136c71207c8b531b79296ab extends 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.             'bodyClass' => [$this'block_bodyClass'],
  24.             'content' => [$this'block_content'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layouts/front.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/blog/index.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/blog/index.html.twig"));
  40.         $this->parent $this->loadTemplate("layouts/front.html.twig""front/blog/index.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_bodyClass($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyClass"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyClass"));
  55.         echo "interne";
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.         
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  60.     }
  61.     // line 5
  62.     public function block_content($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  69.         // line 6
  70.         echo "    <section class=\"title-page\" style=\"background:url(";
  71.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/title-page.jpg"), "html"nulltrue);
  72.         echo ")\">
  73.         <div class=\"container\">
  74.             <div class=\"row\">
  75.                 <div class=\"head_page\">
  76.                     <div class=\"head\"> Blog</div>
  77.                     <div class=\"sperateur\"></div>
  78.                     <div class=\"sub_title\"> Découvrez nos actualités </div>
  79.                 </div>
  80.                 <div class=\"arrows_head\">
  81.                     <a href=\"#\">
  82.                         <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\"
  83.                              id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 492 492\"
  84.                              style=\"enable-background:new 0 0 492 492;\" xml:space=\"preserve\" fill=\"#fff\">
  85.                     <g>
  86.                         <g>
  87.                             <path xmlns=\"http://www.w3.org/2000/svg\" fill=\"\"
  88.                                   d=\"M198.608,246.104L382.664,62.04c5.068-5.056,7.856-11.816,7.856-19.024c0-7.212-2.788-13.968-7.856-19.032l-16.128-16.12    C361.476,2.792,354.712,0,347.504,0s-13.964,2.792-19.028,7.864L109.328,227.008c-5.084,5.08-7.868,11.868-7.848,19.084    c-0.02,7.248,2.76,14.028,7.848,19.112l218.944,218.932c5.064,5.072,11.82,7.864,19.032,7.864c7.208,0,13.964-2.792,19.032-7.864    l16.124-16.12c10.492-10.492,10.492-27.572,0-38.06L198.608,246.104z\"/>
  89.                         </g></svg>
  90.                     <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\"
  91.                          id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 492 492\" style=\"enable-background:new 0 0 492 492;\"
  92.                          xml:space=\"preserve\" fill=\"#fff\">
  93.                     <g>
  94.                         <g>
  95.                             <path xmlns=\"http://www.w3.org/2000/svg\" fill=\"\"
  96.                                   d=\"M198.608,246.104L382.664,62.04c5.068-5.056,7.856-11.816,7.856-19.024c0-7.212-2.788-13.968-7.856-19.032l-16.128-16.12    C361.476,2.792,354.712,0,347.504,0s-13.964,2.792-19.028,7.864L109.328,227.008c-5.084,5.08-7.868,11.868-7.848,19.084    c-0.02,7.248,2.76,14.028,7.848,19.112l218.944,218.932c5.064,5.072,11.82,7.864,19.032,7.864c7.208,0,13.964-2.792,19.032-7.864    l16.124-16.12c10.492-10.492,10.492-27.572,0-38.06L198.608,246.104z\"/>
  97.                         </g></svg>
  98.                     </a>
  99.                 </div>
  100.             </div>
  101.         </div>
  102.     </section>
  103.     <section class=\"breadcumbs\">
  104.         <div class=\"container\">
  105.             <div class=\"row\">
  106.                 <div class=\"crumbs\"><a href=\"#\"> Home </a> > <a href=\"\"> Blog </a></div>
  107.             </div>
  108.         </div>
  109.     </section>
  110.     <section class=\"bloc1\">
  111.         <div class=\"container\">
  112.             <div class=\"row\">
  113.                 <div class=\"blocs\">
  114.                     <form id=\"filter\">
  115.                         <div class=\"colf\">
  116.                             <p class=\"title_filter\"> Vous recherchez ? </p>
  117.                         </div>
  118.                         <div class=\"colf\">
  119.                             <input id=\"keywords\" name=\"keywords\" type=\"text\" class=\"input\" placeholder=\"Mots clés..\"
  120.                                    value=\"";
  121.         // line 55
  122.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'55$this->source); })()), "request", [], "any"falsefalsefalse55), "get", [=> "keywords"=> ""], "method"falsefalsefalse55), "html"nulltrue);
  123.         echo "\">
  124.                         </div>
  125.                         <div class=\"colf\">
  126.                             <div id=\"date-picker-example\" class=\"md-form md-outline input-with-post-icon\">
  127.                                 <input name=\"date\" placeholder=\"Select date\" type=\"text\" id=\"date\"
  128.                                        class=\"form-control js-datepicker\" value=\"";
  129.         // line 60
  130.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'60$this->source); })()), "request", [], "any"falsefalsefalse60), "get", [=> "date"=> ""], "method"falsefalsefalse60), "html"nulltrue);
  131.         echo "\">
  132.                                 <i class=\"fa fa-calendar input-prefix\" tabindex=0></i>
  133.                             </div>
  134.                         </div>
  135.                         <div class=\"colf\">
  136.                             <button type=\"submit\" class=\"submit\" /><i class=\"icon icon-left-arrow gly-rotate\">  </i>  Rechercher</button>
  137.                         </div>
  138.                     </form>
  139.                 </div>
  140.             </div>
  141.         </div>
  142.     </section>
  143.     <section class=\"stage blog\">
  144.         <div class=\"container\">
  145.             <div class=\"row\">
  146.                 <div class=\"list-actus stage_list\">
  147.                     ";
  148.         // line 76
  149.         if ((twig_length_filter($this->env, (isset($context["posts"]) || array_key_exists("posts"$context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.'76$this->source); })())) > 0)) {
  150.             // line 77
  151.             echo "                        ";
  152.             $context['_parent'] = $context;
  153.             $context['_seq'] = twig_ensure_traversable((isset($context["posts"]) || array_key_exists("posts"$context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.'77$this->source); })()));
  154.             foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
  155.                 // line 78
  156.                 echo "                            <div class=\"actus\">
  157.                                 <div class=\"actus-img\">
  158.                                     <a href=\"";
  159.                 // line 80
  160.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_blog_single", ["slug" => twig_get_attribute($this->env$this->source$context["post"], "slug", [], "any"falsefalsefalse80)]), "html"nulltrue);
  161.                 echo "\"><img src=\"";
  162.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/" twig_get_attribute($this->env$this->source$context["post"], "image", [], "any"falsefalsefalse80))), "html"nulltrue);
  163.                 echo "\"></a>
  164.                                 </div>
  165.                                 <div class=\"content-actus\">
  166.                                     <div class=\"titre\"> <a href=\"";
  167.                 // line 83
  168.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_blog_single", ["slug" => twig_get_attribute($this->env$this->source$context["post"], "slug", [], "any"falsefalsefalse83)]), "html"nulltrue);
  169.                 echo "\">";
  170.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["post"], "title", [], "any"falsefalsefalse83), "html"nulltrue);
  171.                 echo "</a></div>
  172.                                     <div class=\"sous-titre\"> <a href=\"";
  173.                 // line 84
  174.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_blog_single", ["slug" => twig_get_attribute($this->env$this->source$context["post"], "slug", [], "any"falsefalsefalse84)]), "html"nulltrue);
  175.                 echo "\">Publié le : ";
  176.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["post"], "publishAt", [], "any"falsefalsefalse84), "d/m/Y"), "html"nulltrue);
  177.                 echo "</a></div>
  178.                                     <div class=\"sperateur\"></div>
  179.                                     <div class=\"expert\">
  180.                                         ";
  181.                 // line 87
  182.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\CmsExtension']->excerpt(twig_get_attribute($this->env$this->source$context["post"], "excerpt", [], "any"falsefalsefalse87), 150), "html"nulltrue);
  183.                 echo "
  184.                                     </div>
  185.                                 </div>
  186.                             </div>
  187.                         ";
  188.             }
  189.             $_parent $context['_parent'];
  190.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
  191.             $context array_intersect_key($context$_parent) + $_parent;
  192.             // line 92
  193.             echo "                    ";
  194.         } else {
  195.             // line 93
  196.             echo "                        <div class=\"alert alert-info\" role=\"alert\">
  197.                             Pas d'article disponible pour le moment.
  198.                         </div>
  199.                     ";
  200.         }
  201.         // line 97
  202.         echo "                </div>
  203.             </div>
  204.             ";
  205.         // line 99
  206.         if ((twig_length_filter($this->env, (isset($context["posts"]) || array_key_exists("posts"$context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.'99$this->source); })())) > 0)) {
  207.             // line 100
  208.             echo "                <div class=\"row\">
  209.                     <div class=\"link_actus\">
  210.                         <input type=\"hidden\" id=\"page\" value=\"";
  211.             // line 102
  212.             echo twig_escape_filter($this->env, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'102$this->source); })()), "html"nulltrue);
  213.             echo "\"/>
  214.                         <input type=\"hidden\" id=\"limit\" value=\"";
  215.             // line 103
  216.             echo twig_escape_filter($this->env, (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'103$this->source); })()), "html"nulltrue);
  217.             echo "\"/>
  218.                         <a id=\"load-more\" href=\"#\"> <i class=\"icon icon-left-arrow gly-rotate\"></i> charger plus </a>
  219.                         <img id=\"img-loading\" src=\"";
  220.             // line 105
  221.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/loading.gif"), "html"nulltrue);
  222.             echo "\" style=\"width: 80px; height: 80px; display: none;\">
  223.                     </div>
  224.                 </div>
  225.             ";
  226.         }
  227.         // line 109
  228.         echo "        </div>
  229.     </section>
  230. ";
  231.         
  232.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  233.         
  234.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  235.     }
  236.     // line 114
  237.     public function block_javascripts($context, array $blocks = [])
  238.     {
  239.         $macros $this->macros;
  240.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  241.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  242.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  243.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  244.         // line 115
  245.         echo "    ";
  246.         $this->displayParentBlock("javascripts"$context$blocks);
  247.         echo "
  248.     <script type=\"text/javascript\">
  249.         \$(function () {
  250.             \$('#load-more').on('click', function (e) {
  251.                 e.preventDefault();
  252.                 \$('#load-more').hide();
  253.                 \$('#img-loading').show();
  254.                 \$.ajax({
  255.                     url: Routing.generate('page_blog_paginate'),
  256.                     data: {
  257.                         'page': \$('#page').val(),
  258.                         'limit': \$('#limit').val(),
  259.                         'keywords': \$('#keywords').val(),
  260.                         'date': \$('#date').val(),
  261.                     },
  262.                     success: function (html) {
  263.                         if (html != '') {
  264.                             \$('.stage_list').append(html);
  265.                             var page = parseInt(\$('#page').val()) + 1;
  266.                             \$('#page').val(page);
  267.                             \$('#load-more').show();
  268.                         }
  269.                         \$('#img-loading').hide();
  270.                     }
  271.                 });
  272.             });
  273.         });
  274.     </script>
  275. ";
  276.         
  277.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  278.         
  279.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  280.     }
  281.     public function getTemplateName()
  282.     {
  283.         return "front/blog/index.html.twig";
  284.     }
  285.     public function isTraitable()
  286.     {
  287.         return false;
  288.     }
  289.     public function getDebugInfo()
  290.     {
  291.         return array (  271 => 115,  261 => 114,  248 => 109,  241 => 105,  236 => 103,  232 => 102,  228 => 100,  226 => 99,  222 => 97,  216 => 93,  213 => 92,  202 => 87,  194 => 84,  188 => 83,  180 => 80,  176 => 78,  171 => 77,  169 => 76,  150 => 60,  142 => 55,  89 => 6,  79 => 5,  60 => 3,  37 => 1,);
  292.     }
  293.     public function getSourceContext()
  294.     {
  295.         return new Source("{% extends 'layouts/front.html.twig' %}
  296. {% block bodyClass %}interne{% endblock %}
  297. {% block content %}
  298.     <section class=\"title-page\" style=\"background:url({{ asset('build/images/title-page.jpg') }})\">
  299.         <div class=\"container\">
  300.             <div class=\"row\">
  301.                 <div class=\"head_page\">
  302.                     <div class=\"head\"> Blog</div>
  303.                     <div class=\"sperateur\"></div>
  304.                     <div class=\"sub_title\"> Découvrez nos actualités </div>
  305.                 </div>
  306.                 <div class=\"arrows_head\">
  307.                     <a href=\"#\">
  308.                         <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\"
  309.                              id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 492 492\"
  310.                              style=\"enable-background:new 0 0 492 492;\" xml:space=\"preserve\" fill=\"#fff\">
  311.                     <g>
  312.                         <g>
  313.                             <path xmlns=\"http://www.w3.org/2000/svg\" fill=\"\"
  314.                                   d=\"M198.608,246.104L382.664,62.04c5.068-5.056,7.856-11.816,7.856-19.024c0-7.212-2.788-13.968-7.856-19.032l-16.128-16.12    C361.476,2.792,354.712,0,347.504,0s-13.964,2.792-19.028,7.864L109.328,227.008c-5.084,5.08-7.868,11.868-7.848,19.084    c-0.02,7.248,2.76,14.028,7.848,19.112l218.944,218.932c5.064,5.072,11.82,7.864,19.032,7.864c7.208,0,13.964-2.792,19.032-7.864    l16.124-16.12c10.492-10.492,10.492-27.572,0-38.06L198.608,246.104z\"/>
  315.                         </g></svg>
  316.                     <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\"
  317.                          id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 492 492\" style=\"enable-background:new 0 0 492 492;\"
  318.                          xml:space=\"preserve\" fill=\"#fff\">
  319.                     <g>
  320.                         <g>
  321.                             <path xmlns=\"http://www.w3.org/2000/svg\" fill=\"\"
  322.                                   d=\"M198.608,246.104L382.664,62.04c5.068-5.056,7.856-11.816,7.856-19.024c0-7.212-2.788-13.968-7.856-19.032l-16.128-16.12    C361.476,2.792,354.712,0,347.504,0s-13.964,2.792-19.028,7.864L109.328,227.008c-5.084,5.08-7.868,11.868-7.848,19.084    c-0.02,7.248,2.76,14.028,7.848,19.112l218.944,218.932c5.064,5.072,11.82,7.864,19.032,7.864c7.208,0,13.964-2.792,19.032-7.864    l16.124-16.12c10.492-10.492,10.492-27.572,0-38.06L198.608,246.104z\"/>
  323.                         </g></svg>
  324.                     </a>
  325.                 </div>
  326.             </div>
  327.         </div>
  328.     </section>
  329.     <section class=\"breadcumbs\">
  330.         <div class=\"container\">
  331.             <div class=\"row\">
  332.                 <div class=\"crumbs\"><a href=\"#\"> Home </a> > <a href=\"\"> Blog </a></div>
  333.             </div>
  334.         </div>
  335.     </section>
  336.     <section class=\"bloc1\">
  337.         <div class=\"container\">
  338.             <div class=\"row\">
  339.                 <div class=\"blocs\">
  340.                     <form id=\"filter\">
  341.                         <div class=\"colf\">
  342.                             <p class=\"title_filter\"> Vous recherchez ? </p>
  343.                         </div>
  344.                         <div class=\"colf\">
  345.                             <input id=\"keywords\" name=\"keywords\" type=\"text\" class=\"input\" placeholder=\"Mots clés..\"
  346.                                    value=\"{{ app.request.get('keywords', '') }}\">
  347.                         </div>
  348.                         <div class=\"colf\">
  349.                             <div id=\"date-picker-example\" class=\"md-form md-outline input-with-post-icon\">
  350.                                 <input name=\"date\" placeholder=\"Select date\" type=\"text\" id=\"date\"
  351.                                        class=\"form-control js-datepicker\" value=\"{{ app.request.get('date', '') }}\">
  352.                                 <i class=\"fa fa-calendar input-prefix\" tabindex=0></i>
  353.                             </div>
  354.                         </div>
  355.                         <div class=\"colf\">
  356.                             <button type=\"submit\" class=\"submit\" /><i class=\"icon icon-left-arrow gly-rotate\">  </i>  Rechercher</button>
  357.                         </div>
  358.                     </form>
  359.                 </div>
  360.             </div>
  361.         </div>
  362.     </section>
  363.     <section class=\"stage blog\">
  364.         <div class=\"container\">
  365.             <div class=\"row\">
  366.                 <div class=\"list-actus stage_list\">
  367.                     {% if posts|length > 0 %}
  368.                         {% for post in posts %}
  369.                             <div class=\"actus\">
  370.                                 <div class=\"actus-img\">
  371.                                     <a href=\"{{ path('page_blog_single', {slug: post.slug}) }}\"><img src=\"{{ asset('uploads/'~post.image) }}\"></a>
  372.                                 </div>
  373.                                 <div class=\"content-actus\">
  374.                                     <div class=\"titre\"> <a href=\"{{ path('page_blog_single', {slug: post.slug}) }}\">{{ post.title }}</a></div>
  375.                                     <div class=\"sous-titre\"> <a href=\"{{ path('page_blog_single', {slug: post.slug}) }}\">Publié le : {{ post.publishAt|date('d/m/Y') }}</a></div>
  376.                                     <div class=\"sperateur\"></div>
  377.                                     <div class=\"expert\">
  378.                                         {{ post.excerpt|excerpt(150) }}
  379.                                     </div>
  380.                                 </div>
  381.                             </div>
  382.                         {% endfor %}
  383.                     {% else %}
  384.                         <div class=\"alert alert-info\" role=\"alert\">
  385.                             Pas d'article disponible pour le moment.
  386.                         </div>
  387.                     {% endif %}
  388.                 </div>
  389.             </div>
  390.             {% if posts|length > 0 %}
  391.                 <div class=\"row\">
  392.                     <div class=\"link_actus\">
  393.                         <input type=\"hidden\" id=\"page\" value=\"{{ page }}\"/>
  394.                         <input type=\"hidden\" id=\"limit\" value=\"{{ limit }}\"/>
  395.                         <a id=\"load-more\" href=\"#\"> <i class=\"icon icon-left-arrow gly-rotate\"></i> charger plus </a>
  396.                         <img id=\"img-loading\" src=\"{{ asset('build/images/loading.gif') }}\" style=\"width: 80px; height: 80px; display: none;\">
  397.                     </div>
  398.                 </div>
  399.             {% endif %}
  400.         </div>
  401.     </section>
  402. {% endblock %}
  403. {% block javascripts %}
  404.     {{ parent() }}
  405.     <script type=\"text/javascript\">
  406.         \$(function () {
  407.             \$('#load-more').on('click', function (e) {
  408.                 e.preventDefault();
  409.                 \$('#load-more').hide();
  410.                 \$('#img-loading').show();
  411.                 \$.ajax({
  412.                     url: Routing.generate('page_blog_paginate'),
  413.                     data: {
  414.                         'page': \$('#page').val(),
  415.                         'limit': \$('#limit').val(),
  416.                         'keywords': \$('#keywords').val(),
  417.                         'date': \$('#date').val(),
  418.                     },
  419.                     success: function (html) {
  420.                         if (html != '') {
  421.                             \$('.stage_list').append(html);
  422.                             var page = parseInt(\$('#page').val()) + 1;
  423.                             \$('#page').val(page);
  424.                             \$('#load-more').show();
  425.                         }
  426.                         \$('#img-loading').hide();
  427.                     }
  428.                 });
  429.             });
  430.         });
  431.     </script>
  432. {% endblock %}
  433. ""front/blog/index.html.twig""/home/saco/subdomains/preprod/templates/front/blog/index.html.twig");
  434.     }
  435. }