s/dylansserver/disinclined/g, should really be parametized
[dylansserver.git] / view / note.php
index 8053918..6247cc0 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->site_title ?></a>
     <div id="content">
       <div id='notes'>
         <div class='note'>
             <h1><span class='date'>
-              <?php echo "$this->year_posted/$this->month_posted/$this->day_posted/" ?>
-            </span><?php echo $this->title ?></h1>
+              <?php echo "$this->year_posted/$this->month_posted/$this->day_posted/" ?></span><?php echo $this->title ?></h1>
             <?php echo $this->text ?>
         </div>
-      <div id="contact_me"><h1><a href=
-      "mailto:dylan@psu.edu">dylan</a></h1><a href=
-      "mailto:dylan@psu.edu">@psu.edu</a>
+        <br><br><br><br>
+        <div id='navigation'>
+          <?php if ($this->comments_enabled) {
+            $this->display_comments();
+            $this->display_comment_form();
+          } ?>
+          <h1>
+          <?php if (!$this->comments_enabled) $this->display_comment_link(); ?>
+          <a href="/notes/">back to notes/</a>
+          </h1>
+        </div>
+        <div id="contact_me"><h1><a href=
+        "mailto:dylan@disinclined.org">dylan</a></h1><a href=
+        "mailto:dylan@disinclined.org">@disinclined.org</a>
+        </div>
       </div>
-    </div>
     <br>
     <br>
   </div>