X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FBookmark%2Fbookmarklistitem.php;h=d099c75ecd8843072890f9a7bbaff823b3013449;hb=59043dca7fb6f974b11797c4d0f20e5b78b0611d;hp=c4dcb7798f353ec3031c57b8518f6b90b242bd60;hpb=ea95f7b7b0e189e7057bba6dab07d7dfcc12d8c6;p=quix0rs-gnu-social.git diff --git a/plugins/Bookmark/bookmarklistitem.php b/plugins/Bookmark/bookmarklistitem.php index c4dcb7798f..d099c75ecd 100644 --- a/plugins/Bookmark/bookmarklistitem.php +++ b/plugins/Bookmark/bookmarklistitem.php @@ -47,11 +47,21 @@ if (!defined('STATUSNET')) { class BookmarkListItem extends NoticeListItemAdapter { + function showNotice() + { + $this->nli->out->elementStart('div', 'entry-title'); + $this->nli->showAuthor(); + $this->showContent(); + $this->nli->out->elementEnd('div'); + } + function showContent() { $notice = $this->nli->notice; $out = $this->nli->out; + $out->elementStart('p', array('class' => 'entry-content')); + $nb = Bookmark::getByNotice($notice); $profile = $notice->getProfile(); @@ -72,17 +82,10 @@ class BookmarkListItem extends NoticeListItemAdapter $out->elementStart('h3'); $out->element('a', array('href' => $att->url, - 'class' => 'bookmark-title entry-title'), + 'class' => 'bookmark-title'), $nb->title); $out->elementEnd('h3'); - $countUrl = common_local_url('noticebyurl', - array('id' => $att->id)); - - $out->element('a', array('class' => 'bookmark-notice-count', - 'href' => $countUrl), - $att->noticeCount()); - // Replies look like "for:" tags $replies = $notice->getReplies(); @@ -106,13 +109,16 @@ class BookmarkListItem extends NoticeListItemAdapter } foreach ($tags as $tag) { - $out->elementStart('li'); - $out->element('a', - array('rel' => 'tag', - 'href' => Notice_tag::url($tag)), - $tag); - $out->elementEnd('li'); - $out->text(' '); + $tag = trim($tag); + if (!empty($tag)) { + $out->elementStart('li'); + $out->element('a', + array('rel' => 'tag', + 'href' => Notice_tag::url($tag)), + $tag); + $out->elementEnd('li'); + $out->text(' '); + } } $out->elementEnd('ul'); @@ -123,5 +129,7 @@ class BookmarkListItem extends NoticeListItemAdapter array('class' => 'bookmark-description'), $nb->description); } + + $out->elementEnd('p'); } }