var/cache/dev/twig/88/88f9e65401677e6e7d6ae2a8b8f49ace.php line 151

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. /* page/home.html.twig */
  14. class __TwigTemplate_732e72d05a14e6df0d704acddf288122 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.             'title' => [$this'block_title'],
  24.             'stylesheets' => [$this'block_stylesheets'],
  25.             'body' => [$this'block_body'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""page/home.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""page/home.html.twig"));
  41.         // line 44
  42.         $macros["selfm"] = $this->macros["selfm"] = $this;
  43.         // line 54
  44.         $context["bodyClass"] = "home";
  45.         // line 1
  46.         $this->parent $this->loadTemplate("base.html.twig""page/home.html.twig"1);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 47
  54.     public function block_title($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         echo twig_escape_filter($this->envtwig_replace_filter(twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'47$this->source); })()), "title", [], "any"falsefalsefalse47), ["<br>" => ""]), "html"nulltrue);
  62.         
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.     }
  67.     // line 49
  68.     public function block_stylesheets($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  75.         // line 50
  76.         echo "\t";
  77.         $this->displayParentBlock("stylesheets"$context$blocks);
  78.         echo "
  79. \t";
  80.         // line 51
  81.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("home");
  82.         echo "
  83. ";
  84.         
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  86.         
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  88.     }
  89.     // line 55
  90.     public function block_body($context, array $blocks = [])
  91.     {
  92.         $macros $this->macros;
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  96.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  97.         // line 57
  98.         echo "
  99.     <div class=\"row\">
  100.         <div class=\"col-lg-3 col-12 left-column\">
  101.             <h2>Bienvenue</h2>
  102.             <div class=\"bienvenue\">
  103. \t\t\t\t";
  104.         // line 62
  105.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_EDITOR")) {
  106.             // line 63
  107.             echo "\t\t\t\t\t";
  108.             $context["url"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->getAdminUrlGenerator(), "setController", ["App\\Controller\\Admin\\PageCrudController"], "method"falsefalsefalse63), "setAction", ["edit"], "method"falsefalsefalse64), "setEntityId", [twig_get_attribute($this->env$this->source,             // line 66
  109. (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'66$this->source); })()), "id", [], "any"falsefalsefalse66)], "method"falsefalsefalse65);
  110.             // line 67
  111.             echo "\t\t\t\t\t<p><a class=\"adm-link\" href=\"";
  112.             echo twig_escape_filter($this->env, (isset($context["url"]) || array_key_exists("url"$context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.'67$this->source); })()), "html"nulltrue);
  113.             echo "\" target=\"_blank\">administrer la page</a></p>
  114. \t\t\t\t";
  115.         }
  116.         // line 69
  117.         echo "                ";
  118.         echo twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'69$this->source); })()), "content", [], "any"falsefalsefalse69);
  119.         echo "
  120.             </div>
  121. \t\t\t<div class=\"d-none d-sm-block d-md-block d-lg-none\">
  122.                 <!-- visible only on small and medium device ≥576px & <992px -->
  123. \t\t\t\t";
  124.         // line 75
  125.         echo "            \t";
  126.         echo twig_call_macro($macros["selfm"], "macro_agenda", [], 75$context$this->getSourceContext());
  127.         echo "
  128.         \t</div>
  129.             ";
  130.         // line 97
  131.         echo "            <div class=\"d-none d-lg-block d-xl-block\">
  132.                 <!-- visible only on large device ≥992px -->
  133. \t\t\t\t";
  134.         // line 100
  135.         echo "            \t";
  136.         echo twig_call_macro($macros["selfm"], "macro_themes", [], 100$context$this->getSourceContext());
  137.         echo "
  138.         \t</div>
  139.             <div class=\"d-none d-lg-block d-xl-block\">
  140.                 <!-- visible only on large device ≥992px -->
  141. \t\t\t\t";
  142.         // line 105
  143.         echo "            \t";
  144.         echo twig_call_macro($macros["selfm"], "macro_tags", [], 105$context$this->getSourceContext());
  145.         echo "
  146.         \t</div>
  147. \t\t\t
  148.         </div>
  149.         <div class=\"col-lg-6 col center-column\">
  150.             <div class=\"alaune clearfix\">
  151.                 <p class=\"text-center mb-2\">À la une</p>
  152. \t\t\t\t";
  153.         // line 113
  154.         $context["une"] = twig_first($this->env, (isset($context["articlesUne"]) || array_key_exists("articlesUne"$context) ? $context["articlesUne"] : (function () { throw new RuntimeError('Variable "articlesUne" does not exist.'113$this->source); })()));
  155.         // line 114
  156.         echo "                <a class=\"widget-link\" href=\"";
  157.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("showArticleBySlug", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["une"]) || array_key_exists("une"$context) ? $context["une"] : (function () { throw new RuntimeError('Variable "une" does not exist.'114$this->source); })()), "slug", [], "any"falsefalsefalse114)]), "html"nulltrue);
  158.         echo "\">
  159.                     <h2 class=\"text-center mb-3\">";
  160.         // line 115
  161.         echo twig_get_attribute($this->env$this->source, (isset($context["une"]) || array_key_exists("une"$context) ? $context["une"] : (function () { throw new RuntimeError('Variable "une" does not exist.'115$this->source); })()), "title", [], "any"falsefalsefalse115);
  162.         echo "</h2>
  163.                     ";
  164.         // line 116
  165.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["une"]) || array_key_exists("une"$context) ? $context["une"] : (function () { throw new RuntimeError('Variable "une" does not exist.'116$this->source); })()), "medias", [], "any"falsefalsefalse116))) {
  166.             // line 117
  167.             echo "                        ";
  168.             // line 118
  169.             echo "                        ";
  170.             // line 123
  171.             echo "                        ";
  172.             $this->loadTemplate("media/postMedias.html.twig""page/home.html.twig"123)->display(twig_array_merge($context, ["medias" => twig_get_attribute($this->env$this->source, (isset($context["une"]) || array_key_exists("une"$context) ? $context["une"] : (function () { throw new RuntimeError('Variable "une" does not exist.'123$this->source); })()), "medias", [], "any"falsefalsefalse123), "mediasType" => "thumbnails"]));
  173.             // line 124
  174.             echo "                    ";
  175.         }
  176.         // line 125
  177.         echo "                    <p>
  178.                         ";
  179.         // line 127
  180.         echo "                        ";
  181.         // line 129
  182.         echo "                        ";
  183.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_striptags(twig_get_attribute($this->env$this->source, (isset($context["une"]) || array_key_exists("une"$context) ? $context["une"] : (function () { throw new RuntimeError('Variable "une" does not exist.'129$this->source); })()), "content", [], "any"falsefalsefalse129))), "truncate", [400"..."false], "method"falsefalsefalse129), "html"nulltrue);
  184.         echo "
  185.                         
  186.                     </p>
  187.                     <p class=\"text-right\">
  188.                         <span class=\"btn btn-dark btn-icig btn-sm\">Lire la suite</span>
  189.                     </p>
  190.                 </a>
  191.             </div>
  192.             <div class=\"actualites clearfix\">
  193.                 <h2 class=\"text-center mb-3\">Actualités</h2>
  194.                 ";
  195.         // line 140
  196.         $context["articlesUne"] = twig_slice($this->env, (isset($context["articlesUne"]) || array_key_exists("articlesUne"$context) ? $context["articlesUne"] : (function () { throw new RuntimeError('Variable "articlesUne" does not exist.'140$this->source); })()), 1);
  197.         // line 141
  198.         echo "                ";
  199.         $this->loadTemplate("common/listWithImages.html.twig""page/home.html.twig"141)->display(twig_array_merge($context, ["entityType" => "article""entities" => (isset($context["articlesUne"]) || array_key_exists("articlesUne"$context) ? $context["articlesUne"] : (function () { throw new RuntimeError('Variable "articlesUne" does not exist.'141$this->source); })()), "type" => "une"]));
  200.         // line 142
  201.         echo "                ";
  202.         // line 155
  203.         echo "\t\t\t\t<p class=\"text-right\">
  204.                 \t<a class=\"btn btn-dark btn-icig btn-sm\" href=\"";
  205.         // line 156
  206.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("aLaUneList");
  207.         echo "\">Toutes les actualités</a>
  208. \t\t\t\t</p>
  209.             </div>
  210. \t\t\t<div class=\"d-none d-sm-block d-md-block d-lg-none\">
  211.                 <!-- visible only on small and medium device ≥576px & <992px -->
  212. \t\t\t\t";
  213.         // line 163
  214.         echo "            \t";
  215.         echo twig_call_macro($macros["selfm"], "macro_themes", [], 163$context$this->getSourceContext());
  216.         echo "
  217.         \t</div>
  218. \t\t\t<div class=\"d-none d-sm-block d-md-block d-lg-none\">
  219.                 <!-- visible only on small and medium device ≥576px & <992px -->
  220. \t\t\t\t";
  221.         // line 168
  222.         echo "            \t";
  223.         echo twig_call_macro($macros["selfm"], "macro_tags", [], 168$context$this->getSourceContext());
  224.         echo "
  225.         \t</div>
  226.             <div class=\"articles-fond\">
  227.                 <h2 class=\"text-center mb-3\">Analyses</h2>
  228.                 ";
  229.         // line 173
  230.         $this->loadTemplate("common/listWithImages.html.twig""page/home.html.twig"173)->display(twig_array_merge($context, ["entityType" => "article""entities" => (isset($context["articlesFond"]) || array_key_exists("articlesFond"$context) ? $context["articlesFond"] : (function () { throw new RuntimeError('Variable "articlesFond" does not exist.'173$this->source); })()), "type" => "une"]));
  231.         // line 174
  232.         echo "                ";
  233.         // line 187
  234.         echo "\t\t\t\t<p class=\"text-right\">
  235.                 \t<a class=\"btn btn-dark btn-icig btn-sm\" href=\"";
  236.         // line 188
  237.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("articlesFondList");
  238.         echo "\">Toutes les analyses</a>
  239. \t\t\t\t</p>
  240.             </div>
  241.         </div>
  242.         <div class=\"col-lg-3 col-12 right-column\">
  243. \t\t\t";
  244.         // line 199
  245.         echo "\t\t\t<div class=\"d-none d-lg-block d-xl-block\">
  246.                 <!-- visible only on large device ≥992px -->
  247. \t\t\t\t";
  248.         // line 202
  249.         echo "            \t";
  250.         echo twig_call_macro($macros["selfm"], "macro_agenda", [], 202$context$this->getSourceContext());
  251.         echo "
  252.         \t</div>
  253.         </div>
  254.     </div>
  255. ";
  256.         
  257.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  258.         
  259.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  260.     }
  261.     // line 208
  262.     public function block_javascripts($context, array $blocks = [])
  263.     {
  264.         $macros $this->macros;
  265.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  266.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  267.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  268.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  269.         // line 209
  270.         echo "\t";
  271.         $this->displayParentBlock("javascripts"$context$blocks);
  272.         echo "
  273. \t";
  274.         // line 210
  275.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("home");
  276.         echo "
  277. ";
  278.         
  279.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  280.         
  281.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  282.     }
  283.     // line 4
  284.     public function macro_agenda(...$__varargs__)
  285.     {
  286.         $macros $this->macros;
  287.         $context $this->env->mergeGlobals([
  288.             "varargs" => $__varargs__,
  289.         ]);
  290.         $blocks = [];
  291.         ob_start();
  292.         try {
  293.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  294.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""agenda"));
  295.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  296.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""agenda"));
  297.             // line 5
  298.             echo "    <div class=\"agenda\">
  299. \t\t<h2>
  300. \t\t\t<a class=\"change-agenda previous\" href=\"#\" title=\"événements précédents\"><i class=\"fas fa-hand-point-left fa-xs\"></i></a>
  301. \t\t\tAgenda
  302. \t\t\t<a class=\"change-agenda next\" href=\"#\" title=\"événements suivants\"><i class=\"fas fa-hand-point-right fa-xs\"></i></a>
  303. \t\t</h2>
  304. \t\t<p class=\"mb-0 mt-0 text-center\">
  305. \t\t\t<a href=\"";
  306.             // line 12
  307.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("suggestEvent");
  308.             echo "\">Proposer un événement</a>
  309. \t\t</p>
  310. \t\t<div class=\"agenda-dyn-content\">
  311. \t\t\t";
  312.             // line 16
  313.             echo "            ";
  314.             $context["baseDateStr"] = twig_date_format_filter($this->env"now""Y-m-d_H-i-s");
  315.             // line 17
  316.             echo "\t\t\t";
  317.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\AgendaController::agendaStepByStep", ["stepNb" => 10"offset" => 0"baseDateStr" => (isset($context["baseDateStr"]) || array_key_exists("baseDateStr"$context) ? $context["baseDateStr"] : (function () { throw new RuntimeError('Variable "baseDateStr" does not exist.'17$this->source); })())]));
  318.             echo "
  319.         </div>
  320. \t\t<p class=\"mt-3 text-center\">
  321. \t\t\t";
  322.             // line 23
  323.             echo "\t\t\t<a class=\"btn btn-dark btn-icig btn-sm\" href=\"";
  324.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("agenda");
  325.             echo "\">Tout l'agenda</a>
  326. \t\t</p>
  327. \t</div>
  328. ";
  329.             
  330.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  331.             
  332.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  333.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  334.         } finally {
  335.             ob_end_clean();
  336.         }
  337.     }
  338.     // line 27
  339.     public function macro_themes(...$__varargs__)
  340.     {
  341.         $macros $this->macros;
  342.         $context $this->env->mergeGlobals([
  343.             "varargs" => $__varargs__,
  344.         ]);
  345.         $blocks = [];
  346.         ob_start();
  347.         try {
  348.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  349.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""themes"));
  350.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  351.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""themes"));
  352.             // line 28
  353.             echo "    <div class=\"themes-search\">
  354. \t\t<h2>Thèmes</h2>
  355. \t\t";
  356.             // line 31
  357.             echo "\t\t<div class=\"row row-cols-lg-2 row-cols-md-6 row-cols-sm-4 row-cols-3 themes\">
  358. \t\t\t";
  359.             // line 32
  360.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\ThemeController::showThemes"));
  361.             echo "
  362. \t\t</div>
  363. \t</div>
  364. ";
  365.             
  366.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  367.             
  368.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  369.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  370.         } finally {
  371.             ob_end_clean();
  372.         }
  373.     }
  374.     // line 36
  375.     public function macro_tags(...$__varargs__)
  376.     {
  377.         $macros $this->macros;
  378.         $context $this->env->mergeGlobals([
  379.             "varargs" => $__varargs__,
  380.         ]);
  381.         $blocks = [];
  382.         ob_start();
  383.         try {
  384.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  385.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tags"));
  386.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  387.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tags"));
  388.             // line 37
  389.             echo "    <div class=\"recherche\">
  390. \t\t<h2>Mots-clés</h2>
  391. \t\t";
  392.             // line 40
  393.             echo "\t\t";
  394.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\TagController::showTagForm"));
  395.             echo "
  396. \t</div>
  397. ";
  398.             
  399.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  400.             
  401.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  402.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  403.         } finally {
  404.             ob_end_clean();
  405.         }
  406.     }
  407.     public function getTemplateName()
  408.     {
  409.         return "page/home.html.twig";
  410.     }
  411.     public function isTraitable()
  412.     {
  413.         return false;
  414.     }
  415.     public function getDebugInfo()
  416.     {
  417.         return array (  451 => 40,  447 => 37,  429 => 36,  410 => 32,  407 => 31,  403 => 28,  385 => 27,  365 => 23,  358 => 17,  355 => 16,  349 => 12,  340 => 5,  322 => 4,  310 => 210,  305 => 209,  295 => 208,  279 => 202,  275 => 199,  266 => 188,  263 => 187,  261 => 174,  259 => 173,  250 => 168,  242 => 163,  233 => 156,  230 => 155,  228 => 142,  225 => 141,  223 => 140,  208 => 129,  206 => 127,  203 => 125,  200 => 124,  197 => 123,  195 => 118,  193 => 117,  191 => 116,  187 => 115,  182 => 114,  180 => 113,  168 => 105,  160 => 100,  156 => 97,  150 => 75,  141 => 69,  135 => 67,  133 => 66,  131 => 63,  129 => 62,  122 => 57,  112 => 55,  100 => 51,  95 => 50,  85 => 49,  66 => 47,  55 => 1,  53 => 54,  51 => 44,  38 => 1,);
  418.     }
  419.     public function getSourceContext()
  420.     {
  421.         return new Source("{% extends 'base.html.twig' %}
  422. {% macro agenda() %}
  423.     <div class=\"agenda\">
  424. \t\t<h2>
  425. \t\t\t<a class=\"change-agenda previous\" href=\"#\" title=\"événements précédents\"><i class=\"fas fa-hand-point-left fa-xs\"></i></a>
  426. \t\t\tAgenda
  427. \t\t\t<a class=\"change-agenda next\" href=\"#\" title=\"événements suivants\"><i class=\"fas fa-hand-point-right fa-xs\"></i></a>
  428. \t\t</h2>
  429. \t\t<p class=\"mb-0 mt-0 text-center\">
  430. \t\t\t<a href=\"{{ path('suggestEvent') }}\">Proposer un événement</a>
  431. \t\t</p>
  432. \t\t<div class=\"agenda-dyn-content\">
  433. \t\t\t{# {{ render(controller('App\\\\Controller\\\\EventController::agendaFromTo', {})) }} #}
  434.             {% set baseDateStr = \"now\"|date(\"Y-m-d_H-i-s\") %}
  435. \t\t\t{{ render(controller('App\\\\Controller\\\\AgendaController::agendaStepByStep', {stepNb: 10, offset: 0, baseDateStr: baseDateStr})) }}
  436.         </div>
  437. \t\t<p class=\"mt-3 text-center\">
  438. \t\t\t{# <a class=\"change-agenda previous btn btn-dark btn-icig btn-sm\" href=\"#\">Jours précédents</a>
  439. \t\t\t<a class=\"change-agenda next btn btn-dark btn-icig btn-sm\" href=\"#\">Jours suivants</a>
  440. \t\t\t<br/><br/> #}
  441. \t\t\t<a class=\"btn btn-dark btn-icig btn-sm\" href=\"{{path(\"agenda\")}}\">Tout l'agenda</a>
  442. \t\t</p>
  443. \t</div>
  444. {% endmacro %}
  445. {% macro themes() %}
  446.     <div class=\"themes-search\">
  447. \t\t<h2>Thèmes</h2>
  448. \t\t{# <p>Cliquez sur un thème :</p> #}
  449. \t\t<div class=\"row row-cols-lg-2 row-cols-md-6 row-cols-sm-4 row-cols-3 themes\">
  450. \t\t\t{{ render(controller('App\\\\Controller\\\\ThemeController::showThemes')) }}
  451. \t\t</div>
  452. \t</div>
  453. {% endmacro %}
  454. {% macro tags() %}
  455.     <div class=\"recherche\">
  456. \t\t<h2>Mots-clés</h2>
  457. \t\t{# {{ form(searchForm) }} #}
  458. \t\t{{ render(controller('App\\\\Controller\\\\TagController::showTagForm')) }}
  459. \t</div>
  460. {% endmacro %}
  461. {% import _self as selfm %}
  462. {# {% block title %}Ici grenoble : une média pratique pour Grenoble et ses environs!{% endblock %} #}
  463. {% block title %}{{ page.title|replace({ '<br>':'' }) }}{% endblock %}
  464. {% block stylesheets %}
  465. \t{{ parent() }}
  466. \t{{ encore_entry_link_tags('home') }}
  467. {% endblock %}
  468. {% set bodyClass = \"home\" %}
  469. {% block body %}
  470. {# <h1>S'informer autrement sur Grenoble et ses environs</h1> #}
  471.     <div class=\"row\">
  472.         <div class=\"col-lg-3 col-12 left-column\">
  473.             <h2>Bienvenue</h2>
  474.             <div class=\"bienvenue\">
  475. \t\t\t\t{% if is_granted('ROLE_EDITOR') %}
  476. \t\t\t\t\t{% set url = ea_url()
  477. \t\t\t\t\t\t.setController('App\\\\Controller\\\\Admin\\\\PageCrudController')
  478. \t\t\t\t\t\t.setAction('edit')
  479. \t\t\t\t\t\t.setEntityId(page.id) %}
  480. \t\t\t\t\t<p><a class=\"adm-link\" href=\"{{ url }}\" target=\"_blank\">administrer la page</a></p>
  481. \t\t\t\t{% endif %}
  482.                 {{ page.content|raw }}
  483.             </div>
  484. \t\t\t<div class=\"d-none d-sm-block d-md-block d-lg-none\">
  485.                 <!-- visible only on small and medium device ≥576px & <992px -->
  486. \t\t\t\t{# hidden smartphones : d-md-none d-lg-block, visible only smartphone : d-none d-md-block d-lg-none cf https://getbootstrap.com/docs/4.6/utilities/display/ #}
  487.             \t{{ selfm.agenda() }}
  488.         \t</div>
  489.             {# <div class=\"carte\">
  490.                 <h2>Cartes de Grenoble</h2>
  491. \t\t\t\t<a href=\"{{ path('carte') }}\" class=\"text-center\">
  492. \t\t\t\t\t<img src=\"/image/divers/carte.png\" alt=\"carte de grenoble\" class=\"img-fluid mb-2\"><br/>
  493. \t\t\t\t\t<span>Trouver un lieu..<span>
  494. \t\t\t\t</a>
  495.             </div>
  496. \t\t\t<div class=\"publications\">
  497.                 <h2 class=\"text-center\">Publications</h2>
  498.                 <ul class=\"text-left\">
  499.                     {% for item in publications %}
  500.                         <li>
  501.                             <a href=\"{{path('showArticleBySlug', {slug:item.slug})}}\">{{item.title}}</a>
  502.                         </li>
  503.                     {% endfor %}
  504.                 </ul>
  505. \t\t\t\t<p class=\"text-center\">
  506.                 \t<a class=\"btn btn-dark btn-icig btn-sm\" href=\"{{path('publicationsList')}}\">Toutes les publications</a>
  507. \t\t\t\t</p>
  508.             </div> #}
  509.             <div class=\"d-none d-lg-block d-xl-block\">
  510.                 <!-- visible only on large device ≥992px -->
  511. \t\t\t\t{# hidden smartphones : d-md-none d-lg-block, visible only smartphone : d-none d-md-block d-lg-none cf https://getbootstrap.com/docs/4.6/utilities/display/ #}
  512.             \t{{ selfm.themes() }}
  513.         \t</div>
  514.             <div class=\"d-none d-lg-block d-xl-block\">
  515.                 <!-- visible only on large device ≥992px -->
  516. \t\t\t\t{# hidden smartphones : d-md-none d-lg-block, visible only smartphone : d-none d-md-block d-lg-none cf https://getbootstrap.com/docs/4.6/utilities/display/ #}
  517.             \t{{ selfm.tags() }}
  518.         \t</div>
  519. \t\t\t
  520.         </div>
  521.         <div class=\"col-lg-6 col center-column\">
  522.             <div class=\"alaune clearfix\">
  523.                 <p class=\"text-center mb-2\">À la une</p>
  524. \t\t\t\t{% set une = articlesUne|first %}
  525.                 <a class=\"widget-link\" href=\"{{path('showArticleBySlug', {slug:une.slug})}}\">
  526.                     <h2 class=\"text-center mb-3\">{{ une.title|raw }}</h2>
  527.                     {% if une.medias is not empty %}
  528.                         {# <img class=\"thumbnail\" src=\"/image/articles/apercu/yachts.jpg\" alt=\"apercu article\"> #}
  529.                         {# {% set media = articleUne.medias|first %}
  530.                         {{ dump(media) }}
  531.                         {% if media.file is not null %}
  532.                             <img class=\"thumbnail\" src=\"{{ media.file }}\" alt=\"{{ media.description }}\">
  533.                         {% endif %} #}
  534.                         {% include 'media/postMedias.html.twig' with {'medias': une.medias, 'mediasType': 'thumbnails' } %}
  535.                     {% endif %}
  536.                     <p>
  537.                         {# {{ une.content|raw|slice(0,1000)|striptags|replace({'&agrave;':'à', '&egrave;':'è', '&eacute;':'é', '&euml;':'ë' }) }} #}
  538.                         {# {{ une.content|raw|striptags|slice(0,500) }}
  539.                         {% if une.content|raw|striptags|length > 500 %}...{% endif %} #}
  540.                         {{ une.content|raw|striptags|u.truncate(400, '...', false) }}
  541.                         
  542.                     </p>
  543.                     <p class=\"text-right\">
  544.                         <span class=\"btn btn-dark btn-icig btn-sm\">Lire la suite</span>
  545.                     </p>
  546.                 </a>
  547.             </div>
  548.             <div class=\"actualites clearfix\">
  549.                 <h2 class=\"text-center mb-3\">Actualités</h2>
  550.                 {% set articlesUne = articlesUne|slice(1) %}{# on enlève le premier article qu'on affiche avant #}
  551.                 {% include 'common/listWithImages.html.twig' with {'entityType': 'article', 'entities': articlesUne, 'type': \"une\" } %}
  552.                 {# -> list without images
  553.                     <ul>
  554.                     {% for item in articlesUne %}
  555.                         <li> 
  556.                             <span class=\"badge badge-pill badge-secondary\">
  557.                                 <i class=\"fa fa-eye\"></i>
  558.                             </span>
  559.                             <a href=\"{{path('showArticleBySlug', {slug:item.slug, display:\"image\"})}}\"><i class=\"fa fa-eye\"></i>{{item.title}}
  560.                                 {% if is_granted('ROLE_ADMIN') %}(p:{{ item.priority }}){% endif %}
  561.                             </a> 
  562.                         </li>
  563.                     </ul>
  564.                 {% endfor %} #}
  565. \t\t\t\t<p class=\"text-right\">
  566.                 \t<a class=\"btn btn-dark btn-icig btn-sm\" href=\"{{path('aLaUneList')}}\">Toutes les actualités</a>
  567. \t\t\t\t</p>
  568.             </div>
  569. \t\t\t<div class=\"d-none d-sm-block d-md-block d-lg-none\">
  570.                 <!-- visible only on small and medium device ≥576px & <992px -->
  571. \t\t\t\t{# hidden smartphones : d-md-none d-lg-block, visible only smartphone : d-none d-md-block d-lg-none cf https://getbootstrap.com/docs/4.6/utilities/display/ #}
  572.             \t{{ selfm.themes() }}
  573.         \t</div>
  574. \t\t\t<div class=\"d-none d-sm-block d-md-block d-lg-none\">
  575.                 <!-- visible only on small and medium device ≥576px & <992px -->
  576. \t\t\t\t{# hidden smartphones : d-md-none d-lg-block, visible only smartphone : d-none d-md-block d-lg-none cf https://getbootstrap.com/docs/4.6/utilities/display/ #}
  577.             \t{{ selfm.tags() }}
  578.         \t</div>
  579.             <div class=\"articles-fond\">
  580.                 <h2 class=\"text-center mb-3\">Analyses</h2>
  581.                 {% include 'common/listWithImages.html.twig' with {'entityType': 'article', 'entities': articlesFond, 'type': \"une\" } %}
  582.                 {# -> list without images
  583.                     <ul>
  584.                     {% for item in articlesFond %}
  585.                         <li> 
  586.                             <span class=\"badge badge-pill badge-secondary\">
  587.                                 <i class=\"fa fa-cube\"></i>
  588.                             </span>
  589.                             <a href=\"{{path('showArticleBySlug', {slug:item.slug, display:\"image\"})}}\"><i class=\"fa fa-cube\"></i>{{item.title}}
  590.                                 {% if is_granted('ROLE_ADMIN') %}(p:{{ item.priority }}){% endif %}
  591.                             </a> 
  592.                         </li>
  593.                     </ul>
  594.                 {% endfor %} #}
  595. \t\t\t\t<p class=\"text-right\">
  596.                 \t<a class=\"btn btn-dark btn-icig btn-sm\" href=\"{{path('articlesFondList')}}\">Toutes les analyses</a>
  597. \t\t\t\t</p>
  598.             </div>
  599.         </div>
  600.         <div class=\"col-lg-3 col-12 right-column\">
  601. \t\t\t{# <div class=\"d-md-none d-lg-block\">
  602.                 <p class=\"text-center\">
  603.                 \t<a class=\"btn btn-icig btn-md inverted\" href=\"{{path('makeDonation')}}\">Faire un don</a>
  604. \t\t\t\t</p>
  605.             </div> #}
  606. \t\t\t<div class=\"d-none d-lg-block d-xl-block\">
  607.                 <!-- visible only on large device ≥992px -->
  608. \t\t\t\t{# hidden smartphones : d-md-none d-lg-block, visible only smartphone : d-none d-md-block d-lg-none cf https://getbootstrap.com/docs/4.6/utilities/display/ #}
  609.             \t{{ selfm.agenda() }}
  610.         \t</div>
  611.         </div>
  612.     </div>
  613. {% endblock %}
  614. {% block javascripts %}
  615. \t{{ parent() }}
  616. \t{{ encore_entry_script_tags('home') }}
  617. {% endblock %}
  618. ""page/home.html.twig""/home/ovow2306/public_html/ici-grenoble/ici-gre-back-dev/templates/page/home.html.twig");
  619.     }
  620. }