base.html.twig 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. {% block meta %}
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. {% endblock %}
  8. <title>
  9. {% block title %}{% endblock %}
  10. </title>
  11. {% block stylesheets %}
  12. <link rel='stylesheet' type='text/css' href="{{ asset('assets/fonts/inter/inter.css') }}">
  13. <link rel='stylesheet' type='text/css' href="{{ asset('assets/fonts/manrope/manrope.css') }}">
  14. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base.css') }}">
  15. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/reset.css') }}">
  16. {% for stylesheet in show_stylesheets() %}
  17. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/' ~ stylesheet) }}">
  18. {% endfor %}
  19. {% endblock %}
  20. {% for arr in handle_event('ShowHeadElements', app.request) %}
  21. {# Only one element, but has dynamic value, can't access it directly #}
  22. {% for type, element in arr %}
  23. <{{ type }} rel="{{ element['rel'] }}" type="{{ element['type'] }}" href="{{ element['href'] }}" title="{{ element['title'] }}">
  24. {% endfor %}
  25. {% endfor %}
  26. </head>
  27. <body class="bg">
  28. {% block header %}
  29. <div id='header'>
  30. <details class="panel" id="left-container">
  31. <summary tabindex="0" aria-haspopup="true" role="button" aria-expanded="false">
  32. {{ icon('menu', 'icon icon-left') | raw }}
  33. {{ block("leftpanel", "stdgrid.html.twig") }}
  34. </summary>
  35. </details>
  36. <a id='instance' href="{{ path('main_public') }}" tabindex="0">
  37. {{ icon('logo', 'icon icon-logo') | raw }}
  38. <h1> {{ config('site', 'name') }} </h1>
  39. </a>
  40. <details class="panel" id="right-container">
  41. <summary tabindex="0" aria-haspopup="true" role="button" aria-expanded="false">
  42. {{ icon('notes', 'icon icon-right') | raw }}
  43. {{ block("rightpanel", "stdgrid.html.twig") }}
  44. </summary>
  45. </details>
  46. </div>
  47. {% endblock header %}
  48. <div class="container">
  49. <div class='content'>
  50. {% block nav %}{% endblock %}
  51. {% block body %}{% endblock %}
  52. {% block javascripts %}{% endblock javascripts %}
  53. </div>
  54. </div>
  55. </body>
  56. </html>