<?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_a585f25f7c99fb95029be27ef4c3ab2c 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'],
'css' => [$this, 'block_css'],
'menu' => [$this, 'block_menu'],
'body' => [$this, 'block_body'],
'js' => [$this, 'block_js'],
];
}
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 2
echo " ";
$context["user"] = 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); })()), "user", [], "any", false, false, false, 2);
// line 3
echo " ";
$context["imageName"] = 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.', 3, $this->source); })()), "user", [], "any", false, false, false, 3), "imageName", [], "any", false, false, false, 3);
// line 5
echo "
<!DOCTYPE html>
<html>
<head>
<title>";
// line 9
$this->displayBlock('title', $context, $blocks);
echo "</title>
";
// line 10
echo twig_include($this->env, $context, "_head.html.twig");
echo "
";
// line 11
$this->displayBlock('css', $context, $blocks);
// line 12
echo "</head>
<body>
<div class=\"all-wrapper container-fluid\">
";
// line 16
$this->loadTemplate("_banner_top.html.twig", "base.html.twig", 16)->display($context);
// line 17
echo " <div class=\"layout-w \">
<div class=\"menu-w menu-activated-on-click\">
<div class=\"logo-w logged-user-w\">
";
// line 20
$this->loadTemplate("_image_profile.html.twig", "base.html.twig", 20)->display(twig_array_merge($context, ["imageName" => (isset($context["imageName"]) || array_key_exists("imageName", $context) ? $context["imageName"] : (function () { throw new RuntimeError('Variable "imageName" does not exist.', 20, $this->source); })()), "defaultImage" => "man.jpg"]));
// line 21
echo " <div class=\"logged-user-info-w\">
";
// line 22
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) {
// line 23
echo " <div class=\"logged-user-name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 23, $this->source); })()), "username", [], "any", false, false, false, 23), "html", null, true);
echo "</div>
<div class=\"logged-user-role\" style=\"color: #ffffff\">";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\AppExention']->formatRole(twig_get_attribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 24, $this->source); })()), "roles", [], "any", false, false, false, 24))), "html", null, true);
echo "</div>
<div class=\"logged-user-phone\" style=\"font-size:12px; color: #007bff\">";
// line 25
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 25, $this->source); })()), "phone", [], "any", false, false, false, 25), "html", null, true);
echo "</div>
";
}
// line 27
echo " </div>
<div class=\"mobile-menu-trigger\">
<div class=\"menu-title\">Menu</div>
<div class=\"os-icon os-icon-hamburger-menu-1\"></div>
</div>
</div>
<div class=\"menu-and-user\">
";
// line 35
echo " ";
$this->displayBlock('menu', $context, $blocks);
// line 36
echo " </div>
</div>
<div class=\"content-w\">
";
// line 40
echo " ";
echo $this->extensions['App\Twig\FlashBagExention']->showFlashBag();
echo "
";
// line 41
$this->displayBlock('body', $context, $blocks);
// line 42
echo " ";
echo twig_include($this->env, $context, "_footer_customize.html.twig");
echo "
</div>
</div>
</div>
";
// line 48
echo twig_include($this->env, $context, "_footer.html.twig");
echo "
";
// line 49
$this->displayBlock('js', $context, $blocks);
// line 50
echo "</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 9
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 "Admin ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 11
public function block_css($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", "css"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "css"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 35
public function block_menu($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", "menu"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
$this->loadTemplate("_menu_sidebar_left.html.twig", "base.html.twig", 35)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 41
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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 49
public function block_js($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", "js"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "js"));
$__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 ( 230 => 49, 212 => 41, 193 => 35, 175 => 11, 156 => 9, 143 => 50, 141 => 49, 137 => 48, 128 => 42, 126 => 41, 121 => 40, 116 => 36, 113 => 35, 104 => 27, 99 => 25, 95 => 24, 90 => 23, 88 => 22, 85 => 21, 83 => 20, 78 => 17, 76 => 16, 70 => 12, 68 => 11, 64 => 10, 60 => 9, 54 => 5, 51 => 3, 48 => 2,);
}
public function getSourceContext()
{
return new Source("{#{% cache 'getuser' %}#}
{% set user = app.user %}
{% set imageName = app.user.imageName %}
{#{% endcache %}#}
<!DOCTYPE html>
<html>
<head>
<title>{% block title %}Admin {% endblock %}</title>
{{ include('_head.html.twig') }}
{% block css %}{% endblock %}
</head>
<body>
<div class=\"all-wrapper container-fluid\">
{% include '_banner_top.html.twig' %}
<div class=\"layout-w \">
<div class=\"menu-w menu-activated-on-click\">
<div class=\"logo-w logged-user-w\">
{% include '_image_profile.html.twig' with {'imageName': imageName, 'defaultImage': 'man.jpg'} %}
<div class=\"logged-user-info-w\">
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<div class=\"logged-user-name\">{{ user.username }}</div>
<div class=\"logged-user-role\" style=\"color: #ffffff\">{{ user.roles | role | trans}}</div>
<div class=\"logged-user-phone\" style=\"font-size:12px; color: #007bff\">{{ user.phone}}</div>
{% endif %}
</div>
<div class=\"mobile-menu-trigger\">
<div class=\"menu-title\">Menu</div>
<div class=\"os-icon os-icon-hamburger-menu-1\"></div>
</div>
</div>
<div class=\"menu-and-user\">
{# Menu lateral gauche #}
{% block menu %}{% include '_menu_sidebar_left.html.twig' %}{% endblock %}
</div>
</div>
<div class=\"content-w\">
{# Message flashbag #}
{{ falsh_bag() }}
{% block body %}{% endblock %}
{{ include('_footer_customize.html.twig') }}
</div>
</div>
</div>
{# Footer #}
{{ include('_footer.html.twig') }}
{% block js %}{% endblock %}
</body>
</html>
", "base.html.twig", "/home/dbtechaf/public_html/DBTA/templates/base.html.twig");
}
}