$att = $atts[0];
- $out->elementStart('h3');
- $out->element('a',
- array('href' => $att->url),
- $nb->title);
- $out->elementEnd('h3');
+ // XXX: only show the bookmark URL for non-single-page stuff
+
+ if ($out instanceof ShowbookmarkAction) {
+ } else {
+ $out->elementStart('h3');
+ $out->element('a',
+ array('href' => $att->url),
+ $nb->title);
+ $out->elementEnd('h3');
+ }
$out->elementStart('ul', array('class' => 'bookmark_tags'));
array('class' => 'bookmark_description'),
$nb->description);
- $nli->showNoticeAttachments();
+ if (common_config('attachments', 'show_thumbs')) {
+ $al = new InlineAttachmentList($notice, $out);
+ $al->show();
+ }
$out->elementStart('p', array('style' => 'float: left'));
return true;
}
+
+ function title()
+ {
+ return sprintf(_('%s\'s bookmark for "%s"'),
+ $this->user->nickname,
+ $this->bookmark->title);
+ }
+
+ function showPageTitle()
+ {
+ $this->elementStart('h1');
+ $this->element('a',
+ array('href' => $this->bookmark->url),
+ $this->bookmark->title);
+ $this->elementEnd('h1');
+ }
}