3 if (!defined('MICROBLOG')) { exit(1) }
5 define('NOTICES_PER_PAGE', 20);
7 class StreamAction extends Action {
9 function handle($args) {
10 parent::handle($args);
13 function show_notice($notice) {
14 $profile = $notice->getProfile();
16 common_start_element('div', array('class' => 'notice'));
17 # FIXME: add the avatar
18 common_start_element('a', array('href' => $profile->profileurl,
19 'class' => 'nickname'),
21 # FIXME: URL, image, video, audio
22 common_element('span', array('class' => 'content'), $notice->content);
23 common_element('span', array('class' => 'date'),
24 common_date_string($notice->created));
25 common_end_element('div');