diff options
author | sarven <csarven@plantard.controlezvous.ca> | 2009-01-15 00:57:01 +0000 |
---|---|---|
committer | sarven <csarven@plantard.controlezvous.ca> | 2009-01-15 00:57:01 +0000 |
commit | 901b2acc9f3a9718e3707d69743c26178aff9e8a (patch) | |
tree | f4c0425d6a6424a5c9f3663c5869b91ede433e46 /lib/noticelist.php | |
parent | 1b66ac64b79326a55ca987e8bcc35d552c9a0be9 (diff) |
Resaved.
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r-- | lib/noticelist.php | 43 |
1 files changed, 9 insertions, 34 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php index fe5a6eb8a..be3128b4b 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -179,7 +179,7 @@ class NoticeListItem { $this->elementStart('div', 'entry-title'); $this->showAuthor(); - $this->showNoticeContent(); + $this->showContent(); $this->elementEnd('div'); } @@ -201,6 +201,7 @@ class NoticeListItem $this->elementEnd('div'); } + /** * start a single notice. * @@ -243,13 +244,13 @@ class NoticeListItem function showAuthor() { - common_element_start('span', 'vcard author'); - common_element_start('a', array('href' => $this->profile->profileurl, + $this->elementStart('span', 'vcard author'); + $this->elementStart('a', array('href' => $this->profile->profileurl, 'class' => 'url')); $this->showAvatar(); $this->showNickname(); - common_element_end('a'); - common_element_end('span'); + $this->elementEnd('a'); + $this->elementEnd('span'); } /** @@ -265,7 +266,7 @@ class NoticeListItem { $avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE); - common_element('img', array('src' => ($avatar) ? + $this->element('img', array('src' => ($avatar) ? common_avatar_display_url($avatar) : common_default_avatar(AVATAR_STREAM_SIZE), 'class' => 'avatar photo', @@ -287,7 +288,7 @@ class NoticeListItem function showNickname() { - common_element('span', array('class' => 'nickname fn'), + $this->element('span', array('class' => 'nickname fn'), $this->profile->nickname); } @@ -304,7 +305,7 @@ class NoticeListItem function showContent() { // FIXME: URL, image, video, audio - common_element_start('p', array('class' => 'content entry-title')); + common_element_start('p', array('class' => 'entry-content')); if ($this->notice->rendered) { common_raw($this->notice->rendered); } else { @@ -317,21 +318,6 @@ class NoticeListItem } /** - * show the "time" section of a notice - * - * This is the greyed-out section that appears beneath the content, including - * links to delete or reply to the notice. Probably should be called something - * else. - * - * @return void - */ - - function startTimeSection() - { - common_element_start('p', 'time'); - } - - /** * show the link to the main page for the notice * * Displays a link to the page for a notice, with "relative" time. Tries to @@ -475,17 +461,6 @@ class NoticeListItem } /** - * end the time section - * - * @return void - */ - - function endTimeSection() - { - common_element_end('p'); - } - - /** * finish the notice * * Close the last elements in the notice list item |