vendor/kunstmaan/admin-bundle/Resources/views/Default/layout.html.twig line 21

Open in your IDE?
  1. {% set adminmenu = get_admin_menu() %}
  2. {% set extraclasshtml %}{% block extraclasshtml %}{% endblock %}{% endset %}
  3. <!DOCTYPE html>
  4. <html class="{{ extraclasshtml }}" lang="en">
  5. <head>
  6.     <meta charset="utf-8">
  7.     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8.     <meta name="viewport" content="width=device-width,initial-scale=1">
  9.     <meta name="robots" content="noindex, nofollow">
  10.     <title>{% block title %}{{ websitetitle | trans }}{% endblock %}</title>
  11.     <!-- Favicons -->
  12.     {% include "@KunstmaanAdmin/Default/_favicons.html.twig" %}
  13.     <!-- Styles -->
  14.     {% include "@KunstmaanAdmin/Default/_css.html.twig" %}
  15.     <!-- Extra CSS -->
  16.     {% block extracss %}{% endblock %}
  17.     <!-- JS -->
  18.     {% include "@KunstmaanAdmin/Default/_js_header.html.twig" %}
  19.     {% if google_signin_enabled() %}
  20.         <script src="https://apis.google.com/js/platform.js" async defer></script>
  21.     {% endif %}
  22. </head>
  23. <body {% block extraparamsinbody %}{% endblock %} class="app {% block extrabodyclasses %}{% endblock %}" data-file-browse-url="{% if nodebundleisactive is defined and nodebundleisactive %}{{ path('KunstmaanNodeBundle_ckselecturl') }}{% endif %}" data-image-browse-url="{% if mediabundleisactive is defined %}{{ path('KunstmaanMediaBundle_chooser', {'type': 'image'}) }}{% endif %}">
  24. <!-- Body block -->
  25. {% block body %}
  26.     <!-- Header -->
  27.     {% block appHeader %}
  28.         {% include "@KunstmaanAdmin/Default/app_header.html.twig" %}
  29.     {% endblock %}
  30.     <!-- Nav settings -->
  31.     {% if lowestTopChild is not defined %}
  32.         {% set lowestTopChild = adminmenu.lowestTopChild %}
  33.         {% if lowestTopChild %}
  34.             {% set navigationChildren = lowestTopChild.navigationChildren %}
  35.         {% endif %}
  36.     {% endif %}
  37.     {% if page is defined %}
  38.         {%  set hideSidebar = hideSidebarInNodeEditAdmin(page) %}
  39.     {%  else  %}
  40.         {%  set hideSidebar = false %}
  41.     {%  endif %}
  42.     <!-- Main Content -->
  43.     <main role="main" id="app__main" class="container-fluid app__main{% if not hideSidebar and lowestTopChild and navigationChildren | length > 0 %} app__main--has-sidebar{% else %} app__main--no-sidebar{% endif %}">
  44.         <div class="row">
  45.             {% if not hideSidebar and lowestTopChild and navigationChildren | length > 0 %}
  46.                 <!-- App Sidebar -->
  47.                 <aside id="app__sidebar" class="col-md-3 app__sidebar">
  48.                     {% block sidebar %}
  49.                     {% include "@KunstmaanAdmin/Default/sidebar.html.twig" %}
  50.                     {% endblock %}
  51.                 </aside>
  52.                 <!-- App Content - with sidebar -->
  53.                 <div id="app__content" class="col-md-9 col-md-offset-3 col--padded app__content">
  54.                     <!-- App Sidebar Toggle -->
  55.                     <button type="button" id="app__sidebar-toggle" class="btn--reset app__sidebar-toggle" title="toggle sidebar">
  56.                         <span class="app__sidebar-toggle__show-icon">
  57.                             <i class="fa fa-caret-right"></i>
  58.                             <i class="fa fa-list-ul"></i>
  59.                         </span>
  60.                         <span class="app__sidebar-toggle__hide-icon">
  61.                             <i class="fa fa-caret-left"></i>
  62.                             <i class="fa fa-list-ul"></i>
  63.                         </span>
  64.                     </button>
  65.             {% else %}
  66.                 <!-- App Content - full width -->
  67.                 <div id="app__content" class="col-md-12 col--padded app__content">
  68.             {% endif %}
  69.                     <!-- App Content - Breadcrumbs -->
  70.                     {% block breadcrumb %}
  71.                         {% include "@KunstmaanAdmin/Default/breadcrumbs.html.twig" %}
  72.                     {% endblock %}
  73.                     <!-- App Content - Flash Messages -->
  74.                     {% block flashmessages %}
  75.                         {% include "@KunstmaanAdmin/Default/flashmessages.html.twig" %}
  76.                     {% endblock %}
  77.                     <!-- App Content - General Messages -->
  78.                     {% block messages %}{% endblock %}
  79.                     <!-- App Content - Header -->
  80.                     {% block header %}
  81.                         <header class="app__content__header">
  82.                             <div class="row">
  83.                                 {% block admin_page_title %}
  84.                                     <div class="col-sm-6 col-md-8">
  85.                                         {% if adminmenu.current %}
  86.                                             <h1 class="app__content__header__title">
  87.                                                 {{ adminmenu.current.label | trans }} {% block page_header_addition %}{% endblock %}
  88.                                             </h1>
  89.                                         {% endif %}
  90.                                     </div>
  91.                                 {% endblock %}
  92.                                 {% block extra_actions_header %}{% endblock %}
  93.                             </div>
  94.                         </header>
  95.                     {% endblock %}
  96.                     <!-- App Content - Content -->
  97.                     {% block content %}{% endblock %}
  98.                 </div>
  99.             </div>
  100.         </div>
  101.     </main>
  102.     <!-- Footer -->
  103.     {% block footer %}
  104.         <footer role="contentinfo" class="app__footer container-fluid">
  105.             <a target="_blank" rel="noopener" href="https://www.kunstmaan.be" class="app__footer__kunstmaan-link pull-right">
  106.                 <img src="/bundles/kunstmaanadmin/default-theme/img/kunstmaan/kunstmaan_dark.svg" alt="Kunstmaan" />
  107.             </a>
  108.         </footer>
  109.     {% endblock %}
  110. {% endblock %}
  111.     {% block js_footer %}
  112.         <!-- JS -->
  113.         {% include "@KunstmaanAdmin/Default/_js_footer.html.twig" %}
  114.     {% endblock %}
  115.     <!-- JS - Extra -->
  116.     {% block extrajavascript %}{% endblock %}
  117. </body>
  118. </html>