From 0bad03d3a206df230b559112fc78d7417fa26736 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 1 Oct 2011 21:43:23 +1000 Subject: Disable inline-expanding for non-images --- inc/display.php | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) (limited to 'inc') diff --git a/inc/display.php b/inc/display.php index b63fbbf1..620e0b56 100644 --- a/inc/display.php +++ b/inc/display.php @@ -336,7 +336,9 @@ $this->embed; } elseif(!empty($this->file) && $this->file != 'deleted') { // File info - $built .= '

File: ' . $this->file . ' (' . + $built .= '

' . + 'File: ' . $this->file . ' ' . + '(' . // Filesize format_bytes($this->filesize) . // File dimensions @@ -355,7 +357,17 @@ $built .= ')

' . // Thumbnail - ''; + 'thumb == 'file' ? ' class="file"' : '') . + '>'; } elseif($this->file == 'deleted') { $built .= ''; } @@ -482,10 +494,10 @@ // Actual embedding $this->embed; } elseif(!empty($this->file) && $this->file != 'deleted') { - // Image, not embedded shit - $built = - // File link - '

File: ' . $this->file . ' (' . + // File info + $built = '

' . + 'File: ' . $this->file . ' ' . + '(' . // Filesize format_bytes($this->filesize) . // File dimensions @@ -504,7 +516,17 @@ $built .= ')

' . // Thumbnail - ''; + 'thumb == 'file' ? ' class="file"' : '') . + '>'; } elseif($this->file == 'deleted') { $built = ''; } -- cgit v1.3