update doctype, pgp key url, add piwik analytics
[dylansserver.git] / view / page.php
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <title><?php echo $this->title; ?></title>
6 <link rel="icon" href="/favicon.ico" type="image/png">
7 <link href='/includes/style.css' rel='stylesheet' type='text/css'>
8 <script type='text/javascript' src='/includes/syntax/scripts/shCore.js'></script>
9 <script type='text/javascript' src='/includes/syntax/scripts/shAutoloader.js'></script>
10 <link type='text/css' rel='stylesheet' href='/includes/syntax/styles/shCore.css'>
11 <link type='text/css' rel='stylesheet' href='/includes/syntax/styles/shThemeDefault.css'>
12 <script type='text/javascript'>
13 function highlight() {
14 SyntaxHighlighter.autoloader(
15 'js /includes/syntax/scripts/shBrushJScript.js',
16 'bash /includes/syntax/scripts/shBrushBash.js',
17 'sql /includes/syntax/scripts/shBrushSql.js',
18 'cpp /includes/syntax/scripts/shBrushCpp.js');
19 SyntaxHighlighter.defaults['gutter'] = false;
20 SyntaxHighlighter.defaults['toolbar'] = false;
21 SyntaxHighlighter.all();
22 }
23 </script>
24 <script type='text/javascript' src='https://www.google.com/recaptcha/api/js/recaptcha_ajax.js'></script>
25 <script type='text/javascript' src='/includes/comment.js'></script>
26 <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
27 </head>
28
29 <body onload="return typeof highlight == 'function' ? highlight() : true">
30 <div id="structure">
31 <div id="banner">
32 <a href="<?php echo $this->home_link ?>">
33 <img src="/images/dylansserver.png" alt="dylansserver"></a>
34 </div>
35
36 <div id="content">
37 <div id="notes">
38 <?php
39 foreach ($this->notes as $note) {
40 echo "<div class='note'>";
41 echo "<h1>";
42 echo "<span class='date'>";
43 echo $note['year_posted'] . "/";
44 echo $note['month_posted'] . "/";
45 echo $note['day_posted'] . "/";
46 echo "</span>";
47 echo "<a href='" . $note['url'] . "'>";
48 echo $note['title'];
49 echo "</a>";
50 echo "</h1>";
51 echo $note['text'];
52 echo "</div>";
53 }
54 ?>
55 </div>
56 <div id='navigation'>
57 <h1>
58 <?php
59 if($this->page > 1){
60 $previous_page = $this->page - 1;
61 echo "<a href='/notes/page/$previous_page'>prev</a>";
62 }
63 if($this->page < $this->number_of_pages) {
64 $forward_page = $this->page + 1;
65 echo " <a href='/notes/page/$forward_page'>next</a>";
66 } ?>
67 </h1>
68 </div>
69 <div id="contact_me"><h1><a href=
70 "mailto:dylan@dylansserver.com">dylan</a></h1><a href=
71 "mailto:dylan@dylansserver.com">@dylansserver.com</a>
72 </div>
73 </div>
74 <br>
75 <br>
76 </div>
77 <? include 'analytics.php' ?>
78 </body>
79 </html>