html--ressources--annuairederecherche.html.twig 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {#
  2. /**
  3. * @file
  4. * Theme override for the basic structure of a single Drupal page.
  5. *
  6. * Variables:
  7. * - logged_in: A flag indicating if user is logged in.
  8. * - root_path: The root path of the current page (e.g., node, admin, user).
  9. * - node_type: The content type for the current node, if the page is a node.
  10. * - head_title: List of text elements that make up the head_title variable.
  11. * May contain one or more of the following:
  12. * - title: The title of the page.
  13. * - name: The name of the site.
  14. * - slogan: The slogan of the site.
  15. * - page_top: Initial rendered markup. This should be printed before 'page'.
  16. * - page: The rendered page markup.
  17. * - page_bottom: Closing rendered markup. This variable should be printed after
  18. * 'page'.
  19. * - db_offline: A flag indicating if the database is offline.
  20. * - placeholder_token: The token for generating head, css, js and js-bottom
  21. * placeholders.
  22. *
  23. * @see template_preprocess_html()
  24. */
  25. #}
  26. {%
  27. set body_classes = [
  28. logged_in ? 'user-logged-in',
  29. not root_path ? 'path-frontpage' : 'path-' ~ root_path|clean_class,
  30. node_type ? 'page-node-type-' ~ node_type|clean_class,
  31. db_offline ? 'db-offline',
  32. 'annuairederecherche',
  33. ]
  34. %}
  35. <!DOCTYPE html>
  36. <html{{ html_attributes }}>
  37. <head>
  38. <head-placeholder token="{{ placeholder_token }}">
  39. <title>{{ head_title|safe_join(' | ') }}</title>
  40. <css-placeholder token="{{ placeholder_token }}">
  41. <js-placeholder token="{{ placeholder_token }}">
  42. </head>
  43. <body{{ attributes.addClass(body_classes) }}>
  44. {#
  45. Keyboard navigation/accessibility link to main content section in
  46. page.html.twig.
  47. #}
  48. <a href="#main-content" class="visually-hidden focusable skip-link">
  49. {{ 'Skip to main content'|t }}
  50. </a>
  51. {{ page_top }}
  52. {{ page }}
  53. {{ page_bottom }}
  54. <js-bottom-placeholder token="{{ placeholder_token }}">
  55. </body>
  56. </html>