<?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;
/* base.html.twig */
class __TwigTemplate_08729341ed587e60579f21bad55cc802 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
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", "base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
// line 1
$context["mainContainerFluid"] = false;
// line 2
if ((twig_get_attribute($this->env, $this->source, twig_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.', 2, $this->source); })()), "request", [], "any", false, false, false, 2), "get", ["_route"], "method", false, false, false, 2) == "home")) {
// line 3
echo " ";
$context["mainContainerFluid"] = true;
}
// line 5
echo "
<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
<title>";
// line 10
$this->displayBlock('title', $context, $blocks);
echo "</title>
";
// line 14
echo " ";
// line 15
echo "\t\t";
// line 16
echo "
";
// line 24
echo " <link rel=\"icon\" type=\"image/jpg\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/medias/favicon.png"), "html", null, true);
echo "\" />
\t\t";
// line 26
$this->displayBlock('stylesheets', $context, $blocks);
// line 33
echo " </head>
<body class=\"";
// line 35
if (array_key_exists("bodyClass", $context)) {
echo twig_escape_filter($this->env, (isset($context["bodyClass"]) || array_key_exists("bodyClass", $context) ? $context["bodyClass"] : (function () { throw new RuntimeError('Variable "bodyClass" does not exist.', 35, $this->source); })()), "html", null, true);
echo " ";
}
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "get", ["_route"], "method", false, false, false, 35), "html", null, true);
echo "\">
<div class=\"green-bg\"></div>
<div class=\"white-bg\"></div>
\t\t<div class=\"main-container\">
\t\t\t<header class=\"container-fluid\">
\t\t\t\t<div class=\"banner\" role=\"banner\">
\t\t\t\t\t<a class=\"logo\" href=\"";
// line 41
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "\">
\t\t\t\t\t\t";
// line 43
echo "\t\t\t\t\t\t<img class=\"logo\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/medias/logo.png"), "vignette"), "html", null, true);
echo "\" alt=\"Logo\">
\t\t\t\t\t</a>
\t\t\t\t\t";
// line 46
echo "\t\t\t\t\t<div class=\"frise\">
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"top-spacer\"></div>
\t\t\t\t";
// line 50
if ( !array_key_exists("activeMenu", $context)) {
$context["activeMenu"] = "";
}
// line 51
echo "\t\t\t\t";
$this->loadTemplate("common/mainNav.html.twig", "base.html.twig", 51)->display(twig_array_merge($context, ["activeMenu" => (isset($context["activeMenu"]) || array_key_exists("activeMenu", $context) ? $context["activeMenu"] : (function () { throw new RuntimeError('Variable "activeMenu" does not exist.', 51, $this->source); })())]));
// line 52
echo "\t\t\t</header>
\t\t\t<main role=\"main\" class=\"";
// line 53
if ((array_key_exists("mainContainerFluid", $context) && ((isset($context["mainContainerFluid"]) || array_key_exists("mainContainerFluid", $context) ? $context["mainContainerFluid"] : (function () { throw new RuntimeError('Variable "mainContainerFluid" does not exist.', 53, $this->source); })()) == false))) {
echo "container";
} else {
echo "container-fluid";
}
echo "\">
\t\t\t\t";
// line 54
$this->loadTemplate("common/flashes.html.twig", "base.html.twig", 54)->display(twig_array_merge($context, ["app" => (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 54, $this->source); })())]));
// line 55
echo "
\t\t\t\t";
// line 56
$this->displayBlock('body', $context, $blocks);
// line 57
echo " <!-- end Body -->
\t\t\t\t";
// line 59
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SUPER_ADMIN")) {
echo "<p><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("testFromController");
echo "\">test from controller ...</a></p>";
}
// line 60
echo "\t\t\t\t
\t\t\t</main>
\t\t</div> <!-- end .container -->
";
// line 64
$this->loadTemplate("common/footer.html.twig", "base.html.twig", 64)->display(twig_array_merge($context, ["activeMenu" => (isset($context["activeMenu"]) || array_key_exists("activeMenu", $context) ? $context["activeMenu"] : (function () { throw new RuntimeError('Variable "activeMenu" does not exist.', 64, $this->source); })())]));
// line 65
echo "
";
// line 66
$this->displayBlock('javascripts', $context, $blocks);
// line 95
echo " </body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 10
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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 26
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 27
echo "\t\t\t";
// line 28
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
echo "
<!-- Renders a link tag (if your module requires any -fluidCSS)
<link rel=\"stylesheet\" href=\"/build/app.css\"> -->
\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 56
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"));
echo " <!-- Content Body -->
\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 66
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 67
echo " <script>
let searchRoute = \"";
// line 68
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("recherche", ["term" => "term"]);
echo "\";
</script>
\t\t\t";
// line 70
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
echo "
\t\t\t
\t\t\t<!-- Renders app.js & a webpack runtime.js file
\t\t\t\t<script src=\"/build/runtime.js\"></script>
\t\t\t\t<script src=\"/build/app.js\"></script> -->
";
// line 76
if (((twig_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.', 76, $this->source); })()), "environment", [], "any", false, false, false, 76) != "dev") && !$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN"))) {
// line 77
echo " <!-- Matomo -->
<script type=\"text/javascript\">
var _paq = window._paq = window._paq || [];
/* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u=\"//matomo.ici-grenoble.org/\";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
";
}
// line 93
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 287 => 93, 269 => 77, 267 => 76, 258 => 70, 253 => 68, 250 => 67, 240 => 66, 220 => 56, 204 => 28, 202 => 27, 192 => 26, 174 => 10, 162 => 95, 160 => 66, 157 => 65, 155 => 64, 149 => 60, 143 => 59, 139 => 57, 137 => 56, 134 => 55, 132 => 54, 124 => 53, 121 => 52, 118 => 51, 114 => 50, 108 => 46, 102 => 43, 98 => 41, 85 => 35, 81 => 33, 79 => 26, 73 => 24, 70 => 16, 68 => 15, 66 => 14, 62 => 10, 55 => 5, 51 => 3, 49 => 2, 47 => 1,);
}
public function getSourceContext()
{
return new Source("{% set mainContainerFluid = false %}
{% if app.request.get('_route') == \"home\" %}
{% set mainContainerFluid = true %}
{% endif %}
<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
<title>{% block title %}{% endblock %}</title>
{# <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\"
integrity=\"sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh\" crossorigin=\"anonymous\">
\t\t\tadded with encore and yarn : cf. https://symfony.com/doc/current/frontend/encore/bootstrap.html #}
{# <link href=\"//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css\" rel=\"stylesheet\"> importé dans app.js #}
\t\t{# <link rel=\"stylesheet\" href=\"{{ preload('/css/main.css', { as: 'style' }) }}\"> -> j'utilise webpack et sass #}
{# <script src=\"https://code.jquery.com/jquery-3.4.1.slim.min.js\"
integrity=\"sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n\" crossorigin=\"anonymous\"></script>
<script src=\"https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js\"
integrity=\"sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo\" crossorigin=\"anonymous\"></script>
<script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js\"
integrity=\"sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6\" crossorigin=\"anonymous\"></script>
\t\t -> added with encore and yarn #}
<link rel=\"icon\" type=\"image/jpg\" href=\"{{ asset('build/medias/favicon.png') }}\" />
\t\t{% block stylesheets %}
\t\t\t{# 'app' must match the first argument to addEntry() in webpack.config.js #}
{{ encore_entry_link_tags('app') }}
<!-- Renders a link tag (if your module requires any -fluidCSS)
<link rel=\"stylesheet\" href=\"/build/app.css\"> -->
\t\t{% endblock %}
</head>
<body class=\"{% if bodyClass is defined %}{{ bodyClass }} {% endif %}{{ app.request.get('_route') }}\">
<div class=\"green-bg\"></div>
<div class=\"white-bg\"></div>
\t\t<div class=\"main-container\">
\t\t\t<header class=\"container-fluid\">
\t\t\t\t<div class=\"banner\" role=\"banner\">
\t\t\t\t\t<a class=\"logo\" href=\"{{ path('home') }}\">
\t\t\t\t\t\t{# <span class=\"ici-grenoble\"></span> #}
\t\t\t\t\t\t<img class=\"logo\" src=\"{{ asset('build/medias/logo.png')|imagine_filter('vignette') }}\" alt=\"Logo\">
\t\t\t\t\t</a>
\t\t\t\t\t{# <p class=\"slogan\">S'informer autrement sur Grenoble et ses environs</p> #}
\t\t\t\t\t<div class=\"frise\">
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"top-spacer\"></div>
\t\t\t\t{% if activeMenu is not defined %}{% set activeMenu = \"\" %}{% endif %}
\t\t\t\t{% include 'common/mainNav.html.twig' with {'activeMenu': activeMenu } %}
\t\t\t</header>
\t\t\t<main role=\"main\" class=\"{% if mainContainerFluid is defined and mainContainerFluid == false %}container{% else %}container-fluid{% endif %}\">
\t\t\t\t{% include 'common/flashes.html.twig' with {'app': app } %}
\t\t\t\t{% block body %} <!-- Content Body -->
\t\t\t\t{% endblock %} <!-- end Body -->
\t\t\t\t{% if is_granted('ROLE_SUPER_ADMIN') %}<p><a href=\"{{path('testFromController')}}\">test from controller ...</a></p>{% endif %}
\t\t\t\t
\t\t\t</main>
\t\t</div> <!-- end .container -->
{% include 'common/footer.html.twig' with {'activeMenu': activeMenu } %}
{% block javascripts %}
<script>
let searchRoute = \"{{ path('recherche', { term: 'term' }) }}\";
</script>
\t\t\t{{ encore_entry_script_tags('app') }}
\t\t\t
\t\t\t<!-- Renders app.js & a webpack runtime.js file
\t\t\t\t<script src=\"/build/runtime.js\"></script>
\t\t\t\t<script src=\"/build/app.js\"></script> -->
{% if app.environment != 'dev' and not is_granted('ROLE_ADMIN') %}
<!-- Matomo -->
<script type=\"text/javascript\">
var _paq = window._paq = window._paq || [];
/* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u=\"//matomo.ici-grenoble.org/\";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
{% endif %}
{% endblock %}
</body>
</html>
", "base.html.twig", "/home/ovow2306/public_html/ici-grenoble/ici-gre-back-dev/templates/base.html.twig");
}
}