*
* @return value
*/
- function onPluginVersion(&$versions)
+ function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Bookmark',
'version' => self::VERSION,
$target = $attachments[0];
$attrs = array('rel' => 'related',
- 'href' => $target->url);
+ 'href' => $target->getUrl());
if (!empty($target->title)) {
$attrs['title'] = $target->title;
try {
$thumbnail = $target->getThumbnail();
$tattrs = array('rel' => 'preview',
- 'href' => $thumbnail->url);
+ 'href' => $thumbnail->getUrl());
if (!empty($thumbnail->width)) {
$tattrs['media:width'] = $thumbnail->width;
$replies = $stored->getReplies();
$tags = $stored->getTags();
+ if (!empty($nb->description)) {
+ $out->element('p',
+ array('class' => 'bookmark-description'),
+ $nb->description);
+ }
+
if (!empty($replies) || !empty($tags)) {
$out->elementStart('ul', array('class' => 'bookmark-tags'));
$out->elementEnd('ul');
}
- if (!empty($nb->description)) {
- $out->element('p',
- array('class' => 'bookmark-description'),
- $nb->description);
- }
}
}