]> git.immae.eu Git - github/wallabag/wallabag.git/blob - 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
1 <!DOCTYPE html>
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 %}>
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" />
12 <meta name="referrer" content="strict-origin-when-cross-origin">
13 <!--[if IE]>
14 <meta http-equiv="X-UA-Compatible" content="IE=10">
15 <![endif]-->
16
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">
19
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">
22
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">
25
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">
28
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">
31
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">
34
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">
37
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') }}">
40
41 <link rel="shortcut icon" type="image/x-icon" href="{{ asset('wallassets/themes/_global/img/appicon/favicon.ico') }}">
42
43 <link rel="manifest" href="{{ asset('manifest.json') }}">
44
45 {% block css %}
46 {% endblock %}
47 {% if asset_file_exists('custom.css') %}
48 <link rel="stylesheet" href="{{ asset('custom.css') }}">
49 {% endif %}
50 {% block scripts %}
51 <script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
52 <script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
53 {% endblock %}
54
55 <title>{% block title %}{% endblock %} – wallabag</title>
56 {% endblock %}
57 </head>
58
59 <body class="{% block body_class %}{% endblock %}">
60 {% block header %}{% endblock %}
61
62 <div id="main">
63 {% block menu %}{% endblock %}
64
65 <main>
66 {% block precontent %}{% endblock %}
67
68 {% block messages %}{% endblock %}
69
70 <div id="content">
71 {% block content %}{% endblock %}
72 </div>
73 </main>
74 </div>
75
76 {% block footer %}{% endblock %}
77
78 {% if craue_setting('piwik_enabled') %}
79 {{ piwik(craue_setting('piwik_host'), craue_setting('piwik_site_id')) }}
80 {% endif %}
81 </body>
82 </html>