3a5848424c358918b6e759fab43ac1382047e17c
[dylansserver.git] / view / archive.php
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
6 <title><?php echo $this->tab_title; ?></title>
7 <link rel="icon" href="/favicon.ico" type="image/png">
8 <link href='/includes/style.css' rel='stylesheet' type='text/css'>
9 <script type='text/javascript' src='/includes/syntax/scripts/shCore.js'></script>
10 <script type='text/javascript' src='/includes/syntax/scripts/shAutoloader.js'></script>
11 <link type='text/css' rel='stylesheet' href='/includes/syntax/styles/shCore.css'>
12 <link type='text/css' rel='stylesheet' href='/includes/syntax/styles/shThemeDefault.css'>
13 <script type='text/javascript'>
14 function highlight() {
15 SyntaxHighlighter.autoloader(
16 'js /includes/syntax/scripts/shBrushJScript.js',
17 'bash /includes/syntax/scripts/shBrushBash.js',
18 'sql /includes/syntax/scripts/shBrushSql.js',
19 'cpp /includes/syntax/scripts/shBrushCpp.js');
20 SyntaxHighlighter.defaults['gutter'] = false;
21 SyntaxHighlighter.defaults['toolbar'] = false;
22 SyntaxHighlighter.all();
23 }
24 </script>
25 <script type='text/javascript' src='https://www.google.com/recaptcha/api/js/recaptcha_ajax.js'></script>
26 <script type='text/javascript' src='/includes/comment.js'></script>
27 </head>
28
29 <body onload="return typeof highlight == 'function' ? highlight() : true">
30 <div id="structure">
31 <a class=title href="<?php echo $this->home_link ?>"><?php echo $this->title ?></a>
32 <div id="content">
33 <div id='notes'>
34 <?php
35 if (count($this->notes) >= 1) {
36 foreach ($this->notes as $note) {
37 echo "<div class='note'>";
38 echo "<h1><span class='date'>";
39 echo $note['year_posted'] . "/";
40 echo $note['month_posted'] . "/";
41 echo $note['day_posted'] . "/";
42 echo "</span><a href='" . $note['url'] . "'>";
43 echo $note['title'] . "</a></h1>";
44 echo $note['text'];
45 echo "</div>";
46 }
47 } else {
48 echo "<br>";
49 echo "<h1>sorry, nothing here</h2>";
50 echo "<pre>Empty set (0.00 sec)</pre>";
51 }
52 ?>
53 </div>
54 <div id="contact_me"><h1><a href=
55 "mailto:dylan@disinclined.org">dylan</a></h1><a href=
56 "mailto:dylan@disinclined.org">@disinclined.org</a>
57 </div>
58 </div>
59 <br>
60 <br>
61 </div>
62 </body>
63 </html>