make displaying original filename optional
This commit is contained in:
parent
0f0660eb61
commit
ef2e7c616b
@ -246,6 +246,8 @@
|
|||||||
|
|
||||||
// Display the aspect ratio in a post's file info
|
// Display the aspect ratio in a post's file info
|
||||||
$config['show_ratio'] = false;
|
$config['show_ratio'] = false;
|
||||||
|
// Display the file's original filename
|
||||||
|
$config['show_filename']= true;
|
||||||
|
|
||||||
// Directory where temporary files will be created. Not really used much yet except for some experimental stuff.
|
// Directory where temporary files will be created. Not really used much yet except for some experimental stuff.
|
||||||
$config['tmp'] = '/tmp';
|
$config['tmp'] = '/tmp';
|
||||||
|
@ -351,9 +351,12 @@
|
|||||||
$fraction = fraction($this->filex, $this->filey, ':');
|
$fraction = fraction($this->filex, $this->filey, ':');
|
||||||
$built .= ', ' . $fraction;
|
$built .= ', ' . $fraction;
|
||||||
}
|
}
|
||||||
// Filename
|
if($config['show_filename']) {
|
||||||
$built .= ', ' . $this->filename . ')</span></p>' .
|
// Filename
|
||||||
|
$built .= ', ' . $this->filename;
|
||||||
|
}
|
||||||
|
|
||||||
|
$built .= ')</span></p>' .
|
||||||
// Thumbnail
|
// Thumbnail
|
||||||
'<a href="' . $config['uri_img'] . $this->file.'"><img src="' . $config['uri_thumb'] . $this->thumb.'" style="width:'.$this->thumbx.'px;height:'.$this->thumby.'px;" alt="" /></a>';
|
'<a href="' . $config['uri_img'] . $this->file.'"><img src="' . $config['uri_thumb'] . $this->thumb.'" style="width:'.$this->thumbx.'px;height:'.$this->thumby.'px;" alt="" /></a>';
|
||||||
} elseif($this->file == 'deleted') {
|
} elseif($this->file == 'deleted') {
|
||||||
@ -498,8 +501,12 @@
|
|||||||
$fraction = fraction($this->filex, $this->filey, ':');
|
$fraction = fraction($this->filex, $this->filey, ':');
|
||||||
$built .= ', ' . $fraction;
|
$built .= ', ' . $fraction;
|
||||||
}
|
}
|
||||||
// Filename
|
if($config['show_filename']) {
|
||||||
$built .= ', ' . $this->filename . ')</span></p>' .
|
// Filename
|
||||||
|
$built .= ', ' . $this->filename;
|
||||||
|
}
|
||||||
|
|
||||||
|
$built .= ')</span></p>' .
|
||||||
// Thumbnail
|
// Thumbnail
|
||||||
'<a href="' . $config['uri_img'] . $this->file.'"><img src="' . $config['uri_thumb'] . $this->thumb.'" style="width:'.$this->thumbx.'px;height:'.$this->thumby.'px;" alt="" /></a>';
|
'<a href="' . $config['uri_img'] . $this->file.'"><img src="' . $config['uri_thumb'] . $this->thumb.'" style="width:'.$this->thumbx.'px;height:'.$this->thumby.'px;" alt="" /></a>';
|
||||||
} elseif($this->file == 'deleted') {
|
} elseif($this->file == 'deleted') {
|
||||||
@ -585,4 +592,4 @@
|
|||||||
return $built;
|
return $built;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user