Merge remote-tracking branch 'upstream/master'
[quix0rs-gnu-social.git] / lib / inlineattachmentlist.php
index a8f383c3fe80b2a5e0191d4e57238dc14abfd545..40ec114ad82eb024862d5acf08f13dd5c8161521 100644 (file)
  * @link      http://status.net/
  */
 
-if (!defined('STATUSNET')) {
-    exit(1);
-}
+if (!defined('GNUSOCIAL')) { exit(1); }
 
 class InlineAttachmentList extends AttachmentList
 {
     function showListStart()
     {
+        $this->out->element('h3', 'attachments-title', _('Attachments'));
         parent::showListStart();
     }
 
@@ -50,34 +49,3 @@ class InlineAttachmentList extends AttachmentList
         return new InlineAttachmentListItem($attachment, $this->out);
     }
 }
-
-class InlineAttachmentListItem extends AttachmentListItem
-{
-    function showLink() {
-        $this->showRepresentation();
-    }
-
-    /**
-     * start a single notice.
-     *
-     * @return void
-     */
-    function showStart()
-    {
-        // XXX: RDFa
-        // TODO: add notice_type class e.g., notice_video, notice_image
-        $this->out->elementStart('li', array('class' => 'inline-attachment'));
-    }
-
-    /**
-     * finish the notice
-     *
-     * Close the last elements in the notice list item
-     *
-     * @return void
-     */
-    function showEnd()
-    {
-        $this->out->elementEnd('li');
-    }
-}