forked from quran/quran.com-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview.tt2
36 lines (35 loc) · 2 KB
/
view.tt2
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
34
35
36
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Sura [% sura %], Page [% current %]</title>
<style type="text/css">
* { margin: 0; padding: 0; }
html { font-size: [% width / 100 %]px; font-family: sans-serif; }
html, body, div, ul { display: block; width: [% width %]px; margin: 0 auto; }
ul, li { float: left; list-style-type: none; }
li { width: 50%; padding: 0; margin: 0; text-decoration: none; color: black; font-size: [% width / 10 %]px; }
li > a { text-decoration: none; color: black; }
li > a:hover { text-decoration: none; color: #3399CC; }
ul > li:last-child { text-align: right; }
p.clear { clear: both; margin: 1px; padding: 1px; }
div.image { text-align: center; }
/*
div.image { position: relative; top: -[% width / 10%]px; text-align: center; }
div.nav { z-index: -1; position: relative; }
div.nav.top { top: 0; }
div.nav.bottom { bottom: [% (width / 100) + (width / 10) * 2 %]px; }
li.left { position: relative; left: -[% width / 20 %]px; }
li.right { position: relative; right: -[% width / 20 %]px; }
*/
</style>
</head>
<body>
<div class="nav top"><ul><li class="left">[% IF next %]<a href="/page/[% next %]/width/[% width %]">[% END %]«[% IF next %]</a>[% END %]</li><li class="right">[% IF previous %]<a href="/page/[% previous %]/width/[% width %]">[% END %]»[% IF previous %]</a>[% END %]</li></ul></div>
<div class="image"><img src="/output/width_[% width %]/[% current %].png"/></div>
<div class="nav bottom"><ul><li class="left">[% IF next %]<a href="/page/[% next %]/width/[% width %]">[% END %]«[% IF next %]</a>[% END %]</li><li class="right">[% IF previous %]<a href="/page/[% previous %]/width/[% width %]">[% END %]»[% IF previous %]</a>[% END %]</li></ul></div>
<p class="clear"/>
</body>
</html>