diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-05 16:45:34 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-05 16:45:34 +1100 |
| commit | d7f32670c52ce8308d3d1966cf702ab63d795162 (patch) | |
| tree | b0fc3818d96fb0c9212fb8ec4485263e2a7d6adf /inc/display.php | |
| parent | 5a17cfd886dd5457006d373d2b4746061556ac12 (diff) | |
non-image file icons
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/inc/display.php b/inc/display.php index 0248a3b4..fc15c152 100644 --- a/inc/display.php +++ b/inc/display.php @@ -365,7 +365,10 @@ ); } + $ext = explode('.', $this->file); + $ext = $ext[1]; $built .= ')</span></p>' . + // Thumbnail '<a href="' . $config['uri_img'] .$this->file . @@ -373,7 +376,7 @@ ($this->thumb == 'file' ? ' class="file"' : '') . '><img src="' . ($this->thumb == 'file' ? - $config['root'] . $config['file_thumb'] + $config['root'] . sprintf($config['file_thumb'], isset($config['file_icons'][$ext]) ? $config['file_icons'][$ext] : $config['file_icons']['default']) : ($this->thumb == 'spoiler' ? $config['root'] . $config['spoiler_image'] @@ -538,7 +541,10 @@ ); } + $ext = explode('.', $this->file); + $ext = $ext[1]; $built .= ')</span></p>' . + // Thumbnail '<a href="' . $config['uri_img'] .$this->file . @@ -546,7 +552,7 @@ ($this->thumb == 'file' ? ' class="file"' : '') . '><img src="' . ($this->thumb == 'file' ? - $config['root'] . $config['file_thumb'] + $config['root'] . sprintf($config['file_thumb'], isset($config['file_icons'][$ext]) ? $config['file_icons'][$ext] : $config['file_icons']['default']) : ($this->thumb == 'spoiler' ? $config['root'] . $config['spoiler_image'] |
