X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=cms.php;h=845eda95f7e925746944bdbcafcb5c2adb1dca96;hb=853193f66b966ff0bd8c13cc94ee3457d3543d1f;hp=caa22a11a318d990717318d3804bdd49f1bcb3fe;hpb=16f255160412aa91e0de89ecb6724daf3ebcaca8;p=dylansserver.git diff --git a/cms.php b/cms.php index caa22a1..845eda9 100644 --- a/cms.php +++ b/cms.php @@ -320,7 +320,10 @@ class page extends cms { } public function display() { - $this->display_head(); + require_once("view/page.php"); + } + + public function display_notes() { echo "
"; $sql = "SELECT date_posted, title, url, text FROM notes ORDER BY date_posted DESC @@ -347,25 +350,7 @@ class page extends cms { END_NOTE; } echo "
"; - $this->write_navigation(); - $this->display_close(); - } - - private function write_navigation() { - echo ""; } - } @@ -598,7 +583,10 @@ class archive extends cms { } public function display() { - $this->display_head(); + require_once("view/archive.php"); + } + + public function display_notes() { switch (true) { case (isset($_GET['year']) && !isset($_GET['month']) && !isset($_GET['day'])): @@ -647,20 +635,11 @@ class archive extends cms { echo ""; } echo ""; - $this->write_navigation(); } else { echo "
"; echo "

sorry, nothing here

"; echo "
Empty set (0.00 sec)
"; } - $this->display_close(); - } - - private function write_navigation() { - echo "
"; - echo ""; } }