<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* page/home.html.twig */
class __TwigTemplate_732e72d05a14e6df0d704acddf288122 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "page/home.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "page/home.html.twig"));
// line 44
$macros["selfm"] = $this->macros["selfm"] = $this;
// line 54
$context["bodyClass"] = "home";
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "page/home.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 47
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, twig_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", false, false, false, 47), ["<br>" => ""]), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 49
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 50
echo "\t";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
\t";
// line 51
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("home");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 55
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 57
echo "
<div class=\"row\">
<div class=\"col-lg-3 col-12 left-column\">
<h2>Bienvenue</h2>
<div class=\"bienvenue\">
\t\t\t\t";
// line 62
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_EDITOR")) {
// line 63
echo "\t\t\t\t\t";
$context["url"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->getAdminUrlGenerator(), "setController", ["App\\Controller\\Admin\\PageCrudController"], "method", false, false, false, 63), "setAction", ["edit"], "method", false, false, false, 64), "setEntityId", [twig_get_attribute($this->env, $this->source, // line 66
(isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 66, $this->source); })()), "id", [], "any", false, false, false, 66)], "method", false, false, false, 65);
// line 67
echo "\t\t\t\t\t<p><a class=\"adm-link\" href=\"";
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", null, true);
echo "\" target=\"_blank\">administrer la page</a></p>
\t\t\t\t";
}
// line 69
echo " ";
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", false, false, false, 69);
echo "
</div>
\t\t\t<div class=\"d-none d-sm-block d-md-block d-lg-none\">
<!-- visible only on small and medium device ≥576px & <992px -->
\t\t\t\t";
// line 75
echo " \t";
echo twig_call_macro($macros["selfm"], "macro_agenda", [], 75, $context, $this->getSourceContext());
echo "
\t</div>
";
// line 97
echo " <div class=\"d-none d-lg-block d-xl-block\">
<!-- visible only on large device ≥992px -->
\t\t\t\t";
// line 100
echo " \t";
echo twig_call_macro($macros["selfm"], "macro_themes", [], 100, $context, $this->getSourceContext());
echo "
\t</div>
<div class=\"d-none d-lg-block d-xl-block\">
<!-- visible only on large device ≥992px -->
\t\t\t\t";
// line 105
echo " \t";
echo twig_call_macro($macros["selfm"], "macro_tags", [], 105, $context, $this->getSourceContext());
echo "
\t</div>
\t\t\t
</div>
<div class=\"col-lg-6 col center-column\">
<div class=\"alaune clearfix\">
<p class=\"text-center mb-2\">À la une</p>
\t\t\t\t";
// line 113
$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); })()));
// line 114
echo " <a class=\"widget-link\" href=\"";
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", false, false, false, 114)]), "html", null, true);
echo "\">
<h2 class=\"text-center mb-3\">";
// line 115
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", false, false, false, 115);
echo "</h2>
";
// line 116
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", false, false, false, 116))) {
// line 117
echo " ";
// line 118
echo " ";
// line 123
echo " ";
$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", false, false, false, 123), "mediasType" => "thumbnails"]));
// line 124
echo " ";
}
// line 125
echo " <p>
";
// line 127
echo " ";
// line 129
echo " ";
echo twig_escape_filter($this->env, twig_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", false, false, false, 129))), "truncate", [400, "...", false], "method", false, false, false, 129), "html", null, true);
echo "
</p>
<p class=\"text-right\">
<span class=\"btn btn-dark btn-icig btn-sm\">Lire la suite</span>
</p>
</a>
</div>
<div class=\"actualites clearfix\">
<h2 class=\"text-center mb-3\">Actualités</h2>
";
// line 140
$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);
// line 141
echo " ";
$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"]));
// line 142
echo " ";
// line 155
echo "\t\t\t\t<p class=\"text-right\">
\t<a class=\"btn btn-dark btn-icig btn-sm\" href=\"";
// line 156
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("aLaUneList");
echo "\">Toutes les actualités</a>
\t\t\t\t</p>
</div>
\t\t\t<div class=\"d-none d-sm-block d-md-block d-lg-none\">
<!-- visible only on small and medium device ≥576px & <992px -->
\t\t\t\t";
// line 163
echo " \t";
echo twig_call_macro($macros["selfm"], "macro_themes", [], 163, $context, $this->getSourceContext());
echo "
\t</div>
\t\t\t<div class=\"d-none d-sm-block d-md-block d-lg-none\">
<!-- visible only on small and medium device ≥576px & <992px -->
\t\t\t\t";
// line 168
echo " \t";
echo twig_call_macro($macros["selfm"], "macro_tags", [], 168, $context, $this->getSourceContext());
echo "
\t</div>
<div class=\"articles-fond\">
<h2 class=\"text-center mb-3\">Analyses</h2>
";
// line 173
$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"]));
// line 174
echo " ";
// line 187
echo "\t\t\t\t<p class=\"text-right\">
\t<a class=\"btn btn-dark btn-icig btn-sm\" href=\"";
// line 188
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("articlesFondList");
echo "\">Toutes les analyses</a>
\t\t\t\t</p>
</div>
</div>
<div class=\"col-lg-3 col-12 right-column\">
\t\t\t";
// line 199
echo "\t\t\t<div class=\"d-none d-lg-block d-xl-block\">
<!-- visible only on large device ≥992px -->
\t\t\t\t";
// line 202
echo " \t";
echo twig_call_macro($macros["selfm"], "macro_agenda", [], 202, $context, $this->getSourceContext());
echo "
\t</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 208
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 209
echo "\t";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
\t";
// line 210
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("home");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 4
public function macro_agenda(...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "agenda"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "agenda"));
// line 5
echo " <div class=\"agenda\">
\t\t<h2>
\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>
\t\t\tAgenda
\t\t\t<a class=\"change-agenda next\" href=\"#\" title=\"événements suivants\"><i class=\"fas fa-hand-point-right fa-xs\"></i></a>
\t\t</h2>
\t\t<p class=\"mb-0 mt-0 text-center\">
\t\t\t<a href=\"";
// line 12
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("suggestEvent");
echo "\">Proposer un événement</a>
\t\t</p>
\t\t<div class=\"agenda-dyn-content\">
\t\t\t";
// line 16
echo " ";
$context["baseDateStr"] = twig_date_format_filter($this->env, "now", "Y-m-d_H-i-s");
// line 17
echo "\t\t\t";
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); })())]));
echo "
</div>
\t\t<p class=\"mt-3 text-center\">
\t\t\t";
// line 23
echo "\t\t\t<a class=\"btn btn-dark btn-icig btn-sm\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("agenda");
echo "\">Tout l'agenda</a>
\t\t</p>
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
// line 27
public function macro_themes(...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "themes"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "themes"));
// line 28
echo " <div class=\"themes-search\">
\t\t<h2>Thèmes</h2>
\t\t";
// line 31
echo "\t\t<div class=\"row row-cols-lg-2 row-cols-md-6 row-cols-sm-4 row-cols-3 themes\">
\t\t\t";
// line 32
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\ThemeController::showThemes"));
echo "
\t\t</div>
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
// line 36
public function macro_tags(...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "tags"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "tags"));
// line 37
echo " <div class=\"recherche\">
\t\t<h2>Mots-clés</h2>
\t\t";
// line 40
echo "\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\TagController::showTagForm"));
echo "
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
public function getTemplateName()
{
return "page/home.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% macro agenda() %}
<div class=\"agenda\">
\t\t<h2>
\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>
\t\t\tAgenda
\t\t\t<a class=\"change-agenda next\" href=\"#\" title=\"événements suivants\"><i class=\"fas fa-hand-point-right fa-xs\"></i></a>
\t\t</h2>
\t\t<p class=\"mb-0 mt-0 text-center\">
\t\t\t<a href=\"{{ path('suggestEvent') }}\">Proposer un événement</a>
\t\t</p>
\t\t<div class=\"agenda-dyn-content\">
\t\t\t{# {{ render(controller('App\\\\Controller\\\\EventController::agendaFromTo', {})) }} #}
{% set baseDateStr = \"now\"|date(\"Y-m-d_H-i-s\") %}
\t\t\t{{ render(controller('App\\\\Controller\\\\AgendaController::agendaStepByStep', {stepNb: 10, offset: 0, baseDateStr: baseDateStr})) }}
</div>
\t\t<p class=\"mt-3 text-center\">
\t\t\t{# <a class=\"change-agenda previous btn btn-dark btn-icig btn-sm\" href=\"#\">Jours précédents</a>
\t\t\t<a class=\"change-agenda next btn btn-dark btn-icig btn-sm\" href=\"#\">Jours suivants</a>
\t\t\t<br/><br/> #}
\t\t\t<a class=\"btn btn-dark btn-icig btn-sm\" href=\"{{path(\"agenda\")}}\">Tout l'agenda</a>
\t\t</p>
\t</div>
{% endmacro %}
{% macro themes() %}
<div class=\"themes-search\">
\t\t<h2>Thèmes</h2>
\t\t{# <p>Cliquez sur un thème :</p> #}
\t\t<div class=\"row row-cols-lg-2 row-cols-md-6 row-cols-sm-4 row-cols-3 themes\">
\t\t\t{{ render(controller('App\\\\Controller\\\\ThemeController::showThemes')) }}
\t\t</div>
\t</div>
{% endmacro %}
{% macro tags() %}
<div class=\"recherche\">
\t\t<h2>Mots-clés</h2>
\t\t{# {{ form(searchForm) }} #}
\t\t{{ render(controller('App\\\\Controller\\\\TagController::showTagForm')) }}
\t</div>
{% endmacro %}
{% import _self as selfm %}
{# {% block title %}Ici grenoble : une média pratique pour Grenoble et ses environs!{% endblock %} #}
{% block title %}{{ page.title|replace({ '<br>':'' }) }}{% endblock %}
{% block stylesheets %}
\t{{ parent() }}
\t{{ encore_entry_link_tags('home') }}
{% endblock %}
{% set bodyClass = \"home\" %}
{% block body %}
{# <h1>S'informer autrement sur Grenoble et ses environs</h1> #}
<div class=\"row\">
<div class=\"col-lg-3 col-12 left-column\">
<h2>Bienvenue</h2>
<div class=\"bienvenue\">
\t\t\t\t{% if is_granted('ROLE_EDITOR') %}
\t\t\t\t\t{% set url = ea_url()
\t\t\t\t\t\t.setController('App\\\\Controller\\\\Admin\\\\PageCrudController')
\t\t\t\t\t\t.setAction('edit')
\t\t\t\t\t\t.setEntityId(page.id) %}
\t\t\t\t\t<p><a class=\"adm-link\" href=\"{{ url }}\" target=\"_blank\">administrer la page</a></p>
\t\t\t\t{% endif %}
{{ page.content|raw }}
</div>
\t\t\t<div class=\"d-none d-sm-block d-md-block d-lg-none\">
<!-- visible only on small and medium device ≥576px & <992px -->
\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/ #}
\t{{ selfm.agenda() }}
\t</div>
{# <div class=\"carte\">
<h2>Cartes de Grenoble</h2>
\t\t\t\t<a href=\"{{ path('carte') }}\" class=\"text-center\">
\t\t\t\t\t<img src=\"/image/divers/carte.png\" alt=\"carte de grenoble\" class=\"img-fluid mb-2\"><br/>
\t\t\t\t\t<span>Trouver un lieu..<span>
\t\t\t\t</a>
</div>
\t\t\t<div class=\"publications\">
<h2 class=\"text-center\">Publications</h2>
<ul class=\"text-left\">
{% for item in publications %}
<li>
<a href=\"{{path('showArticleBySlug', {slug:item.slug})}}\">{{item.title}}</a>
</li>
{% endfor %}
</ul>
\t\t\t\t<p class=\"text-center\">
\t<a class=\"btn btn-dark btn-icig btn-sm\" href=\"{{path('publicationsList')}}\">Toutes les publications</a>
\t\t\t\t</p>
</div> #}
<div class=\"d-none d-lg-block d-xl-block\">
<!-- visible only on large device ≥992px -->
\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/ #}
\t{{ selfm.themes() }}
\t</div>
<div class=\"d-none d-lg-block d-xl-block\">
<!-- visible only on large device ≥992px -->
\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/ #}
\t{{ selfm.tags() }}
\t</div>
\t\t\t
</div>
<div class=\"col-lg-6 col center-column\">
<div class=\"alaune clearfix\">
<p class=\"text-center mb-2\">À la une</p>
\t\t\t\t{% set une = articlesUne|first %}
<a class=\"widget-link\" href=\"{{path('showArticleBySlug', {slug:une.slug})}}\">
<h2 class=\"text-center mb-3\">{{ une.title|raw }}</h2>
{% if une.medias is not empty %}
{# <img class=\"thumbnail\" src=\"/image/articles/apercu/yachts.jpg\" alt=\"apercu article\"> #}
{# {% set media = articleUne.medias|first %}
{{ dump(media) }}
{% if media.file is not null %}
<img class=\"thumbnail\" src=\"{{ media.file }}\" alt=\"{{ media.description }}\">
{% endif %} #}
{% include 'media/postMedias.html.twig' with {'medias': une.medias, 'mediasType': 'thumbnails' } %}
{% endif %}
<p>
{# {{ une.content|raw|slice(0,1000)|striptags|replace({'à':'à', 'è':'è', 'é':'é', 'ë':'ë' }) }} #}
{# {{ une.content|raw|striptags|slice(0,500) }}
{% if une.content|raw|striptags|length > 500 %}...{% endif %} #}
{{ une.content|raw|striptags|u.truncate(400, '...', false) }}
</p>
<p class=\"text-right\">
<span class=\"btn btn-dark btn-icig btn-sm\">Lire la suite</span>
</p>
</a>
</div>
<div class=\"actualites clearfix\">
<h2 class=\"text-center mb-3\">Actualités</h2>
{% set articlesUne = articlesUne|slice(1) %}{# on enlève le premier article qu'on affiche avant #}
{% include 'common/listWithImages.html.twig' with {'entityType': 'article', 'entities': articlesUne, 'type': \"une\" } %}
{# -> list without images
<ul>
{% for item in articlesUne %}
<li>
<span class=\"badge badge-pill badge-secondary\">
<i class=\"fa fa-eye\"></i>
</span>
<a href=\"{{path('showArticleBySlug', {slug:item.slug, display:\"image\"})}}\"><i class=\"fa fa-eye\"></i>{{item.title}}
{% if is_granted('ROLE_ADMIN') %}(p:{{ item.priority }}){% endif %}
</a>
</li>
</ul>
{% endfor %} #}
\t\t\t\t<p class=\"text-right\">
\t<a class=\"btn btn-dark btn-icig btn-sm\" href=\"{{path('aLaUneList')}}\">Toutes les actualités</a>
\t\t\t\t</p>
</div>
\t\t\t<div class=\"d-none d-sm-block d-md-block d-lg-none\">
<!-- visible only on small and medium device ≥576px & <992px -->
\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/ #}
\t{{ selfm.themes() }}
\t</div>
\t\t\t<div class=\"d-none d-sm-block d-md-block d-lg-none\">
<!-- visible only on small and medium device ≥576px & <992px -->
\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/ #}
\t{{ selfm.tags() }}
\t</div>
<div class=\"articles-fond\">
<h2 class=\"text-center mb-3\">Analyses</h2>
{% include 'common/listWithImages.html.twig' with {'entityType': 'article', 'entities': articlesFond, 'type': \"une\" } %}
{# -> list without images
<ul>
{% for item in articlesFond %}
<li>
<span class=\"badge badge-pill badge-secondary\">
<i class=\"fa fa-cube\"></i>
</span>
<a href=\"{{path('showArticleBySlug', {slug:item.slug, display:\"image\"})}}\"><i class=\"fa fa-cube\"></i>{{item.title}}
{% if is_granted('ROLE_ADMIN') %}(p:{{ item.priority }}){% endif %}
</a>
</li>
</ul>
{% endfor %} #}
\t\t\t\t<p class=\"text-right\">
\t<a class=\"btn btn-dark btn-icig btn-sm\" href=\"{{path('articlesFondList')}}\">Toutes les analyses</a>
\t\t\t\t</p>
</div>
</div>
<div class=\"col-lg-3 col-12 right-column\">
\t\t\t{# <div class=\"d-md-none d-lg-block\">
<p class=\"text-center\">
\t<a class=\"btn btn-icig btn-md inverted\" href=\"{{path('makeDonation')}}\">Faire un don</a>
\t\t\t\t</p>
</div> #}
\t\t\t<div class=\"d-none d-lg-block d-xl-block\">
<!-- visible only on large device ≥992px -->
\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/ #}
\t{{ selfm.agenda() }}
\t</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
\t{{ parent() }}
\t{{ encore_entry_script_tags('home') }}
{% endblock %}
", "page/home.html.twig", "/home/ovow2306/public_html/ici-grenoble/ici-gre-back-dev/templates/page/home.html.twig");
}
}