upstream V3 development https://www.gnusocial.rocks/v3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

106 lines
4.2 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. {% block meta %}
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="home" href="/">
  8. {% endblock %}
  9. <title>
  10. {% block title %}{% endblock %}
  11. </title>
  12. {% block stylesheets %}
  13. <link rel="preload" href="{{ asset('assets/default_theme/css/reset.css') }}" as="style" type="text/css">
  14. <link rel="stylesheet" href="{{ asset('assets/default_theme/css/reset.css') }}">
  15. <link rel="preload" href="{{ asset('assets/default_theme/css/base.css') }}" as="style" type="text/css">
  16. <link rel="stylesheet" href="{{ asset('assets/default_theme/css/base.css') }}">
  17. {% for stylesheet in show_stylesheets() %}
  18. <link rel='stylesheet' type='text/css' href="{{ asset(stylesheet) }}">
  19. {% endfor %}
  20. {% endblock %}
  21. {% for arr in handle_event('ShowHeadElements', app.request) %}
  22. {# Only one element, but has dynamic value, can't access it directly #}
  23. {% for type, element in arr %}
  24. <{{ type }} rel="{{ element['rel'] }}" type="{{ element['type'] }}" href="{{ element['href'] }}" title="{{ element['title'] }}">
  25. {% endfor %}
  26. {% endfor %}
  27. </head>
  28. <body class="bg">
  29. <aside class="accessibility-menu">
  30. <h2 class="accessibility-menu-title" tabindex="0">{{ 'Accessibility menu.' | trans }}</h2>
  31. <p tabindex="0">{{ 'Here you can find fast shortcuts to various page regions!' | trans }}</p>
  32. <p tabindex="0">{{ 'Provided the following keyboard shortcut, the link is targeted.' | trans }}</p>
  33. <br>
  34. <p tabindex="0">{{ 'Be mindful that another ' | trans }}<kbd>Tab</kbd>{{ ' is needed in order to focus.' | trans }}</p>
  35. <p tabindex="0">
  36. {% if is_firefox() == true %}
  37. <em><kbd>Alt</kbd> + <kbd>Shift</kbd> + "access key"</em>
  38. {% else %}
  39. <em><kbd>Alt</kbd> + "access key"</em>
  40. {% endif %}
  41. </p>
  42. <br>
  43. <a accesskey="z" href="#anchor-accessibility-menu" class="anchor-hidden"></a>
  44. <a id="anchor-accessibility-menu" class="anchor-hidden"></a>
  45. <p tabindex="0">
  46. <strong>{{ 'The keyboard key ' | trans }}<kbd>Z</kbd>{{ ' accesses this menu.' | trans }}</strong>
  47. <strong>{{ 'The other access keys are:' | trans }}</strong>
  48. </p>
  49. <nav>
  50. <ul>
  51. <li><a href="#anchor-left-panel" accesskey="h"><kbd>H</kbd>{{ ' for the Left panel.' | trans }}</a></li>
  52. <li><a href="#anchor-main-content" accesskey="k"><kbd>K</kbd>{{ ' for the main content.' | trans }}</a></li>
  53. <li><a href="#anchor-main-page" accesskey="j"><kbd>J</kbd>{{ ' for the main page.' | trans }}</a></li>
  54. <li><a href="#anchor-right-panel" accesskey="l"><kbd>L</kbd>{{ ' for the right panel.' | trans }}</a></li>
  55. </ul>
  56. </nav>
  57. </aside>
  58. {% block header %}
  59. {% set extra_header_forms = handle_event('AddExtraHeaderForms', request) %}
  60. <header id="header">
  61. {{ block("leftpanel", "stdgrid.html.twig") }}
  62. <a id="anchor-main-page" class="anchor-hidden" title="{{ 'Press tab to access instance\'s main page.' | trans }}"></a>
  63. <a class="accessibility-target header-instance" href="{{ path('main_public') }}" tabindex="0" title="{{ 'This instance\'s name. Access public timeline.' | trans }}">
  64. <h1>{{ icon('logo', 'icon icon-logo') | raw }}{{ config('site', 'name') }} </h1>
  65. </a>
  66. <details class="header-extra-forms">
  67. <summary>
  68. {{ icon('kebab', 'icon icon-details-open') | raw }}
  69. </summary>
  70. {% for extra_form in extra_header_forms %}
  71. {{ form(extra_form) }}
  72. {% endfor %}
  73. </details>
  74. {% if app.user %}
  75. {{ block("rightpanel", "stdgrid.html.twig") }}
  76. {% endif %}
  77. </header>
  78. {% endblock header %}
  79. <div class="content-wrapper">
  80. <a role="navigation" rel="help" id="anchor-main-content" class="anchor-hidden" title="{{ 'Press tab to access main content.' | trans }}"></a>
  81. <div class='content accessibility-target'>
  82. {% block nav %}{% endblock %}
  83. {% block body %}{% endblock %}
  84. {% block javascripts %}{% endblock javascripts %}
  85. </div>
  86. </div>
  87. </body>
  88. </html>