base-root.html.twig 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {% if uri.extension() == 'json' %}{% include 'default.json.twig' %}{% else %}
  2. {% set icon_style = config.plugins.admin.admin_icons %}
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. {% block head %}
  7. <meta charset="utf-8" />
  8. <title>{% if title %}{{ title }} | {% else %}{% if header.title %}{{ header.title }} | {% endif %}{% endif %}{{ site.title }}</title>
  9. {% if header.description %}
  10. <meta name="description" content="{{ header.description }}">
  11. {% else %}
  12. <meta name="description" content="{{ site.description }}">
  13. {% endif %}
  14. {% if header.robots %}
  15. <meta name="robots" content="{{ header.robots }}">
  16. {% else %}
  17. <meta name="robots" content="noindex, nofollow">
  18. {% endif %}
  19. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  20. <link rel="icon" type="image/png" href="{{ base_url_simple }}{{ theme_url }}/images/favicon.png">
  21. {% block stylesheets %}
  22. {% include 'partials/stylesheets.html.twig' %}
  23. {{ assets.css()|raw }}
  24. {% endblock %}
  25. {% include 'partials/javascript-config.html.twig' %}
  26. {% block javascripts %}
  27. {% include 'partials/javascripts.html.twig' %}
  28. {{ assets.js()|raw }}
  29. {% endblock %}
  30. {% endblock %}
  31. </head>
  32. {% block body %}
  33. <body class="ga-theme-17x {{ config.plugins.admin.sidebar.size == 'small' ? 'sidebar-closed' : '' }} {{ config.plugins.admin.body_classes }} {{ body_classes }}">
  34. {% block page %}
  35. <div class="remodal-bg">
  36. {% block navigation %}
  37. {% include 'partials/nav.html.twig' %}
  38. {% endblock %}
  39. <main id="admin-main" >
  40. {% include 'partials/nav-toggle.html.twig' %}
  41. <div id="titlebar" class="titlebar">
  42. {% block titlebar %}{% endblock %}
  43. </div>
  44. {% block content_wrapper %}
  45. <div class="content-wrapper">
  46. <div class="{% if config.plugins.admin.content_padding %}content-padding{% endif %}">
  47. {% block messages %}
  48. {% include 'partials/messages.html.twig' %}
  49. {% endblock %}
  50. {% block widgets %}{% endblock %}
  51. <div class="default-box-shadow">
  52. {% block content_top %}{% endblock %}
  53. <div class="admin-block">
  54. {%- block content %}{% endblock -%}
  55. </div>
  56. {% if config.plugins.admin.show_github_msg %}
  57. <div class="notice alert"><i class="fa fa-github"></i> <a href="https://github.com/getgrav/grav-plugin-admin/issues" target="_blank">{{ 'PLUGIN_ADMIN.ADMIN_REPORT_ISSUE'|tu }}</a></div>
  58. {% endif %}
  59. {% block content_bottom %}{% endblock %}
  60. </div>
  61. {% block footer %}
  62. <footer id="footer">
  63. <a href="http://getgrav.org">Grav</a> v<span class="grav-version">{{ constant('GRAV_VERSION') }}</span> - Admin v{{ admin_version }} - {{ "PLUGIN_ADMIN.WAS_MADE_WITH"|tu|lower }} <i class="fa fa-heart-o pulse"></i> {{ "PLUGIN_ADMIN.BY"|tu|lower }} <a href="https://trilby.media">Trilby Media</a>.
  64. </footer>
  65. {% endblock %}
  66. </div>
  67. </div>
  68. {% endblock %}
  69. {% block modals %}
  70. <div class="remodal" data-remodal-id="generic" data-remodal-options="hashTracking: false">
  71. <form>
  72. <h1>{{ "PLUGIN_ADMIN.ERROR"|tu }}</h1>
  73. <div class="error-content"></div>
  74. <div class="button-bar">
  75. <a class="button remodal-cancel" data-remodal-action="cancel" href="#">{{ "PLUGIN_ADMIN.CLOSE"|tu }}</a>
  76. </div>
  77. </form>
  78. </div>
  79. <div class="remodal" data-remodal-id="metadata" data-remodal-options="hashTracking: false">
  80. <form>
  81. <h1><span>{{ "PLUGIN_ADMIN.METADATA"|tu }} for</span> <strong></strong></h1>
  82. <div class="metadata-preview">
  83. <div class="meta-preview"></div>
  84. <div class="meta-content"></div>
  85. </div>
  86. <div class="button-bar">
  87. <a class="button remodal-cancel" data-remodal-action="cancel" href="#">{{ "PLUGIN_ADMIN.CLOSE"|tu }}</a>
  88. </div>
  89. </form>
  90. </div>
  91. <div class="remodal" data-remodal-id="delete-media" data-remodal-options="hashTracking: false">
  92. <form>
  93. <h1>{{ "PLUGIN_ADMIN.MODAL_DELETE_FILE_CONFIRMATION_REQUIRED_TITLE"|tu }}</h1>
  94. <p class="bigger">
  95. {{ "PLUGIN_ADMIN.MODAL_DELETE_FILE_CONFIRMATION_REQUIRED_DESC"|tu }}
  96. </p>
  97. <br>
  98. <div class="button-bar">
  99. <button data-remodal-action="cancel" class="button secondary remodal-cancel"><i class="fa fa-fw fa-close"></i> {{ "PLUGIN_ADMIN.CANCEL"|tu }}</button>
  100. <button data-remodal-action="confirm" class="button remodal-confirm disable-after-click"><i class="fa fa-fw fa-check"></i> {{ "PLUGIN_ADMIN.CONTINUE"|tu }}</button>
  101. </div>
  102. </form>
  103. </div>
  104. {% endblock %}
  105. </main>
  106. <div id='overlay'></div>
  107. </div>
  108. {% endblock page %}
  109. {% block bottom %}
  110. {{ assets.js('bottom')|raw }}
  111. {% endblock %}
  112. </body>
  113. {% endblock body %}
  114. </html>
  115. {% endif %}