Got photos displaying in the feed *the right way*
This commit is contained in:
parent
56c0f97bea
commit
3da5dccce6
@ -121,15 +121,15 @@ class GNUsocialPhotosPlugin extends Plugin
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
function onStartShowNoticeItem($action)
|
function onStartShowNoticeItem($action)
|
||||||
{
|
{
|
||||||
$photo = GNUsocialPhoto::staticGet('notice_id', $action->notice->id);
|
$photo = GNUsocialPhoto::staticGet('notice_id', $action->notice->id);
|
||||||
if($photo) {
|
if($photo) {
|
||||||
$action->out->elementStart('div', 'entry-title');
|
$action->out->elementStart('div', 'entry-title');
|
||||||
$action->showAuthor();
|
$action->showAuthor();
|
||||||
$action->out->elementStart('a', array('href' => 'http://' . common_config('site', 'server') . $photo->path));
|
$action->out->elementStart('a', array('href' => $photo->uri));
|
||||||
$action->out->element('img', array('src' => 'http://' . common_config('site', 'server') . $photo->thumb_path));
|
$action->out->element('img', array('src' => $photo->thumb_uri));
|
||||||
$action->out->elementEnd('a');
|
$action->out->elementEnd('a');
|
||||||
$action->out->elementEnd('div');
|
$action->out->elementEnd('div');
|
||||||
$action->showNoticeInfo();
|
$action->showNoticeInfo();
|
||||||
@ -137,5 +137,5 @@ class GNUsocialPhotosPlugin extends Plugin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} */
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user