X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Finlineattachmentlist.php;h=40ec114ad82eb024862d5acf08f13dd5c8161521;hb=67a9c0415c395d92adeb784413bb9a88fba7347f;hp=410b3b838d6c7e6449c41fc3ceedb8823ed683a7;hpb=7e2caa0bb1982448c7050c76b85a0c4726664806;p=quix0rs-gnu-social.git diff --git a/lib/inlineattachmentlist.php b/lib/inlineattachmentlist.php index 410b3b838d..40ec114ad8 100644 --- a/lib/inlineattachmentlist.php +++ b/lib/inlineattachmentlist.php @@ -27,9 +27,7 @@ * @link http://status.net/ */ -if (!defined('STATUSNET')) { - exit(1); -} +if (!defined('GNUSOCIAL')) { exit(1); } class InlineAttachmentList extends AttachmentList { @@ -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'); - } -}