summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-29 12:41:39 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-29 12:41:39 -0400
commit066f6843fecc862ff26261005e1a1104350ef312 (patch)
tree7a5264d9095bfe5c24be3b8fcb6e774e667452ce /actions/showstream.php
parentc3c32cac8d2fea8d2a4bbcf0ddf1127e7b2fa3f2 (diff)
use common_render_content
darcs-hash:20080529164139-84dde-85f6b27707af4c2f00f0d62c2fe4e209ab353e57.gz
Diffstat (limited to 'actions/showstream.php')
-rw-r--r--actions/showstream.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index c66718cfe..2bd8439d1 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -269,7 +269,7 @@ class ShowstreamAction extends StreamAction {
common_element_start('div', 'notices width66 floatLeft');
- common_element_start('ul', 'bigLinks');
+ common_element_start('ul', 'notices');
for ($i = 0; $i < min($cnt, NOTICES_PER_PAGE); $i++) {
if ($notice->fetch()) {
@@ -318,8 +318,9 @@ class ShowstreamAction extends StreamAction {
if ($notice->find(true)) {
# FIXME: URL, image, video, audio
- common_element('span', array('class' => 'content'),
- $notice->content);
+ common_element_start('span', array('class' => 'content'));
+ common_raw(common_render_content($notice->content));
+ common_element_end('span');
}
common_element_end('div');
@@ -332,11 +333,12 @@ class ShowstreamAction extends StreamAction {
'id' => 'notice-' . $notice->id));
$noticeurl = common_local_url('shownotice', array('notice' => $notice->id));
# FIXME: URL, image, video, audio
- common_element_start('a', array('class' => 'notice',
- 'href' => $noticeurl));
- common_element('span', 'title', common_date_string($notice->created));
- common_element('span', 'desc', $notice->content);
- common_element_end('a');
+ common_element('a', array('class' => 'notice',
+ 'href' => $noticeurl),
+ common_date_string($notice->created));
+ common_element_start('span', array('class' => 'desc'));
+ common_raw(common_render_content($notice->content));
+ common_element_end('span');
common_element_end('li');
}
}