header.twig 2.5 KB

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