XBackBone/resources/templates/base.twig

71 lines
4.3 KiB
Twig
Raw Normal View History

2018-04-28 12:20:07 +00:00
<!doctype html>
2018-11-19 18:38:47 +00:00
<html lang="{{ current_lang }}">
2018-04-28 12:20:07 +00:00
<head>
<title>{% block title %}Default{% endblock %} | {{ config.app_name }}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
2019-09-14 12:50:14 +00:00
<meta name="description" content="{{ config.app_name }} - Proudly powered by XBackBone.">
2019-11-22 10:32:55 +00:00
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('/static/images/apple-touch-icon.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('/static/images/favicon-32x32.png') }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('/static/images/favicon-16x16.png') }}">
<link rel="manifest" href="{{ asset('/static/images/site.webmanifest') }}">
<link rel="mask-icon" href="{{ asset('/static/images/safari-pinned-tab.svg') }}" color="#5bbad5">
<link rel="shortcut icon" href="{{ asset('/static/images/favicon.ico') }}">
<meta name="msapplication-TileColor" content="#603cba">
<meta name="msapplication-config" content="{{ asset('/static/images/browserconfig.xml') }}">
<meta name="theme-color" content="#ffffff">
<link rel="preload" href="{{ asset('/static/bootstrap/css/bootstrap.min.css') }}" as="style">
2019-09-14 12:50:14 +00:00
<link rel="preload" href="{{ asset('/static/fontawesome/css/all.min.css') }}" as="style">
<link rel="preload" href="{{ asset('/static/app/app.css') }}" as="style">
<link rel="preload" href="{{ asset('/static/jquery/jquery.min.js') }}" as="script">
<link rel="preload" href="{{ asset('/static/bootstrap/js/bootstrap.bundle.min.js') }}" as="script">
<link rel="preload" href="{{ asset('/static/app/app.js') }}" as="script">
<link href="{{ asset('/static/bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('/static/fontawesome/css/all.min.css') }}" rel="stylesheet">
<link href="{{ asset('/static/highlightjs/styles/monokai.css') }}" rel="stylesheet">
<link href="{{ asset('/static/plyr/plyr.css') }}" rel="stylesheet">
2019-11-13 15:23:10 +00:00
<link href="{{ asset('/static/dropzone/dropzone.min.css') }}" rel="stylesheet">
2020-02-25 16:09:36 +00:00
<link href="{{ asset('/static/bootstrap/css/bootstrap4-toggle.min.css') }}" rel="stylesheet">
<link href="{{ asset('/static/app/app.css') }}" rel="stylesheet">
2021-03-07 16:21:07 +00:00
{% block meta %}
<meta id="embed-title" property="og:title" content="{{ block('title') }}">
<meta id="discord" name="twitter:image" content="{{ asset('/static/images/favicon-32x32.png') }}">
<meta id="image-src" name="twitter:image:src" content="{{ asset('/static/images/favicon-32x32.png') }}">
<meta id="embed-image" property="og:image" content="{{ asset('/static/images/favicon-32x32.png') }}">
<meta id="embed-desc" property="og:description" content="Proudly powered by XBackBone">
{% endblock %}
<script>
window.AppConfig = {
2019-11-18 10:42:42 +00:00
'base_url': '{{ urlFor() }}',
'max_upload_size': {{ maxUploadSize }},
'lang': {'publish': '{{ lang('publish') }}', 'hide': '{{ lang('hide') }}', 'dropzone': '{{ lang('drop_to_upload') }}'}
}
</script>
2018-04-28 12:20:07 +00:00
{% block head %}{% endblock %}
{{ customHead|raw }}
2018-04-28 12:20:07 +00:00
</head>
<body class="bg-light">
2018-04-28 12:20:07 +00:00
{% block content %}{% endblock %}
2019-02-06 21:34:56 +00:00
{% block footer %}
<div class="container-fluid footer" style="display: none; font-size: 0.8rem">
2020-04-10 14:45:43 +00:00
<div class="text-muted">Proudly powered by <a href="https://sergix44.github.io/XBackBone/">XBackBone{% if session.get('admin') %} v{{ PLATFORM_VERSION }}{% endif %}</a> — <i class="fas fa-fw fa-balance-scale"></i> AGPL v3.0</div>
2019-02-06 21:34:56 +00:00
</div>
{% endblock %}
<script src="{{ asset('/static/jquery/jquery.min.js') }}"></script>
<script src="{{ asset('/static/bootstrap/js/bootstrap.bundle.min.js') }}"></script>
<script src="{{ asset('/static/highlightjs/highlight.pack.min.js') }}"></script>
2020-05-18 10:20:59 +00:00
<script src="{{ asset('/static/highlightjs/highlightjs-line-numbers.min.js') }}"></script>
<script src="{{ asset('/static/clipboardjs/clipboard.min.js') }}"></script>
<script src="{{ asset('/static/plyr/plyr.min.js') }}"></script>
2019-11-13 15:23:10 +00:00
<script src="{{ asset('/static/dropzone/dropzone.min.js') }}"></script>
2020-02-25 16:09:36 +00:00
<script src="{{ asset('/static/bootstrap/js/bootstrap4-toggle.min.js') }}"></script>
<script src="{{ asset('/static/app/app.js') }}"></script>
2020-05-18 10:20:59 +00:00
<script>
hljs.initHighlightingOnLoad();
hljs.initLineNumbersOnLoad({
singleLine: true
});
</script>
{% block js %}{% endblock %}
2018-04-28 12:20:07 +00:00
</body>
</html>