From: Brion Vibber Date: Wed, 10 Nov 2010 22:31:55 +0000 (-0800) Subject: CSS class tweak for inline attachment thumbnails to avoid things thinking they're... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=46223da59433e602343169a948bc895977ea253f;p=quix0rs-gnu-social.git CSS class tweak for inline attachment thumbnails to avoid things thinking they're content links --- diff --git a/lib/inlineattachmentlist.php b/lib/inlineattachmentlist.php index 8b1a1cd9bb..de5008e87b 100644 --- a/lib/inlineattachmentlist.php +++ b/lib/inlineattachmentlist.php @@ -71,6 +71,17 @@ class InlineAttachmentListItem extends AttachmentListItem $this->out->elementEnd('a'); } + /** + * Build HTML attributes for the link + * @return array + */ + function linkAttr() + { + $attr = parent::linkAttr(); + $attr['class'] = 'attachment-thumbnail'; + return $attr; + } + /** * start a single notice. *