vendor/umbrella2/adminbundle/templates/layout.html.twig line 1

Open in your IDE?
  1. {% if admin_menu is not defined %}
  2.     {% set admin_menu = get_menu(admin.menuName()) %}
  3. {% endif %}
  4. <!doctype html>
  5. <html lang="{{ app.request.locale }}">
  6.     <head>
  7.         <meta charset="utf-8" />
  8.         <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
  9.         <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
  10.         {% block favicon %}
  11.             <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
  12.         {% endblock %}
  13.         <script src="//unpkg.com/@ungap/custom-elements"></script>
  14.         {% block title %}
  15.             {% set menu_page_title = get_page_title_from_menu(admin_menu) %}
  16.             <title>{{ (menu_page_title ? menu_page_title ~ ' | ') ~ admin.appName() }}</title>
  17.         {% endblock %}
  18.         {% block stylesheets %}
  19.             {% include "@UmbrellaAdmin/_stylesheets.html.twig" %}
  20.         {% endblock %}
  21.     </head>
  22.     <body class="env-{{ app.environment }} {% block body_class %}{% endblock %}">
  23.         {% block body %}
  24.             <div class="wrapper">
  25.                 {% block sidebar %}
  26.                     {{ render_menu(admin_menu) }}
  27.                 {% endblock %}
  28.                 <div class="main">
  29.                     {% block topbar %}
  30.                         <nav class="navbar navbar-expand navbar-light navbar-bg sticky-top">
  31.                             <a class="sidebar-toggle js-sidebar-toggle">
  32.                                 <i class="hamburger align-self-center"></i>
  33.                             </a>
  34.                             <div class="{{ admin.containerClass }}">
  35.                                 {% block breadcrumb %}
  36.                                     {{ render_breadcrumb(admin_menu) }}
  37.                                 {% endblock %}
  38.                                 <div class="navbar-collapse collapse">
  39.                                     <ul class="navbar-nav navbar-align">
  40.                                         {% if admin.notificationEnable() %}
  41.                                             {% include "@UmbrellaAdmin/Notification/widget.html.twig" %}
  42.                                         {% endif %}
  43.                                         {% include '@UmbrellaAdmin/_userinfo.html.twig' %}
  44.                                     </ul>
  45.                                 </div>
  46.                             </div>
  47.                         </nav>
  48.                     {% endblock %}
  49.                     <main class="content">
  50.                         <div class="{{ admin.containerClass }}">
  51.                             {% block content %}
  52.                             {% endblock %}
  53.                         </div>
  54.                     </main>
  55.                 </div>
  56.             </div>
  57.         {% endblock %}
  58.         {% include "@UmbrellaCore/_toast.html.twig" %}
  59.         {% block javascripts %}
  60.             {% include "@UmbrellaAdmin/_scripts.html.twig" %}
  61.         {% endblock %}
  62.     </body>
  63. </html>