]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/inlineattachmentlist.php
.inc.php please ...
[quix0rs-gnu-social.git] / lib / inlineattachmentlist.php
index b68701fb31266f570ead2a3d69603d8cba9baf32..3eed70a3165e1690026bb5c55c31fdc3a97c3c2d 100644 (file)
@@ -35,12 +35,8 @@ class InlineAttachmentList extends AttachmentList
 {
     function showListStart()
     {
-        $this->out->elementStart('div', array('class' => 'attachments'));
-    }
-
-    function showListEnd()
-    {
-        $this->out->elementEnd('div');
+        $this->out->element('h3', 'attachments-title', _('Attachments'));
+        parent::showListStart();
     }
 
     /**
@@ -59,7 +55,6 @@ class InlineAttachmentList extends AttachmentList
 class InlineAttachmentListItem extends AttachmentListItem
 {
     function showLink() {
-        $this->out->element('a', $this->linkAttr(), $this->title());
         $this->showRepresentation();
     }
 
@@ -72,7 +67,7 @@ class InlineAttachmentListItem extends AttachmentListItem
     {
         // XXX: RDFa
         // TODO: add notice_type class e.g., notice_video, notice_image
-        $this->out->elementStart('span', array('class' => 'inline-attachment'));
+        $this->out->elementStart('li', array('class' => 'inline-attachment'));
     }
 
     /**
@@ -84,6 +79,6 @@ class InlineAttachmentListItem extends AttachmentListItem
      */
     function showEnd()
     {
-        $this->out->elementEnd('span');
+        $this->out->elementEnd('li');
     }
 }