]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/views/base.html.twig
Load custom.css only if exists
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / base.html.twig
CommitLineData
495aecfe 1<!DOCTYPE html>
416d44d0
S
2{% set lang = app.request.locale|default('') -%}
3<!--[if lte IE 6]><html class="no-js ie6 ie67 ie678"{% if lang is not empty %} lang="{{ lang }}"{% endif %}><![endif]-->
4<!--[if lte IE 7]><html class="no-js ie7 ie67 ie678"{% if lang is not empty %} lang="{{ lang }}"{% endif %}><![endif]-->
5<!--[if IE 8]><html class="no-js ie8 ie678"{% if lang is not empty %} lang="{{ lang }}"{% endif %}><![endif]-->
6<!--[if gt IE 8]><html class="no-js"{% if lang is not empty %} lang="{{ lang }}"{% endif %}><![endif]-->
7<html{% if lang is not empty %} lang="{{ lang }}"{% endif %}>
495aecfe
J
8 <head>
9 {% block head %}
10 <meta name="viewport" content="initial-scale=1.0">
11 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
2dbb5b23 12 <meta name="referrer" content="strict-origin-when-cross-origin">
495aecfe
J
13 <!--[if IE]>
14 <meta http-equiv="X-UA-Compatible" content="IE=10">
15 <![endif]-->
16
9ff628ca
KD
17 <link rel="apple-touch-icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon-152.png') }}" sizes="152x152">
18 <link rel="icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon-152.png') }}" sizes="152x152">
495aecfe 19
9ff628ca
KD
20 <link rel="apple-touch-icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon-144.png') }}" sizes="144x144">
21 <link rel="icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon-144.png') }}" sizes="144x144">
495aecfe 22
9ff628ca
KD
23 <link rel="apple-touch-icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon-120.png') }}" sizes="120x120">
24 <link rel="icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon-120.png') }}" sizes="120x120">
495aecfe 25
9ff628ca
KD
26 <link rel="apple-touch-icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon-114.png') }}" sizes="114x114">
27 <link rel="icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon-114.png') }}" sizes="114x114">
495aecfe 28
9ff628ca
KD
29 <link rel="apple-touch-icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon-76.png') }}" sizes="76x76">
30 <link rel="icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon-76.png') }}" sizes="76x76">
495aecfe 31
9ff628ca
KD
32 <link rel="apple-touch-icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon-72.png') }}" sizes="72x72">
33 <link rel="icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon-72.png') }}" sizes="72x72">
495aecfe 34
9ff628ca
KD
35 <link rel="apple-touch-icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon-57.png') }}" sizes="57x57">
36 <link rel="icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon-57.png') }}" sizes="57x57">
495aecfe 37
9ff628ca
KD
38 <link rel="apple-touch-icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon.png') }}">
39 <link rel="icon" type="image/png" href="{{ asset('wallassets/themes/_global/img/appicon/apple-touch-icon.png') }}">
495aecfe 40
9ff628ca 41 <link rel="shortcut icon" type="image/x-icon" href="{{ asset('wallassets/themes/_global/img/appicon/favicon.ico') }}">
495aecfe 42
10f31ac5 43 <link rel="manifest" href="{{ asset('manifest.json') }}">
35ce4d5e 44
f38e03dc
TC
45 {% block css %}
46 {% endblock %}
33e3eeae
S
47 {% if asset_file_exists('custom.css') %}
48 <link rel="stylesheet" href="{{ asset('custom.css') }}">
49 {% endif %}
495aecfe 50 {% block scripts %}
3cc78f06
NL
51 <script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
52 <script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
495aecfe
J
53 {% endblock %}
54
152fcccd 55 <title>{% block title %}{% endblock %} – wallabag</title>
495aecfe
J
56 {% endblock %}
57 </head>
58
59 <body class="{% block body_class %}{% endblock %}">
19c28314 60 {% block header %}{% endblock %}
495aecfe
J
61
62 <div id="main">
19c28314 63 {% block menu %}{% endblock %}
495aecfe 64
a6523cfe
AD
65 <main>
66 {% block precontent %}{% endblock %}
67
19c28314 68 {% block messages %}{% endblock %}
495aecfe 69
ec3ce598 70 <div id="content">
a6523cfe
AD
71 {% block content %}{% endblock %}
72 </div>
73 </main>
495aecfe
J
74 </div>
75
19c28314
JB
76 {% block footer %}{% endblock %}
77
077ddbe1
JB
78 {% if craue_setting('piwik_enabled') %}
79 {{ piwik(craue_setting('piwik_host'), craue_setting('piwik_site_id')) }}
80 {% endif %}
495aecfe
J
81 </body>
82</html>