forked from Public/pics
Add uploader to photo view.
This commit is contained in:
parent
5b7099e0e5
commit
09a662b4eb
@ -234,6 +234,11 @@ class Asset
|
||||
return $this->id_asset;
|
||||
}
|
||||
|
||||
public function getAuthor()
|
||||
{
|
||||
return Member::fromId($this->id_user_uploaded);
|
||||
}
|
||||
|
||||
public function getDateCaptured()
|
||||
{
|
||||
return $this->date_captured;
|
||||
|
@ -96,9 +96,13 @@ class PhotoPage extends SubTemplate
|
||||
<dt>Date Taken</dt>
|
||||
<dd>', date("j M Y, H:i:s", $this->exif->created_timestamp), '</dd>';
|
||||
|
||||
echo '
|
||||
<dt>Uploaded by</dt>
|
||||
<dd>', $this->photo->getAuthor()->getfullName(), '</dd>';
|
||||
|
||||
if (!empty($this->exif->camera))
|
||||
echo '
|
||||
<dt>Model</dt>
|
||||
<dt>Camera Model</dt>
|
||||
<dd>', $this->exif->camera, '</dd>';
|
||||
|
||||
if (!empty($this->exif->shutter_speed))
|
||||
|
Loading…
Reference in New Issue
Block a user