diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-03 08:25:11 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-03 08:25:11 +0200 |
commit | 8cbb2a88024969f7efd90f8053f3b0805fa2f8fa (patch) | |
tree | 0bb5c7fb3adc752d9ea9a933b524bd08631ca11a /tpl/layout.twig | |
parent | c67e13e04baab64bcc63fd0dca46125513250c44 (diff) | |
download | wallabag-8cbb2a88024969f7efd90f8053f3b0805fa2f8fa.tar.gz wallabag-8cbb2a88024969f7efd90f8053f3b0805fa2f8fa.tar.zst wallabag-8cbb2a88024969f7efd90f8053f3b0805fa2f8fa.zip |
twig implementation
Diffstat (limited to 'tpl/layout.twig')
-rw-r--r-- | tpl/layout.twig | 42 |
1 files changed, 5 insertions, 37 deletions
diff --git a/tpl/layout.twig b/tpl/layout.twig index c5f52bbd..9dc83efe 100644 --- a/tpl/layout.twig +++ b/tpl/layout.twig | |||
@@ -9,50 +9,18 @@ | |||
9 | <meta charset="utf-8"> | 9 | <meta charset="utf-8"> |
10 | <meta http-equiv="X-UA-Compatible" content="IE=10"> | 10 | <meta http-equiv="X-UA-Compatible" content="IE=10"> |
11 | <title>{% block title %}{% endblock %} - poche</title> | 11 | <title>{% block title %}{% endblock %} - poche</title> |
12 | <link rel="shortcut icon" type="image/x-icon" href="./img/favicon.ico" /> | 12 | {% include '_head.twig' %} |
13 | <link rel="apple-touch-icon-precomposed" sizes="144x144" href="./img/apple-touch-icon-144x144-precomposed.png"> | 13 | {% include '_bookmarklet.twig' %} |
14 | <link rel="apple-touch-icon-precomposed" sizes="72x72" href="./img/apple-touch-icon-72x72-precomposed.png"> | ||
15 | <link rel="apple-touch-icon-precomposed" href="./img/apple-touch-icon-precomposed.png"> | ||
16 | <link rel="stylesheet" href="./css/knacss.css" media="all"> | ||
17 | <link rel="stylesheet" href="./css/style.css" media="all"> | ||
18 | <!-- Light Theme --> | ||
19 | <link rel="stylesheet" href="./css/style-light.css" media="all" title="light-style"> | ||
20 | <!-- Dark Theme --> | ||
21 | <link rel="alternate stylesheet" href="./css/style-dark.css" media="all" title="dark-style"> | ||
22 | <script> | ||
23 | top["bookmarklet-url@inthepoche.com"] = '' | ||
24 | +'<!DOCTYPE html>' | ||
25 | +'<html>' | ||
26 | +'<head>' | ||
27 | +'<title>poche it !</title>' | ||
28 | +'<link rel="icon" href="{$poche_url}img/favicon.ico" />' | ||
29 | +'</head>' | ||
30 | +'<body>' | ||
31 | +'<script>' | ||
32 | +'window.onload=function(){' | ||
33 | +'window.setTimeout(function(){' | ||
34 | +'history.back();' | ||
35 | +'},250);' | ||
36 | +'};' | ||
37 | +'</scr'+'ipt>' | ||
38 | +'</body>' | ||
39 | +'</html>' | ||
40 | ; | ||
41 | </script> | ||
42 | </head> | 14 | </head> |
43 | <body class="light-style"> | 15 | <body class="light-style"> |
44 | <header> | 16 | {% include '_top.twig' %} |
45 | <h1><a href="/"><img src="./img/logo.png" alt="logo poche" /></a>poche</h1> | ||
46 | </header> | ||
47 | <div id="main"> | 17 | <div id="main"> |
48 | {% block menu %}{% endblock %} | 18 | {% block menu %}{% endblock %} |
49 | {% block precontent %}{% endblock %} | 19 | {% block precontent %}{% endblock %} |
20 | {% block messages %}{% endblock %} | ||
50 | {% block content %}{% endblock %} | 21 | {% block content %}{% endblock %} |
51 | {% block js %}{% endblock %} | 22 | {% block js %}{% endblock %} |
52 | </div> | 23 | </div> |
53 | <footer class="mr2 mt3 smaller"> | 24 | {% include '_footer.twig' %} |
54 | <p>powered by <a href="http://inthepoche.com">poche</a></p> | ||
55 | </footer> | ||
56 | |||
57 | </body> | 25 | </body> |
58 | </html> \ No newline at end of file | 26 | </html> \ No newline at end of file |