Add a quick config setting to disable/enable display of thumbnails in regular notice lists (attachments/show_thumbs) - disabling gives the same display as before this feature was added (but changes to oembed handling are still there, and the lightbox popup is gone)
This commit is contained in:
parent
cda59dc177
commit
cb124fe831
@ -250,6 +250,7 @@ $default =
|
|||||||
'monthly_quota' => 15000000,
|
'monthly_quota' => 15000000,
|
||||||
'uploads' => true,
|
'uploads' => true,
|
||||||
'filecommand' => '/usr/bin/file',
|
'filecommand' => '/usr/bin/file',
|
||||||
|
'show_thumbs' => true, // show thumbnails in notice lists for uploaded images, and photos and videos linked remotely that provide oEmbed info
|
||||||
'thumb_width' => 100,
|
'thumb_width' => 100,
|
||||||
'thumb_height' => 75,
|
'thumb_height' => 75,
|
||||||
),
|
),
|
||||||
|
@ -385,9 +385,11 @@ class NoticeListItem extends Widget
|
|||||||
}
|
}
|
||||||
|
|
||||||
function showNoticeAttachments() {
|
function showNoticeAttachments() {
|
||||||
|
if (common_config('attachments', 'show_thumbs')) {
|
||||||
$al = new InlineAttachmentList($this->notice, $this->out);
|
$al = new InlineAttachmentList($this->notice, $this->out);
|
||||||
$al->show();
|
$al->show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* show the link to the main page for the notice
|
* show the link to the main page for the notice
|
||||||
|
Loading…
Reference in New Issue
Block a user