base.html.twig 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 href="https://fonts.googleapis.com/css2?family=Montserrat:wght@800&family=Open+Sans&display=swap"
  13. rel="stylesheet">
  14. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base.css') }}"
  15. media="screen and (min-width: 1300px)">
  16. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base_mid.css') }}"
  17. media="screen and (max-width: 1300px)">
  18. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base_small.css') }}"
  19. media="screen and (max-width: 750px)">
  20. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/reset.css') }}">
  21. {% for stylesheet in show_stylesheets() %}
  22. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/' ~ stylesheet) }}">
  23. {% endfor %}
  24. {% endblock %}
  25. {% for arr in handle_event('ShowHeadElements', app.request) %}
  26. {# Only one element, but has dynamic value, can't access it directly #}
  27. {% for type, element in arr %}
  28. <{{ type }} rel="{{ element['rel'] }}" type="{{ element['type'] }}" href="{{ element['href'] }}" title="{{ element['title'] }}">
  29. {% endfor %}
  30. {% endfor %}
  31. </head>
  32. <body>
  33. <div class="container">
  34. {% block header %}
  35. <div id='header'>
  36. <div id='top'>
  37. {% block leftpanel %}
  38. {% endblock leftpanel %}
  39. <nav id='instance'>
  40. <a href="{{ path('main_public') }}">
  41. {{ icon('logo', 'icon icon-logo') | raw }}
  42. <b> {{ config('site', 'name') }} </b>
  43. </a>
  44. </nav>
  45. {% block rightpanel %}
  46. {% endblock rightpanel %}
  47. </div>
  48. </div>
  49. {% endblock header %}
  50. {% block nav %}{% endblock %}
  51. {% block body %}{% endblock %}
  52. {% block javascripts %}{% endblock javascripts %}
  53. </div>
  54. </body>
  55. </html>