";
- echo "
$year_posted/$month_posted/$day_posted/$title
";
- if (!$this->comments_enabled) {
- $this->display_comment_link();
- }
- echo $entry['text'];
+ echo "
$this->year_posted/$this->month_posted/$this->day_posted/$this->title
";
+ echo $this->text;
}
private function write_navigation() {
- echo "
";
- echo "
";
- echo "
";
- echo "notes/";
- echo "
";
- echo "
";
+ echo <<
+
+
+END_OF_NAVIGATION;
+ if (!$this->comments_enabled) {
+ $this->display_comment_link();
+ }
+ echo <<notes/
+
+
+END_OF_NAVIGATION;
}
private function display_comment_link() {
- $url = $this->url . 'comments/';
- echo "";
+ if ($this->number_of_comments > 0) {
+ $anchor_text = "comments ($this->number_of_comments)";
+ } else {
+ $anchor_text = "comment?";
+ }
+ if (substr($this->url, (strlen($this->url)-1), strlen($this->url)) == '/') {
+ $url = $this->url . 'comments/';
+ } else {
+ $url = $this->url . '/comments/';
+ }
+ echo "";
}
private function display_comments() {
echo "";
}
private function display_comment_form() {
- // Trailing slash is necessary for reloads to work
- $url = $this->url . "verify/";
- echo "";
+ $url = $this->url . "verify";
+ echo "
+
+END_OF_FORM;
+ } else {
+ echo <<