diff --git a/inc/display.php b/inc/display.php index 5cf657ec..b988e3bc 100644 --- a/inc/display.php +++ b/inc/display.php @@ -118,29 +118,64 @@ public function build($index=false) { - $built = '
- File: '.basename($this->file).' ('.format_bytes($this->filesize).', '.$this->filex.'x'.$this->filey.', '.$this->filename.') -
- -- - '.$this->subject.' - - ' . ( !empty($this->email) ? '':'') . - '' - . $this->name . - '' . (!empty($this->trip) ? ' '.$this->trip.'':'') - . ( !empty($this->email) ? '':'') - . ' ' . date('m/d/y (D) H:i:s', $this->time). ' - No.id . ');"') . 'href="' . ($index?ROOT . DIR_RES . $this->id . '.html' . '#q' . $this->id:'javascript:void(0);') . '">'.$this->id.'' . ($index ? '[Reply]' : '') . - '
' - .$this->body.' - ' . ($this->omitted ? '' . $this->omitted . ' post' . ($this->omitted==1?'':'s') . ' omitted. Click reply to view.':'') . ' -File: ' . basename($this->file) . ' (' . + // Filesize + format_bytes($this->filesize) . ', ' . + // File dimensions + $this->filex . 'x' . $this->filey; + // Aspect Ratio + if(SHOW_RATIO) { + $fraction = fraction($this->filex, $this->filey, ':'); + $built .= ', ' . $fraction; + } + // Filename + $built .= ', ' . $this->filename . ')
' . + // Thumbnail + ''; + + $built .= ''; + + // Subject + $built .= '' . $this->subject . ''; + // Email + if(!empty($this->email)) + $built .= ''; + // Name + $built .= '' . $this->name . '' + // Trip + . (!empty($this->trip) ? ' '.$this->trip.'':''); + + // End email + if(!empty($this->email)) + $built .= ''; + + // Date/time + $built .= ' ' . date('m/d/y (D) H:i:s', $this->time); + + $built .= ' No.' . + // JavaScript cite + 'id . ');"') . 'href="' . ($index?ROOT . DIR_RES . $this->id . '.html' . '#q' . $this->id:'javascript:void(0);') . '">'.$this->id.'' . + // [Reply] + ($index ? '[Reply]' : '') . + '
'; + + // Body + $built .= $this->body . + + // Omitted posts + ($this->omitted ? '' . $this->omitted . ' post' . ($this->omitted==1?'':'s') . ' omitted. Click reply to view.':'') . + + // End + '