base.html.twig 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. {% block head %}
  5. <meta charset="utf-8" />
  6. <title>{% if title %}{{ title }} | {% else %}{% if header.title %}{{ header.title }} | {% endif %}{% endif %}{{ site.title }}</title>
  7. {% if header.description %}
  8. <meta name="description" content="{{ header.description }}">
  9. {% else %}
  10. <meta name="description" content="{{ site.description }}">
  11. {% endif %}
  12. {% if header.robots %}
  13. <meta name="robots" content="{{ header.robots }}">
  14. {% endif %}
  15. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  16. <link rel="icon" type="image/png" href="{{ base_url_relative_frontend }}{{ theme_url }}/images/favicon.png">
  17. {% block stylesheets %}
  18. {% do assets.addCss(theme_url~'/css-compiled/nucleus.css') %}
  19. {% do assets.addCss(theme_url~'/css-compiled/template.css') %}
  20. {% do assets.addCss(theme_url~'/css/font-awesome.min.css') %}
  21. {% do assets.addCss(theme_url~'/css/chartist.min.css') %}
  22. {% do assets.addCss(theme_url~'/css/selectize.min.css') %}
  23. {% do assets.addCss(theme_url~'/css/hint.base.min.css') %}
  24. {% do assets.addCss(theme_url~'/css/datepicker/kendo.common.core.min.css') %}
  25. {% do assets.addCss(theme_url~'/css/datepicker/kendo.flat.min.css') %}
  26. {% do assets.addCss(theme_url~'/css/datepicker/grav.overrides.css') %}
  27. {% if browser.getBrowser == 'msie' and browser.getVersion >= 8 and browser.getVersion <= 9 %}
  28. {% do assets.addCss(theme_url~'/css/nucleus-ie9.css') %}
  29. {% do assets.addCss(theme_url~'/css/pure-0.5.0/grids-min.css') %}
  30. {% endif %}
  31. {{ assets.css() }}
  32. {% endblock %}
  33. {% include 'partials/javascript-config.html.twig' %}
  34. {% block javascripts %}
  35. {% do assets.add('jquery',101) %}
  36. {% do assets.addJs(theme_url~'/js/modernizr.custom.71422.js') %}
  37. {% do assets.addJs(theme_url~'/js/chartist.min.js') %}
  38. {% do assets.addJs(theme_url~'/js/selectize.min.js') %}
  39. {% do assets.addJS(theme_url~'/js/sortable.min.js') %}
  40. {% do assets.addJs(theme_url~'/js/toastr.min.js') %}
  41. {% do assets.addJs(theme_url~'/js/jquery.remodal.min.js') %}
  42. {% do assets.addJs(theme_url~'/js/ajax.js') %}
  43. {% do assets.addJs(theme_url~'/js/admin-all.js') %}
  44. {% do assets.addJs(theme_url~'/js/dropdown.js') %}
  45. {% do assets.addJs(theme_url~'/js/mobile.js') %}
  46. {% do assets.addJs(theme_url~'/js/datepicker/kendo.custom.min.js') %}
  47. {% do assets.addJs(theme_url~'/js/datepicker/init.js') %}
  48. {% do assets.addJs(theme_url~'/js/forms/form.js') %}
  49. {% do assets.addJs(theme_url~'/js/forms/fields/input.js') %}
  50. {% do assets.addJs(theme_url~'/js/forms/fields/array.js') %}
  51. {% do assets.addJs(theme_url~'/js/forms/fields/selectize.js') %}
  52. {% do assets.addJs(theme_url~'/js/forms/fields/checkboxes.js') %}
  53. {% do assets.addJs(theme_url~'/js/forms/fields/toggle.js') %}
  54. {% do assets.addJs(theme_url~'/js/forms.js') %}
  55. {% if browser.getBrowser == 'msie' %}
  56. {% do assets.addJs(theme_url~'/js/form-attr.polyfill.js') %}
  57. {% endif %}
  58. {{ assets.js() }}
  59. {% endblock %}
  60. {% endblock %}
  61. </head>
  62. <body {% if not config.plugins.admin.google_fonts %}class="simple-fonts"{% endif %}>
  63. {% block page %}
  64. <div class="remodal-bg">
  65. {% block navigation %}
  66. {% include 'partials/nav.html.twig' %}
  67. {% endblock %}
  68. <section id="admin-main" >
  69. <div id="titlebar" class="titlebar secondary-accent">
  70. {% block titlebar %}{% endblock %}
  71. </div>
  72. <div class="grav-update" data-gpm-grav>
  73. </div>
  74. <div class="content-padding">
  75. <div>
  76. {% block messages %}
  77. {% include 'partials/messages.html.twig' %}
  78. {% endblock %}
  79. {% block content_top %}{% endblock %}
  80. <div class="admin-block default-box-shadow">
  81. {% block content %}{% endblock %}
  82. </div>
  83. {% if config.plugins.admin.show_beta_msg %}
  84. <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>
  85. {% endif %}
  86. {% block content_bottom %}{% endblock %}
  87. </div>
  88. <footer id="footer">
  89. <a href="http://getgrav.org">Grav</a> {{ "PLUGIN_ADMIN.VERSION"|tu|lower }} <span class="grav-version">{{ constant('GRAV_VERSION') }}</span> {{ "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>.
  90. </footer>
  91. </div>
  92. </section>
  93. <div id='overlay'></div>
  94. </div>
  95. {% endblock page %}
  96. </body>
  97. </html>