+ function show_notice($notice) {
+ $profile = $notice->getProfile();
+ # XXX: RDFa
+ common_element_start('li', array('class' => 'notice_single',
+ 'id' => 'notice-' . $notice->id));
+ $noticeurl = common_local_url('shownotice', array('notice' => $notice->id));
+ # FIXME: URL, image, video, audio
+ common_element_start('p');
+ common_raw(common_render_content($notice->content, $notice));
+ common_element_end('p');
+ common_element_start('p', array('class' => 'time'));
+ common_element('a', array('class' => 'notice',
+ 'href' => $noticeurl),
+ common_date_string($notice->created));
+ common_element_end('p');
+ common_element_end('li');