<?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;
/* backend/base.html.twig */
class __TwigTemplate_d53a53ed2feee2cb3df3bc4a9028592f 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'],
'javascripts' => [$this, 'block_javascripts'],
'content' => [$this, 'block_content'],
];
}
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", "backend/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", "backend/base.html.twig"));
// line 2
echo "
";
// line 3
if ( !(null === 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.', 3, $this->source); })()), "user", [], "any", false, false, false, 3))) {
// line 4
echo " ";
$context["flashMessages"] = twig_get_attribute($this->env, $this->source, 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.', 4, $this->source); })()), "session", [], "any", false, false, false, 4), "flashBag", [], "any", false, false, false, 4), "all", [], "method", false, false, false, 4);
}
// line 6
echo "
<!DOCTYPE html>
<html lang=\"";
// line 8
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_split_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.', 8, $this->source); })()), "request", [], "any", false, false, false, 8), "locale", [], "any", false, false, false, 8), "_"), 0, [], "array", false, false, false, 8), "html", null, true);
echo "\">
<head>
<meta charset=\"UTF-8\">
<title>";
// line 11
echo twig_escape_filter($this->env, (isset($context["app_name"]) || array_key_exists("app_name", $context) ? $context["app_name"] : (function () { throw new RuntimeError('Variable "app_name" does not exist.', 11, $this->source); })()), "html", null, true);
echo " - ";
$this->displayBlock('title', $context, $blocks);
echo "</title>
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<link rel=\"shortcut icon\" href=\"";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/backend/images/ffcb.ico", "backend"), "html", null, true);
echo "\" />
";
// line 15
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app", null, "backend");
echo "
";
// line 16
$this->displayBlock('stylesheets', $context, $blocks);
// line 17
echo "
";
// line 18
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app", null, "backend");
echo "
";
// line 19
$this->displayBlock('javascripts', $context, $blocks);
// line 20
echo " </head>
";
// line 22
if ( !(null === 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.', 22, $this->source); })()), "user", [], "any", false, false, false, 22))) {
// line 23
echo " <body
";
// line 24
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension']->renderStimulusController($this->env, ["flash-message" => [], "sidebar" => []]);
echo "
data-flash-message-messages-value=\"";
// line 25
(((twig_length_filter($this->env, (isset($context["flashMessages"]) || array_key_exists("flashMessages", $context) ? $context["flashMessages"] : (function () { throw new RuntimeError('Variable "flashMessages" does not exist.', 25, $this->source); })())) == 0)) ? (print ("{}")) : (print (twig_escape_filter($this->env, json_encode((isset($context["flashMessages"]) || array_key_exists("flashMessages", $context) ? $context["flashMessages"] : (function () { throw new RuntimeError('Variable "flashMessages" does not exist.', 25, $this->source); })())), "html", null, true))));
echo "\"
data-turbo=\"false\"
>
";
} else {
// line 29
echo " <body data-turbo=\"false\">
";
}
// line 31
echo "
<div class=\"wrapper\">
";
// line 33
$this->loadTemplate("backend/partials/_aside.html.twig", "backend/base.html.twig", 33)->display($context);
// line 34
echo "
<div class=\"main\">
";
// line 36
$this->loadTemplate("backend/partials/_header.html.twig", "backend/base.html.twig", 36)->display($context);
// line 37
echo " <main class=\"content\">
<div class=\"container-fluid\">
<div class=\"d-none\" id=\"alert-content\"></div>
";
// line 41
$this->displayBlock('content', $context, $blocks);
// line 42
echo " </div>
</main>
";
// line 44
$this->loadTemplate("backend/partials/_footer.html.twig", "backend/base.html.twig", 44)->display($context);
// line 45
echo " </div>
</div>
</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 11
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 16
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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 19
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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 41
public function block_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "backend/base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 211 => 41, 193 => 19, 175 => 16, 157 => 11, 143 => 45, 141 => 44, 137 => 42, 135 => 41, 129 => 37, 127 => 36, 123 => 34, 121 => 33, 117 => 31, 113 => 29, 106 => 25, 102 => 24, 99 => 23, 97 => 22, 93 => 20, 91 => 19, 87 => 18, 84 => 17, 82 => 16, 78 => 15, 73 => 13, 66 => 11, 60 => 8, 56 => 6, 52 => 4, 50 => 3, 47 => 2,);
}
public function getSourceContext()
{
return new Source("{% trans_default_domain 'messages' %}
{% if app.user is not null %}
{% set flashMessages = app.session.flashBag.all() %}
{% endif %}
<!DOCTYPE html>
<html lang=\"{{ app.request.locale|split('_')[0] }}\">
<head>
<meta charset=\"UTF-8\">
<title>{{ app_name }} - {% block title %}{% endblock %}</title>
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<link rel=\"shortcut icon\" href=\"{{ asset('build/backend/images/ffcb.ico', 'backend') }}\" />
{{ encore_entry_link_tags('app', null, 'backend') }}
{% block stylesheets %}{% endblock %}
{{ encore_entry_script_tags('app', null, 'backend') }}
{% block javascripts %}{% endblock %}
</head>
{% if app.user is not null %}
<body
{{ stimulus_controller({'flash-message': {}, 'sidebar': {}}) }}
data-flash-message-messages-value=\"{{ flashMessages|length == 0 ? '{}' : flashMessages|json_encode }}\"
data-turbo=\"false\"
>
{% else %}
<body data-turbo=\"false\">
{% endif %}
<div class=\"wrapper\">
{% include 'backend/partials/_aside.html.twig' %}
<div class=\"main\">
{% include 'backend/partials/_header.html.twig' %}
<main class=\"content\">
<div class=\"container-fluid\">
<div class=\"d-none\" id=\"alert-content\"></div>
{% block content %}{% endblock %}
</div>
</main>
{% include 'backend/partials/_footer.html.twig' %}
</div>
</div>
</body>
</html>
", "backend/base.html.twig", "/var/www/html/symfony/templates/backend/base.html.twig");
}
}