vendor/kevinpapst/adminlte-bundle/Resources/views/layout/default-layout.html.twig line 1

Open in your IDE?
  1. {#
  2.     Use this as your new starter template page, use it to start your new project,
  3.     by adding this code to your own base template:
  4.     {% extends '@AdminLTE/layout/default-layout.html.twig' %}
  5.     Enjoy your AdminLTE theme!
  6. #}
  7. <!DOCTYPE html{% block html_start %}{% endblock %}>
  8. <html lang="{{ app.request.locale }}">
  9. <head>
  10.     {% block head %}
  11.     <meta charset="utf-8">
  12.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  13.     <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  14.     {% endblock %}
  15.     <title>{% block title %}{{ block('page_title') }}{% endblock %}</title>
  16.     {% block stylesheets %}
  17.     <link rel="stylesheet" href="{{ asset('bundles/adminlte/adminlte.css') }}">
  18.     {% endblock %}
  19. </head>
  20. {#
  21. Apply one of the following classes for the skin:
  22. skin-blue, skin-black, skin-purple, skin-yellow, skin-red, skin-green
  23. Apply one or more of the following classes for the layout options:
  24. fixed, layout-boxed, layout-top-nav, sidebar-collapse, sidebar-mini
  25. #}
  26. <body{% block body_start %}{% endblock %} class="hold-transition {{ admin_lte_context.skin|default("")|body_class }}">
  27. {% block after_body_start %}{% endblock %}
  28. <div class="wrapper">
  29.     <header class="main-header">
  30.         <a href="{% block logo_path %}{{ path('adminlte_welcome'|route_alias) }}{% endblock %}" class="logo">
  31.             <span class="logo-mini">
  32.                 {% block logo_mini %}<b>A</b>LT{% endblock %}
  33.             </span>
  34.             <span class="logo-lg">
  35.                {% block logo_large %} <b>Admin</b>LTE {% endblock %}
  36.             </span>
  37.         </a>
  38.         <nav class="navbar navbar-static-top" role="navigation">
  39.             {% block navbar_toggle %}
  40.             <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
  41.                 <span class="sr-only">{{ 'Toggle navigation'|trans({}, 'AdminLTEBundle')  }}</span>
  42.             </a>
  43.             {% endblock %}
  44.             <div class="navbar-custom-menu">
  45.                 <ul class="nav navbar-nav">
  46.                     {% block navbar_start %}{% endblock %}
  47.                     {% block navbar_messages %}
  48.                         {% include '@AdminLTE/Navbar/messages.html.twig' with {'adminlte_direct_include': true} %}
  49.                     {% endblock %}
  50.                     {% block navbar_notifications %}
  51.                         {% include '@AdminLTE/Navbar/notifications.html.twig' with {'adminlte_direct_include': true} %}
  52.                     {% endblock %}
  53.                     {% block navbar_tasks %}
  54.                         {% include '@AdminLTE/Navbar/tasks.html.twig' with {'adminlte_direct_include': true} %}
  55.                     {% endblock %}
  56.                     {% block navbar_user %}
  57.                         {% include '@AdminLTE/Navbar/user.html.twig' with {'adminlte_direct_include': true} %}
  58.                     {% endblock %}
  59.                     {% block navbar_end %}{% endblock %}
  60.                     {% block navbar_control_sidebar_toggle %}
  61.                         {% if admin_lte_context.control_sidebar is defined and admin_lte_context.control_sidebar is not empty %}
  62.                         <li>
  63.                             <a href="#" data-toggle="control-sidebar"><i class="fas fa-cogs"></i></a>
  64.                         </li>
  65.                         {% endif %}
  66.                     {% endblock %}
  67.                 </ul>
  68.             </div>
  69.         </nav>
  70.     </header>
  71.     <aside class="main-sidebar">
  72.         <section class="sidebar">
  73.             {% block sidebar_user %}
  74.                 {% if app.user is not null and is_granted('IS_AUTHENTICATED_FULLY') %}
  75.                     {% include '@AdminLTE/Sidebar/user-panel.html.twig' with {'adminlte_direct_include': true} %}
  76.                 {% endif %}
  77.             {% endblock %}
  78.             {% block sidebar_search %}
  79.                 {% include '@AdminLTE/Sidebar/search-form.html.twig' with {'adminlte_direct_include': true} %}
  80.             {% endblock %}
  81.             {% block sidebar_nav %}
  82.                 {% if admin_lte_context.knp_menu.enable %}
  83.                     {% include '@AdminLTE/Sidebar/knp-menu.html.twig' %}
  84.                 {% else %}
  85.                     {% include '@AdminLTE/Sidebar/menu.html.twig' with {'adminlte_direct_include': true} %}
  86.                 {% endif %}
  87.             {% endblock %}
  88.         </section>
  89.     </aside>
  90.     <div class="content-wrapper">
  91.         <section class="content-header">
  92.             <h1>
  93.                 {% block page_title %}{{ 'Admin LTE'|trans({}, 'AdminLTEBundle') }}{% endblock %}
  94.                 <small>{% block page_subtitle %}{{ 'A short subtitle for your page'|trans({}, 'AdminLTEBundle') }}{% endblock %}</small>
  95.             </h1>
  96.             {% block breadcrumb %}
  97.                 {% if admin_lte_context.knp_menu.enable %}
  98.                     {% include '@AdminLTE/Breadcrumb/knp-breadcrumb.html.twig' %}
  99.                 {% else %}
  100.                     {% include '@AdminLTE/Breadcrumb/breadcrumb.html.twig' with {'adminlte_direct_include': true} %}
  101.                 {% endif %}
  102.             {% endblock %}
  103.         </section>
  104.         {% block page_content_before %}{% endblock %}
  105.         <section class="{% block page_content_class %}content{% endblock %}">
  106.             {% block page_content_start %}{{ include('@AdminLTE/Partials/_flash_messages.html.twig') }}{% endblock %}
  107.             {% block page_content %}{% endblock %}
  108.             {% block page_content_end %}{% endblock %}
  109.         </section>
  110.         {% block page_content_after %}{% endblock %}
  111.     </div>
  112.     {% block footer %}
  113.         {% include '@AdminLTE/Partials/_footer.html.twig' %}
  114.     {% endblock %}
  115.     {% block control_sidebar %}
  116.         {% if admin_lte_context.control_sidebar %}
  117.             {% include '@AdminLTE/Partials/_control-sidebar.html.twig' %}
  118.         {% endif %}
  119.     {% endblock %}
  120. </div>
  121. {% block javascripts %}
  122.     <script src="{{ asset('bundles/adminlte/adminlte.js') }}"></script>
  123. {% endblock %}
  124. </body>
  125. </html>