summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-12-16 23:08:52 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-12-16 23:08:52 +1100
commit627c6ac91a338cfbd9fcc618b28dd678902da8f7 (patch)
tree8fe18f675ad3ad005ec4f762c4ed26bbbbc2bfbe /inc/display.php
parentb0bee3556f7932949a929c0077c454314d5dbb42 (diff)
Stickies
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/inc/display.php b/inc/display.php
index a485f906..8cf4a18e 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -180,7 +180,7 @@
class Thread {
public $omitted = 0;
- public function __construct($id, $subject, $email, $name, $trip, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename, $ip, $root=ROOT) {
+ public function __construct($id, $subject, $email, $name, $trip, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename, $ip, $sticky, $root=ROOT) {
$this->id = $id;
$this->subject = utf8tohtml($subject);
$this->email = $email;
@@ -199,13 +199,13 @@
$this->omitted = 0;
$this->posts = Array();
$this->ip = $ip;
+ $this->sticky = $sticky;
$this->root = $root;
}
public function add(Post $post) {
$this->posts[] = $post;
}
-
public function build($index=false) {
global $board, $mod;
@@ -255,8 +255,11 @@
' href="' . $this->root . $board['dir'] . DIR_RES . $this->id . '.html' . '#' . $this->id . '">No.</a>' .
// JavaScript cite
'<a class="post_no"' . ($index?'':'onclick="citeReply(' . $this->id . ');"') . 'href="' . ($index?$this->root . $board['dir'] . DIR_RES . $this->id . '.html' . '#q' . $this->id:'javascript:void(0);') . '">'.$this->id.'</a>' .
+ // Sticky
+ ($this->sticky ? '<img class="icon" title="Sticky" src="' . IMAGE_STICKY . '" />' : '') .
// [Reply]
($index ? '<a href="' . $this->root . $board['dir'] . DIR_RES . $this->id . '.html">[Reply]</a>' : '') .
+
// Mod controls
postControls($this->id, true) .
'</p>';