var/cache/dev/twig/aa/aab854db197abe0cb0c1ce01cbd6677b.php line 38

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. /* base.html.twig */
  14. class __TwigTemplate_a585f25f7c99fb95029be27ef4c3ab2c 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->parent false;
  23.         $this->blocks = [
  24.             'title' => [$this'block_title'],
  25.             'css' => [$this'block_css'],
  26.             'menu' => [$this'block_menu'],
  27.             'body' => [$this'block_body'],
  28.             'js' => [$this'block_js'],
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  38.         // line 2
  39.         echo "    ";
  40.         $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"falsefalsefalse2);
  41.         // line 3
  42.         echo "    ";
  43.         $context["imageName"] = twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse3), "imageName", [], "any"falsefalsefalse3);
  44.         // line 5
  45.         echo "
  46. <!DOCTYPE html>
  47. <html>
  48. <head>
  49.     <title>";
  50.         // line 9
  51.         $this->displayBlock('title'$context$blocks);
  52.         echo "</title>
  53.     ";
  54.         // line 10
  55.         echo twig_include($this->env$context"_head.html.twig");
  56.         echo "
  57.     ";
  58.         // line 11
  59.         $this->displayBlock('css'$context$blocks);
  60.         // line 12
  61.         echo "</head>
  62. <body>
  63. <div class=\"all-wrapper container-fluid\">
  64.     ";
  65.         // line 16
  66.         $this->loadTemplate("_banner_top.html.twig""base.html.twig"16)->display($context);
  67.         // line 17
  68.         echo "    <div class=\"layout-w \">
  69.         <div class=\"menu-w menu-activated-on-click\">
  70.             <div class=\"logo-w logged-user-w\">
  71.                 ";
  72.         // line 20
  73.         $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"]));
  74.         // line 21
  75.         echo "                <div class=\"logged-user-info-w\">
  76.                     ";
  77.         // line 22
  78.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) {
  79.             // line 23
  80.             echo "                        <div class=\"logged-user-name\">";
  81.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse23), "html"nulltrue);
  82.             echo "</div>
  83.                         <div class=\"logged-user-role\" style=\"color: #ffffff\">";
  84.             // line 24
  85.             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"falsefalsefalse24))), "html"nulltrue);
  86.             echo "</div>
  87.                         <div class=\"logged-user-phone\" style=\"font-size:12px; color: #007bff\">";
  88.             // line 25
  89.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse25), "html"nulltrue);
  90.             echo "</div>
  91.                     ";
  92.         }
  93.         // line 27
  94.         echo "                </div>
  95.                 <div class=\"mobile-menu-trigger\">
  96.                     <div class=\"menu-title\">Menu</div>
  97.                     <div class=\"os-icon os-icon-hamburger-menu-1\"></div>
  98.                 </div>
  99.             </div>
  100.             <div class=\"menu-and-user\">
  101.                 ";
  102.         // line 35
  103.         echo "                ";
  104.         $this->displayBlock('menu'$context$blocks);
  105.         // line 36
  106.         echo "            </div>
  107.         </div>
  108.         <div class=\"content-w\">
  109.             ";
  110.         // line 40
  111.         echo "            ";
  112.         echo $this->extensions['App\Twig\FlashBagExention']->showFlashBag();
  113.         echo "
  114.             ";
  115.         // line 41
  116.         $this->displayBlock('body'$context$blocks);
  117.         // line 42
  118.         echo "            ";
  119.         echo twig_include($this->env$context"_footer_customize.html.twig");
  120.         echo "
  121.         </div>
  122.     </div>
  123. </div>
  124. ";
  125.         // line 48
  126.         echo twig_include($this->env$context"_footer.html.twig");
  127.         echo "
  128. ";
  129.         // line 49
  130.         $this->displayBlock('js'$context$blocks);
  131.         // line 50
  132.         echo "</body>
  133. </html>
  134. ";
  135.         
  136.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  137.         
  138.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  139.     }
  140.     // line 9
  141.     public function block_title($context, array $blocks = [])
  142.     {
  143.         $macros $this->macros;
  144.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  145.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  146.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  147.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  148.         echo "Admin ";
  149.         
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  151.         
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  153.     }
  154.     // line 11
  155.     public function block_css($context, array $blocks = [])
  156.     {
  157.         $macros $this->macros;
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css"));
  160.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  161.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css"));
  162.         
  163.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  164.         
  165.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  166.     }
  167.     // line 35
  168.     public function block_menu($context, array $blocks = [])
  169.     {
  170.         $macros $this->macros;
  171.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  172.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  173.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  174.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  175.         $this->loadTemplate("_menu_sidebar_left.html.twig""base.html.twig"35)->display($context);
  176.         
  177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  178.         
  179.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  180.     }
  181.     // line 41
  182.     public function block_body($context, array $blocks = [])
  183.     {
  184.         $macros $this->macros;
  185.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  186.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  187.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  188.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  189.         
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  191.         
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  193.     }
  194.     // line 49
  195.     public function block_js($context, array $blocks = [])
  196.     {
  197.         $macros $this->macros;
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  199.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""js"));
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  201.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""js"));
  202.         
  203.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  204.         
  205.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  206.     }
  207.     public function getTemplateName()
  208.     {
  209.         return "base.html.twig";
  210.     }
  211.     public function isTraitable()
  212.     {
  213.         return false;
  214.     }
  215.     public function getDebugInfo()
  216.     {
  217.         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,);
  218.     }
  219.     public function getSourceContext()
  220.     {
  221.         return new Source("{#{% cache 'getuser' %}#}
  222.     {% set user = app.user %}
  223.     {% set imageName = app.user.imageName %}
  224. {#{% endcache %}#}
  225. <!DOCTYPE html>
  226. <html>
  227. <head>
  228.     <title>{% block title %}Admin {% endblock %}</title>
  229.     {{ include('_head.html.twig') }}
  230.     {% block css %}{% endblock %}
  231. </head>
  232. <body>
  233. <div class=\"all-wrapper container-fluid\">
  234.     {% include '_banner_top.html.twig' %}
  235.     <div class=\"layout-w \">
  236.         <div class=\"menu-w menu-activated-on-click\">
  237.             <div class=\"logo-w logged-user-w\">
  238.                 {% include '_image_profile.html.twig' with {'imageName': imageName, 'defaultImage': 'man.jpg'} %}
  239.                 <div class=\"logged-user-info-w\">
  240.                     {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  241.                         <div class=\"logged-user-name\">{{ user.username }}</div>
  242.                         <div class=\"logged-user-role\" style=\"color: #ffffff\">{{ user.roles | role | trans}}</div>
  243.                         <div class=\"logged-user-phone\" style=\"font-size:12px; color: #007bff\">{{ user.phone}}</div>
  244.                     {% endif %}
  245.                 </div>
  246.                 <div class=\"mobile-menu-trigger\">
  247.                     <div class=\"menu-title\">Menu</div>
  248.                     <div class=\"os-icon os-icon-hamburger-menu-1\"></div>
  249.                 </div>
  250.             </div>
  251.             <div class=\"menu-and-user\">
  252.                 {# Menu lateral gauche #}
  253.                 {% block menu %}{% include '_menu_sidebar_left.html.twig' %}{% endblock %}
  254.             </div>
  255.         </div>
  256.         <div class=\"content-w\">
  257.             {# Message flashbag #}
  258.             {{ falsh_bag() }}
  259.             {% block body %}{% endblock %}
  260.             {{ include('_footer_customize.html.twig') }}
  261.         </div>
  262.     </div>
  263. </div>
  264. {# Footer #}
  265. {{ include('_footer.html.twig') }}
  266. {% block js %}{% endblock %}
  267. </body>
  268. </html>
  269. ""base.html.twig""/home/dbtechaf/public_html/DBTA/templates/base.html.twig");
  270.     }
  271. }