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;
|
return $this->id_asset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getAuthor()
|
||||||
|
{
|
||||||
|
return Member::fromId($this->id_user_uploaded);
|
||||||
|
}
|
||||||
|
|
||||||
public function getDateCaptured()
|
public function getDateCaptured()
|
||||||
{
|
{
|
||||||
return $this->date_captured;
|
return $this->date_captured;
|
||||||
|
@ -96,9 +96,13 @@ class PhotoPage extends SubTemplate
|
|||||||
<dt>Date Taken</dt>
|
<dt>Date Taken</dt>
|
||||||
<dd>', date("j M Y, H:i:s", $this->exif->created_timestamp), '</dd>';
|
<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))
|
if (!empty($this->exif->camera))
|
||||||
echo '
|
echo '
|
||||||
<dt>Model</dt>
|
<dt>Camera Model</dt>
|
||||||
<dd>', $this->exif->camera, '</dd>';
|
<dd>', $this->exif->camera, '</dd>';
|
||||||
|
|
||||||
if (!empty($this->exif->shutter_speed))
|
if (!empty($this->exif->shutter_speed))
|
||||||
|
Loading…
Reference in New Issue
Block a user