]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/inlineattachmentlist.php
More Favorite pluginification (favecount, cache, menus(favecount, cache, menus))
[quix0rs-gnu-social.git] / lib / inlineattachmentlist.php
index de5008e87babb796e2ebd8d92b6066e453de901f..04fddf3b304b3d35c6b74cf010bda124fca53df1 100644 (file)
@@ -35,7 +35,7 @@ class InlineAttachmentList extends AttachmentList
 {
     function showListStart()
     {
-        $this->out->elementStart('div', array('class' => 'entry-content thumbnails'));
+        $this->out->elementStart('div', array('class' => 'attachments'));
     }
 
     function showListEnd()
@@ -50,7 +50,7 @@ class InlineAttachmentList extends AttachmentList
      *
      * @return ListItem a list item for displaying the attachment
      */
-    function newListItem($attachment)
+    function newListItem(File $attachment)
     {
         return new InlineAttachmentListItem($attachment, $this->out);
     }
@@ -58,13 +58,6 @@ class InlineAttachmentList extends AttachmentList
 
 class InlineAttachmentListItem extends AttachmentListItem
 {
-    function show()
-    {
-        if ($this->attachment->isEnclosure()) {
-            parent::show();
-        }
-    }
-
     function showLink() {
         $this->out->elementStart('a', $this->linkAttr());
         $this->showRepresentation();