all page types now served with model/view
[dylansserver.git] / view / page.php
index 8bba8ac..2829668 100644 (file)
@@ -3,7 +3,7 @@
 
 <html>
 <head>
-  <title><?php echo $page->title; ?></title>
+  <title><?php echo $this->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>
 <body onload="return typeof highlight == 'function' ? highlight() : true">
   <div id="structure">
     <div id="banner">
-      <a href="<?php echo $page->home_link ?>">
+      <a href="<?php echo $this->home_link ?>">
       <img src="/images/dylansserver.png" alt="dylansserver"
       border="0"></a>
     </div>
 
     <div id="content">
       <div id='notes'>
-        <?php $page->display_notes() ?>
+        <?php $this->display_notes() ?>
     <div id='navigation'>
     <h1>
     <?php
-    if($page->page > 1){
-      $previous_page = $page->page - 1;
+    if($this->page > 1){
+      $previous_page = $this->page - 1;
       echo "<a href='/notes/page/$previous_page'>prev</a>";
     }
-    if($page->page < $page->number_of_pages) {
-    $forward_page = $page->page + 1;
+    if($this->page < $this->number_of_pages) {
+    $forward_page = $this->page + 1;
     echo " <a href='/notes/page/$forward_page'>next</a>";
     } ?>
     </h1>