X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Finlineattachmentlist.php;h=8b055a9cfc3244e737c4f2dbbbcf768b3d1b2fdf;hb=586fb5a5175d7a10f5f78dd026434e48202e5451;hp=d760400487605ddc92f42fccac005e61b3d9b0b4;hpb=3d019f91492396f4d27858a80894af74c34bb5b9;p=quix0rs-gnu-social.git diff --git a/lib/inlineattachmentlist.php b/lib/inlineattachmentlist.php index d760400487..8b055a9cfc 100644 --- a/lib/inlineattachmentlist.php +++ b/lib/inlineattachmentlist.php @@ -27,15 +27,13 @@ * @link http://status.net/ */ -if (!defined('STATUSNET')) { - exit(1); -} +if (!defined('GNUSOCIAL')) { exit(1); } class InlineAttachmentList extends AttachmentList { function showListStart() { - $this->out->element('h2', null, _('Attachments')); + $this->out->element('h4', 'attachments-title', _('Attachments')); parent::showListStart(); } @@ -51,35 +49,3 @@ class InlineAttachmentList extends AttachmentList return new InlineAttachmentListItem($attachment, $this->out); } } - -class InlineAttachmentListItem extends AttachmentListItem -{ - function showLink() { - $this->out->element('a', $this->linkAttr(), $this->title()); - $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'); - } -}