From 53dce652a863d819760fe4f878ccbb59c9c1a551 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 4 Oct 2011 02:46:39 +1100 Subject: image spoilers --- inc/display.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'inc/display.php') diff --git a/inc/display.php b/inc/display.php index 88c52a38..5c698da0 100644 --- a/inc/display.php +++ b/inc/display.php @@ -339,6 +339,9 @@ $built .= '

' . 'File: ' . $this->file . ' ' . '(' . + ($this->thumb == 'spoiler' ? + 'Spoiler Image, ' + : '') . // Filesize format_bytes($this->filesize) . // File dimensions @@ -372,7 +375,11 @@ ($this->thumb == 'file' ? $config['file_thumb'] : - $config['uri_thumb'] . $this->thumb + ($this->thumb == 'spoiler' ? + $config['spoiler_image'] + : + $config['uri_thumb'] . $this->thumb + ) ) . '" style="width:' . $this->thumbx . 'px;height:' . $this->thumby . 'px;" alt="" />'; } elseif($this->file == 'deleted') { @@ -505,6 +512,9 @@ $built = '

' . 'File: ' . $this->file . ' ' . '(' . + ($this->thumb == 'spoiler' ? + 'Spoiler Image, ' + : '') . // Filesize format_bytes($this->filesize) . // File dimensions @@ -538,7 +548,11 @@ ($this->thumb == 'file' ? $config['file_thumb'] : - $config['uri_thumb'] . $this->thumb + ($this->thumb == 'spoiler' ? + $config['spoiler_image'] + : + $config['uri_thumb'] . $this->thumb + ) ) . '" style="width:' . $this->thumbx . 'px;height:' . $this->thumby . 'px;" alt="" />'; } elseif($this->file == 'deleted') { -- cgit v1.3