base-root.html.twig 5.7 KB

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