header.twig 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!doctype html>
  2. <html lang="{{ lang }}" dir="{{ text_dir }}">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <meta name="referrer" content="no-referrer">
  7. <meta name="robots" content="noindex,nofollow">
  8. <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  9. {% if not allow_third_party_framing -%}
  10. <style id="cfs-style">html{display: none;}</style>
  11. {%- endif %}
  12. <link rel="icon" href="favicon.ico" type="image/x-icon">
  13. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
  14. {% if is_print_view %}
  15. <link rel="stylesheet" type="text/css" href="{{ base_dir }}print.css?{{ version }}">
  16. {% else %}
  17. <link rel="stylesheet" type="text/css" href="{{ theme_path }}/jquery/jquery-ui.css">
  18. <link rel="stylesheet" type="text/css" href="{{ base_dir }}js/vendor/codemirror/lib/codemirror.css?{{ version }}">
  19. <link rel="stylesheet" type="text/css" href="{{ base_dir }}js/vendor/codemirror/addon/hint/show-hint.css?{{ version }}">
  20. <link rel="stylesheet" type="text/css" href="{{ base_dir }}js/vendor/codemirror/addon/lint/lint.css?{{ version }}">
  21. <link rel="stylesheet" type="text/css" href="{{ theme_path }}/css/theme{{ text_dir == 'rtl' ? '-rtl' }}.css?{{ version }}&nocache=
  22. {{- unique_value }}{{ text_dir }}{% if server is not empty %}&server={{ server }}{% endif %}">
  23. <link rel="stylesheet" type="text/css" href="{{ theme_path }}/css/printview.css?{{ version }}" media="print" id="printcss">
  24. {% endif %}
  25. <title>{{ title }}</title>
  26. {{ scripts|raw }}
  27. <noscript><style>html{display:block}</style></noscript>
  28. </head>
  29. <body{{ body_id is not empty ? ' id=' ~ body_id }}>
  30. {{ navigation|raw }}
  31. {{ custom_header|raw }}
  32. {{ load_user_preferences|raw }}
  33. {% if not show_hint %}
  34. <span id="no_hint" class="hide"></span>
  35. {% endif %}
  36. {% if is_warnings_enabled %}
  37. <noscript>
  38. {{ 'Javascript must be enabled past this point!'|trans|error }}
  39. </noscript>
  40. {% endif %}
  41. {% if is_menu_enabled and server > 0 %}
  42. {{ menu|raw }}
  43. <span id="page_nav_icons">
  44. <span id="lock_page_icon"></span>
  45. <span id="page_settings_icon">
  46. {{ get_image('s_cog', 'Page-related settings'|trans) }}
  47. </span>
  48. <a id="goto_pagetop" href="#">{{ get_image('s_top', 'Click on the bar to scroll to top of page'|trans) }}</a>
  49. </span>
  50. {% endif %}
  51. {{ console|raw }}
  52. <div id="page_content">
  53. {{ messages|raw }}
  54. {{ recent_table|raw }}