s/dylansserver/disinclined/g, should really be parametized
[dylansserver.git] / view / page.php
index 2829668..92ad171 100644 (file)
@@ -1,9 +1,9 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
-"http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html>
 
 <html>
 <head>
-  <title><?php echo $this->title; ?></title>
+  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+  <title><?php echo $this->tab_title; ?></title>
   <link rel="icon" href="/favicon.ico" type="image/png">
   <link href='/includes/style.css' rel='stylesheet' type='text/css'>
   <script type='text/javascript' src='/includes/syntax/scripts/shCore.js'></script>
       SyntaxHighlighter.all();
     }
   </script>
-  <script type='text/javascript' src='http://www.google.com/recaptcha/api/js/recaptcha_ajax.js'></script>
+  <script type='text/javascript' src='https://www.google.com/recaptcha/api/js/recaptcha_ajax.js'></script>
   <script type='text/javascript' src='/includes/comment.js'></script>
 </head>
 
 <body onload="return typeof highlight == 'function' ? highlight() : true">
   <div id="structure">
-    <div id="banner">
-      <a href="<?php echo $this->home_link ?>">
-      <img src="/images/dylansserver.png" alt="dylansserver"
-      border="0"></a>
-    </div>
-
+    <a class=title href="<?php echo $this->home_link ?>"><?php echo $this->title ?></a>
     <div id="content">
-      <div id='notes'>
-        <?php $this->display_notes() ?>
+      <div id="notes">
+        <?php
+          foreach ($this->notes as $note) {
+            echo "<div class='note'>";
+            echo "<h1>";
+            echo "<span class='date'>";
+            echo $note['year_posted'] . "/";
+            echo $note['month_posted'] . "/";
+            echo $note['day_posted'] . "/";
+            echo "</span>";
+            echo "<a href='" . $note['url'] . "'>";
+            echo $note['title'];
+            echo "</a>";
+            echo "</h1>";
+            echo $note['text'];
+            echo "</div>";
+          }
+        ?>
+      </div>
     <div id='navigation'>
     <h1>
     <?php
@@ -51,8 +63,8 @@
     </h1>
     </div>
       <div id="contact_me"><h1><a href=
-      "mailto:dylan@psu.edu">dylan</a></h1><a href=
-      "mailto:dylan@psu.edu">@psu.edu</a>
+      "mailto:dylan@disinclined.org">dylan</a></h1><a href=
+      "mailto:dylan@disinclined.org">@disinclined.org</a>
       </div>
     </div>
     <br>