]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - lib/stream.php
move library files to lib
[quix0rs-gnu-social.git] / lib / stream.php
1 <?php
2
3 if (!defined('MICROBLOG')) { exit(1) }
4
5 define('NOTICES_PER_PAGE', 20);
6
7 class StreamAction extends Action {
8
9         function handle($args) {
10                 parent::handle($args);
11         }
12
13         function show_notice($notice) {
14                 $profile = $notice->getProfile();
15                 # XXX: RDFa
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'),
20                                                          $profile->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');
26         }
27 }