-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathhead_common.twig
More file actions
33 lines (29 loc) · 1.92 KB
/
Copy pathhead_common.twig
File metadata and controls
33 lines (29 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!-- Meta -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="csrf_token" content="{{ csrf_token() }}" />
<meta name="token" content="{{ Request.input('token') }}" />
<meta name="date_format" content="{{ Config.get('settings.date_format') }}" />
<meta name="time_format" content="{{ Config.get('settings.time_format') }}" />
<meta name="default_country" content="{{ Config.get('settings.default_country') }}" />
<meta name="max_file_size" content="{{ max_file_size }}" />
<meta name="allowed_files" content="{{ allowed_files }}" />
<meta name="environment" content="{{ Config.get('app.env') }}" />
<!-- Icon -->
{% if Config.get('settings.favicon') is not empty %}
<link rel="icon" href="{{ Config.get('settings.favicon') }}" sizes="32x32"
{% if Config.get('settings.favicon_dark_mode') is not empty %}media="(prefers-color-scheme: light)"{% endif %} />
{% endif %}
{% if Config.get('settings.favicon_dark_mode') is not empty %}
<link rel="icon" href="{{ Config.get('settings.favicon_dark_mode') }}" sizes="32x32" media="(prefers-color-scheme: dark)" />
{% endif %}
{% set lightThemeColour = Config.get('template.themes.light.scheme.--color-background-primary') %}
{% set darkThemeColour = Config.get('template.themes.dark.scheme.--color-background-primary') %}
<meta name="theme-color" content="{{ get_template_mode(false) is same as('sp-theme-dark') ? darkThemeColour : lightThemeColour }}"
media="(prefers-color-scheme: light)">
<meta name="theme-color" content="{{ darkThemeColour }}" media="(prefers-color-scheme: dark)" />
<!-- CSS -->
{{ colourScheme|raw }}
<script src="{{ asset_rev('/resources/assets/general/js/preload.js') }}"></script>
<link href="{{ asset_rev('resources/assets/frontend/css/main.min.css') }}" rel="stylesheet" />
<link href="{{ asset_rev('resources/assets/libs/css/common.min.css') }}" rel="stylesheet" />