$user = User::staticGet('id', $profile->id);
common_profile_new_message_nudge($cur, $user, $profile);
+ if ($cur) {
+ $blocked = $cur->hasBlocked($profile);
+ common_element_start('li', array('id' => ($blocked) ? 'profile_unblock' : 'profile_block'));
+ if ($blocked) {
+ common_unblock_form($profile, array('action' => 'showstream',
+ 'nickname' => $profile->nickname));
+ } else {
+ common_block_form($profile, array('action' => 'showstream',
+ 'nickname' => $profile->nickname));
+ }
+ common_element_end('li');
+ }
+
common_element_end('ul');
common_element_end('div');
}
$noticeurl = common_local_url('shownotice', array('notice' => $notice->id));
# FIXME: URL, image, video, audio
- common_element_start('p', 'entry-title entry-content');
+ common_element_start('p', 'entry-title');
if ($notice->rendered) {
common_raw($notice->rendered);
} else {
}
common_element_end('p');
common_element_start('p', array('class' => 'time'));
- common_element('a', array('class' => 'permalink published',
+ common_element_start('a', array('class' => 'permalink',
'rel' => 'bookmark',
- 'href' => $noticeurl,
- 'title' => common_exact_date($notice->created)),
- common_date_string($notice->created));
+ 'href' => $noticeurl));
+ common_element('abbr', array('class' => 'published',
+ 'title' => common_date_iso8601($notice->created)),
+ common_date_string($notice->created));
+ common_element_end('a');
+
if ($notice->source) {
common_text(_(' from '));
$this->source_link($notice->source);