summaryrefslogtreecommitdiff
path: root/stream.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-08 22:16:04 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-08 22:16:04 -0400
commitf0a30cc89ddf82e3c774800d24f0ea3664065d9c (patch)
tree13053422786e83ab57a55e63879e5ceb07d9ecfd /stream.php
parent2df28057cdd5c54fb4f754f5c2222154efe2ad5b (diff)
read-only stuff
darcs-hash:20080509021604-84dde-f785fc09dd435fc12741b3a75184e2425721d03d.gz
Diffstat (limited to 'stream.php')
-rw-r--r--stream.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/stream.php b/stream.php
new file mode 100644
index 000000000..d30ee013c
--- /dev/null
+++ b/stream.php
@@ -0,0 +1,25 @@
+<?php
+
+define('NOTICES_PER_PAGE', 20);
+
+class StreamAction extends Action {
+
+ function handle($args) {
+ parent::handle($args);
+ }
+
+ function show_notice($notice) {
+ $profile = $notice->getProfile();
+ # XXX: RDFa
+ common_start_element('div', array('class' => 'notice'));
+ # FIXME: add the avatar
+ common_start_element('a', array('href' => $profile->profileurl,
+ 'class' => 'nickname'),
+ $profile->nickname);
+ # FIXME: URL, image, video, audio
+ common_element('span', array('class' => 'content'), $notice->content);
+ common_element('span', array('class' => 'date'),
+ common_date_string($notice->created));
+ common_end_element('div');
+ }
+}