summaryrefslogtreecommitdiff
path: root/src/template.php
blob: 09f29a51d2de58b7a064b568d462a36df8c22459 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php

$nav = fn(string $ln) =>
    (($params["active-link"] ?? null) === $ln) ? ' active' : '';

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta http-equiv="MSThemeCompatible" content="no" />
    <meta name="format-detection" content="telephone=no" />
    <title><?= htmlentities($params["title"] ?? "") ?></title>
    <link rel="stylesheet" href="/static/style.css" type="text/css" />
</head>
<body>
<div id="wrapper">
<table id="mainLayout" cellspacing="0">
<!--
    I know, cellspacing="0" is *not* valid XHTML in
    XHTML 1.0 Strict, but IE versions below 7 don't support
    the 'border-spacing' CSS property, so we have no other choice.
    I also don't want to use XHTML Transitional, as that would put
    IE into quirks mode, but I want to stay in standards mode.
-->
<tbody>
<tr id="logoRow">
<td id="logoCell">
    <img src="/static/blank.gif" alt="hozyro's site" width="1" height="136" />
</td>
</tr>
<tr id="navRow">
    <td id="navCell">
        <table id="navLayout" cellspacing="0">
        <tbody>
        <tr>
            <td class="navCell<?= $nav("home") ?>" style="border-left:0">
                <a href="/"><img
                    class="navIcon"
                    alt=""
                    width="16"
                    height="16"
                    src="/static/icons/home.gif"
                />&nbsp;Home page</a>
            </td>
            <td class="navCell<?= $nav("about") ?>">
                <a href="/about"><img
                    class="navIcon"
                    alt=""
                    width="16"
                    height="16"
                    src="/static/icons/about.gif"
                />&nbsp;About me</a>
            </td>
            <td class="navCell<?= $nav("guestbook") ?>">
                <a href="/guestbook"><img
                    class="navIcon"
                    alt=""
                    width="16"
                    height="16"
                    src="/static/icons/guestbook.gif"
                />&nbsp;Guestbook</a>
            </td>
            <td class="navCell">
                <a href="https://jonaskohl.de/"><img
                    class="navIcon"
                    alt=""
                    width="16"
                    height="16"
                    src="/static/icons/website.gif"
                />&nbsp;My actual website</a>
            </td>
            <td class="navCell"
                style="border-right:0"></td>
        </tr>
        </tbody>
        </table>
    </td>
</tr>
<tr id="mainRow">
    <td id="mainCell">
        <?php include $page ?>
    </td>
</tr>
<tr id="footerRow">
    <td id="footerCell">
        &copy; <?= date("Y") ?>. This website is
        <a href="https://git.jkohl.link/neocities-site.git">open-source</a>.
        <!-- 88x31 buttons!!! -->
<?php include SRCDIR . "/includes/buttons.php"; ?>
    </td>
</tr>
</tbody>
</table>
</div>
</body>
</html>