var/cache/dev/twig/4b/4b65aed7990fdad86509ddde9b63b09c.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/stage_academy/index.html.twig */
  14. class __TwigTemplate_862079904d49cee5b75237324f298b80 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/stage_academy/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/stage_academy/index.html.twig"));
  40.         $this->parent $this->loadTemplate("layouts/front.html.twig""front/stage_academy/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 stage-acdemie\" style=\"background:url(";
  71.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["blocs"]) || array_key_exists("blocs"$context) ? $context["blocs"] : (function () { throw new RuntimeError('Variable "blocs" does not exist.'6$this->source); })()), "stage_academie_bloc_title", [], "any"falsefalsefalse6), "image", [], "any"falsefalsefalse6))), "html"nulltrue);
  72.         echo ")\">
  73.         <div class=\"container\">
  74.             <div class=\"row\">
  75.                 <div class=\"head_page\">
  76.                     <div class=\"head\"> ";
  77.         // line 10
  78.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["blocs"]) || array_key_exists("blocs"$context) ? $context["blocs"] : (function () { throw new RuntimeError('Variable "blocs" does not exist.'10$this->source); })()), "stage_academie_bloc_title", [], "any"falsefalsefalse10), "title", [], "any"falsefalsefalse10), "html"nulltrue);
  79.         echo "</div>
  80.                     <div class=\"sperateur\"></div>
  81.                     <div class=\"sub_title\"> ";
  82.         // line 12
  83.         echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["blocs"]) || array_key_exists("blocs"$context) ? $context["blocs"] : (function () { throw new RuntimeError('Variable "blocs" does not exist.'12$this->source); })()), "stage_academie_bloc_title", [], "any"falsefalsefalse12), "description", [], "any"falsefalsefalse12);
  84.         echo " </div>
  85.                 </div>
  86.                 <div class=\"arrows_head\">
  87.                     <a href=\"#\">
  88.                         <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\"
  89.                              id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 492 492\"
  90.                              style=\"enable-background:new 0 0 492 492;\" xml:space=\"preserve\" fill=\"#fff\">
  91.                     <g>
  92.                         <g>
  93.                             <path xmlns=\"http://www.w3.org/2000/svg\" fill=\"\"
  94.                                   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\"/>
  95.                         </g></svg>
  96.                     <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\"
  97.                          id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 492 492\" style=\"enable-background:new 0 0 492 492;\"
  98.                          xml:space=\"preserve\" fill=\"#fff\">
  99.                     <g>
  100.                         <g>
  101.                             <path xmlns=\"http://www.w3.org/2000/svg\" fill=\"\"
  102.                                   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\"/>
  103.                         </g></svg>
  104.                     </a>
  105.                 </div>
  106.             </div>
  107.         </div>
  108.     </section>
  109.     <section class=\"breadcumbs\">
  110.         <div class=\"container\">
  111.             <div class=\"row\">
  112.                 <div class=\"crumbs\"><a href=\"#\"> Home </a> > <a href=\"\"> Stages Académie </a></div>
  113.             </div>
  114.         </div>
  115.     </section>
  116.     <section class=\"bloc1\">
  117.         <div class=\"container\">
  118.             <div class=\"row\">
  119.                 <div class=\"blocs\">
  120.                     <form id=\"filter\">
  121.                         <div class=\"colf\">
  122.                             <p class=\"title_filter\"> Vous recherchez ? </p>
  123.                         </div>
  124.                         <div class=\"colf\">
  125.                             <select id=\"ville\" class=\"form-control\" name=\"ville\">
  126.                                 <option value=\"Paris\" ";
  127.         // line 55
  128.         if ((twig_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", [=> "ville"], "method"falsefalsefalse55) == "Paris")) {
  129.             echo "selected=\"selected\"";
  130.         }
  131.         echo ">Paris</option>
  132.                                 <option value=\"Bordeaux\" ";
  133.         // line 56
  134.         if ((twig_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.'56$this->source); })()), "request", [], "any"falsefalsefalse56), "get", [=> "ville"], "method"falsefalsefalse56) == "Bordeaux")) {
  135.             echo "selected=\"selected\"";
  136.         }
  137.         echo ">Bordeaux</option>
  138.                                 <option value=\"London\" ";
  139.         // line 57
  140.         if ((twig_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.'57$this->source); })()), "request", [], "any"falsefalsefalse57), "get", [=> "ville"], "method"falsefalsefalse57) == "London")) {
  141.             echo "selected=\"selected\"";
  142.         }
  143.         echo ">London</option>
  144.                                 <option value=\"Lisboa\" ";
  145.         // line 58
  146.         if ((twig_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.'58$this->source); })()), "request", [], "any"falsefalsefalse58), "get", [=> "ville"], "method"falsefalsefalse58) == "Lisboa")) {
  147.             echo "selected=\"selected\"";
  148.         }
  149.         echo ">Lisboa</option>
  150.                             </select>
  151.                         </div>
  152.                         <div class=\"colf\">
  153.                             <input id=\"keywords\" name=\"keywords\" type=\"text\" class=\"input\" placeholder=\"Mots clés..\"
  154.                                    value=\"";
  155.         // line 63
  156.         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.'63$this->source); })()), "request", [], "any"falsefalsefalse63), "get", [=> "keywords"=> ""], "method"falsefalsefalse63), "html"nulltrue);
  157.         echo "\">
  158.                         </div>
  159.                         <div class=\"colf\">
  160.                             <button type=\"submit\" class=\"submit\" /><i class=\"icon icon-left-arrow gly-rotate\">  </i>  Rechercher</button>
  161.                         </div>
  162.                     </form>
  163.                 </div>
  164.             </div>
  165.         </div>
  166.     </section>
  167.     <section class=\"stage\">
  168.         <div class=\"container\">
  169.             <div class=\"row\">
  170.                 <div class=\"stage_list\">
  171.                     ";
  172.         // line 77
  173.         if ((twig_length_filter($this->env, (isset($context["stages"]) || array_key_exists("stages"$context) ? $context["stages"] : (function () { throw new RuntimeError('Variable "stages" does not exist.'77$this->source); })())) > 0)) {
  174.             // line 78
  175.             echo "                        ";
  176.             $context['_parent'] = $context;
  177.             $context['_seq'] = twig_ensure_traversable((isset($context["stages"]) || array_key_exists("stages"$context) ? $context["stages"] : (function () { throw new RuntimeError('Variable "stages" does not exist.'78$this->source); })()));
  178.             foreach ($context['_seq'] as $context["_key"] => $context["stage"]) {
  179.                 // line 79
  180.                 echo "                            <div class=\"forma forma_stage\">
  181.                                 <div class=\"image\">
  182.                                     <a href=\"";
  183.                 // line 81
  184.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_stage_academie_details", ["slug" => twig_get_attribute($this->env$this->source$context["stage"], "slug", [], "any"falsefalsefalse81)]), "html"nulltrue);
  185.                 echo "\"><img src=\"";
  186.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/" twig_get_attribute($this->env$this->source$context["stage"], "image", [], "any"falsefalsefalse81))), "html"nulltrue);
  187.                 echo "\"></a>
  188.                                     <div class=\"prise\"><a href=\"";
  189.                 // line 82
  190.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_stage_academie_details", ["slug" => twig_get_attribute($this->env$this->source$context["stage"], "slug", [], "any"falsefalsefalse82)]), "html"nulltrue);
  191.                 echo "\">Prise en charge Formation</a></div>
  192.                                 </div>
  193.                                 <div class=\"conten-formation\">
  194.                                     <div class=\"title-content-formation\"><a href=\"";
  195.                 // line 85
  196.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_stage_academie_details", ["slug" => twig_get_attribute($this->env$this->source$context["stage"], "slug", [], "any"falsefalsefalse85)]), "html"nulltrue);
  197.                 echo "\">";
  198.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["stage"], "getSubTitle", [], "method"falsefalsefalse85), "html"nulltrue);
  199.                 echo " :</a></div>
  200.                                     <div class=\"location\">  <a href=\"";
  201.                 // line 86
  202.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_stage_academie_details", ["slug" => twig_get_attribute($this->env$this->source$context["stage"], "slug", [], "any"falsefalsefalse86)]), "html"nulltrue);
  203.                 echo "\"> ";
  204.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["stage"], "title", [], "any"falsefalsefalse86), "html"nulltrue);
  205.                 echo " </a></div>
  206.                                     <div class=\"sperateur\"></div>
  207.                                     <div class=\"expert\">";
  208.                 // line 88
  209.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\CmsExtension']->excerpt(twig_get_attribute($this->env$this->source$context["stage"], "description", [], "any"falsefalsefalse88), 100), "html"nulltrue);
  210.                 echo "</div>
  211.                                 </div>
  212.                             </div>
  213.                         ";
  214.             }
  215.             $_parent $context['_parent'];
  216.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stage'], $context['_parent'], $context['loop']);
  217.             $context array_intersect_key($context$_parent) + $_parent;
  218.             // line 92
  219.             echo "                    ";
  220.         } else {
  221.             // line 93
  222.             echo "                        <div class=\"alert alert-info\" role=\"alert\">
  223.                             Pas de formation disponible pour le moment.
  224.                         </div>
  225.                     ";
  226.         }
  227.         // line 97
  228.         echo "                </div>
  229.             </div>
  230.             ";
  231.         // line 99
  232.         if ((twig_length_filter($this->env, (isset($context["stages"]) || array_key_exists("stages"$context) ? $context["stages"] : (function () { throw new RuntimeError('Variable "stages" does not exist.'99$this->source); })())) > 0)) {
  233.             // line 100
  234.             echo "                <div class=\"row\">
  235.                     <div class=\"link_actus\">
  236.                         <input type=\"hidden\" id=\"page\" value=\"";
  237.             // line 102
  238.             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);
  239.             echo "\"/>
  240.                         <input type=\"hidden\" id=\"limit\" value=\"";
  241.             // line 103
  242.             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);
  243.             echo "\"/>
  244.                         <a id=\"load-more\" href=\"#\"> <i class=\"icon icon-left-arrow gly-rotate\"></i> charger plus </a>
  245.                         <img id=\"img-loading\" src=\"";
  246.             // line 105
  247.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/loading.gif"), "html"nulltrue);
  248.             echo "\" style=\"width: 80px; height: 80px; display: none;\">
  249.                     </div>
  250.                 </div>
  251.             ";
  252.         }
  253.         // line 109
  254.         echo "        </div>
  255.     </section>
  256. ";
  257.         
  258.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  259.         
  260.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  261.     }
  262.     // line 113
  263.     public function block_javascripts($context, array $blocks = [])
  264.     {
  265.         $macros $this->macros;
  266.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  267.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  268.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  269.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  270.         // line 114
  271.         echo "    ";
  272.         $this->displayParentBlock("javascripts"$context$blocks);
  273.         echo "
  274.     <script type=\"text/javascript\">
  275.         \$(function () {
  276.             \$('#load-more').on('click', function (e) {
  277.                 e.preventDefault();
  278.                 \$('#load-more').hide();
  279.                 \$('#img-loading').show();
  280.                 \$.ajax({
  281.                     url: Routing.generate('page_stage_academie_paginate'),
  282.                     data: {
  283.                         'page': \$('#page').val(),
  284.                         'limit': \$('#limit').val(),
  285.                         'keywords': \$('#keywords').val(),
  286.                         'ville': \$('#ville').val(),
  287.                         'date': \$('#date').val(),
  288.                     },
  289.                     success: function (html) {
  290.                         if (html != '') {
  291.                             \$('.stage_list').append(html);
  292.                             var page = parseInt(\$('#page').val()) + 1;
  293.                             \$('#page').val(page);
  294.                             \$('#load-more').show();
  295.                         }
  296.                         \$('#img-loading').hide();
  297.                     }
  298.                 });
  299.             });
  300.         });
  301.     </script>
  302. ";
  303.         
  304.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  305.         
  306.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  307.     }
  308.     public function getTemplateName()
  309.     {
  310.         return "front/stage_academy/index.html.twig";
  311.     }
  312.     public function isTraitable()
  313.     {
  314.         return false;
  315.     }
  316.     public function getDebugInfo()
  317.     {
  318.         return array (  296 => 114,  286 => 113,  274 => 109,  267 => 105,  262 => 103,  258 => 102,  254 => 100,  252 => 99,  248 => 97,  242 => 93,  239 => 92,  229 => 88,  222 => 86,  216 => 85,  210 => 82,  204 => 81,  200 => 79,  195 => 78,  193 => 77,  176 => 63,  166 => 58,  160 => 57,  154 => 56,  148 => 55,  102 => 12,  97 => 10,  89 => 6,  79 => 5,  60 => 3,  37 => 1,);
  319.     }
  320.     public function getSourceContext()
  321.     {
  322.         return new Source("{% extends 'layouts/front.html.twig' %}
  323. {% block bodyClass %}interne{% endblock %}
  324. {% block content %}
  325.     <section class=\"title-page stage-acdemie\" style=\"background:url({{ asset('uploads/'~blocs.stage_academie_bloc_title.image) }})\">
  326.         <div class=\"container\">
  327.             <div class=\"row\">
  328.                 <div class=\"head_page\">
  329.                     <div class=\"head\"> {{ blocs.stage_academie_bloc_title.title }}</div>
  330.                     <div class=\"sperateur\"></div>
  331.                     <div class=\"sub_title\"> {{ blocs.stage_academie_bloc_title.description|raw }} </div>
  332.                 </div>
  333.                 <div class=\"arrows_head\">
  334.                     <a href=\"#\">
  335.                         <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\"
  336.                              id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 492 492\"
  337.                              style=\"enable-background:new 0 0 492 492;\" xml:space=\"preserve\" fill=\"#fff\">
  338.                     <g>
  339.                         <g>
  340.                             <path xmlns=\"http://www.w3.org/2000/svg\" fill=\"\"
  341.                                   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\"/>
  342.                         </g></svg>
  343.                     <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\"
  344.                          id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 492 492\" style=\"enable-background:new 0 0 492 492;\"
  345.                          xml:space=\"preserve\" fill=\"#fff\">
  346.                     <g>
  347.                         <g>
  348.                             <path xmlns=\"http://www.w3.org/2000/svg\" fill=\"\"
  349.                                   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\"/>
  350.                         </g></svg>
  351.                     </a>
  352.                 </div>
  353.             </div>
  354.         </div>
  355.     </section>
  356.     <section class=\"breadcumbs\">
  357.         <div class=\"container\">
  358.             <div class=\"row\">
  359.                 <div class=\"crumbs\"><a href=\"#\"> Home </a> > <a href=\"\"> Stages Académie </a></div>
  360.             </div>
  361.         </div>
  362.     </section>
  363.     <section class=\"bloc1\">
  364.         <div class=\"container\">
  365.             <div class=\"row\">
  366.                 <div class=\"blocs\">
  367.                     <form id=\"filter\">
  368.                         <div class=\"colf\">
  369.                             <p class=\"title_filter\"> Vous recherchez ? </p>
  370.                         </div>
  371.                         <div class=\"colf\">
  372.                             <select id=\"ville\" class=\"form-control\" name=\"ville\">
  373.                                 <option value=\"Paris\" {% if app.request.get('ville') == 'Paris' %}selected=\"selected\"{% endif %}>Paris</option>
  374.                                 <option value=\"Bordeaux\" {% if app.request.get('ville') == 'Bordeaux' %}selected=\"selected\"{% endif %}>Bordeaux</option>
  375.                                 <option value=\"London\" {% if app.request.get('ville') == 'London' %}selected=\"selected\"{% endif %}>London</option>
  376.                                 <option value=\"Lisboa\" {% if app.request.get('ville') == 'Lisboa' %}selected=\"selected\"{% endif %}>Lisboa</option>
  377.                             </select>
  378.                         </div>
  379.                         <div class=\"colf\">
  380.                             <input id=\"keywords\" name=\"keywords\" type=\"text\" class=\"input\" placeholder=\"Mots clés..\"
  381.                                    value=\"{{ app.request.get('keywords', '') }}\">
  382.                         </div>
  383.                         <div class=\"colf\">
  384.                             <button type=\"submit\" class=\"submit\" /><i class=\"icon icon-left-arrow gly-rotate\">  </i>  Rechercher</button>
  385.                         </div>
  386.                     </form>
  387.                 </div>
  388.             </div>
  389.         </div>
  390.     </section>
  391.     <section class=\"stage\">
  392.         <div class=\"container\">
  393.             <div class=\"row\">
  394.                 <div class=\"stage_list\">
  395.                     {% if stages|length > 0 %}
  396.                         {% for stage in stages %}
  397.                             <div class=\"forma forma_stage\">
  398.                                 <div class=\"image\">
  399.                                     <a href=\"{{ path('page_stage_academie_details', {slug: stage.slug}) }}\"><img src=\"{{ asset('uploads/'~stage.image) }}\"></a>
  400.                                     <div class=\"prise\"><a href=\"{{ path('page_stage_academie_details', {slug: stage.slug}) }}\">Prise en charge Formation</a></div>
  401.                                 </div>
  402.                                 <div class=\"conten-formation\">
  403.                                     <div class=\"title-content-formation\"><a href=\"{{ path('page_stage_academie_details', {slug: stage.slug}) }}\">{{ stage.getSubTitle() }} :</a></div>
  404.                                     <div class=\"location\">  <a href=\"{{ path('page_stage_academie_details', {slug: stage.slug}) }}\"> {{ stage.title }} </a></div>
  405.                                     <div class=\"sperateur\"></div>
  406.                                     <div class=\"expert\">{{ stage.description|excerpt(100) }}</div>
  407.                                 </div>
  408.                             </div>
  409.                         {% endfor %}
  410.                     {% else %}
  411.                         <div class=\"alert alert-info\" role=\"alert\">
  412.                             Pas de formation disponible pour le moment.
  413.                         </div>
  414.                     {% endif %}
  415.                 </div>
  416.             </div>
  417.             {% if stages|length > 0 %}
  418.                 <div class=\"row\">
  419.                     <div class=\"link_actus\">
  420.                         <input type=\"hidden\" id=\"page\" value=\"{{ page }}\"/>
  421.                         <input type=\"hidden\" id=\"limit\" value=\"{{ limit }}\"/>
  422.                         <a id=\"load-more\" href=\"#\"> <i class=\"icon icon-left-arrow gly-rotate\"></i> charger plus </a>
  423.                         <img id=\"img-loading\" src=\"{{ asset('build/images/loading.gif') }}\" style=\"width: 80px; height: 80px; display: none;\">
  424.                     </div>
  425.                 </div>
  426.             {% endif %}
  427.         </div>
  428.     </section>
  429. {% endblock %}
  430. {% block javascripts %}
  431.     {{ parent() }}
  432.     <script type=\"text/javascript\">
  433.         \$(function () {
  434.             \$('#load-more').on('click', function (e) {
  435.                 e.preventDefault();
  436.                 \$('#load-more').hide();
  437.                 \$('#img-loading').show();
  438.                 \$.ajax({
  439.                     url: Routing.generate('page_stage_academie_paginate'),
  440.                     data: {
  441.                         'page': \$('#page').val(),
  442.                         'limit': \$('#limit').val(),
  443.                         'keywords': \$('#keywords').val(),
  444.                         'ville': \$('#ville').val(),
  445.                         'date': \$('#date').val(),
  446.                     },
  447.                     success: function (html) {
  448.                         if (html != '') {
  449.                             \$('.stage_list').append(html);
  450.                             var page = parseInt(\$('#page').val()) + 1;
  451.                             \$('#page').val(page);
  452.                             \$('#load-more').show();
  453.                         }
  454.                         \$('#img-loading').hide();
  455.                     }
  456.                 });
  457.             });
  458.         });
  459.     </script>
  460. {% endblock %}
  461. ""front/stage_academy/index.html.twig""/home/saco/subdomains/preprod/templates/front/stage_academy/index.html.twig");
  462.     }
  463. }