photo = $photo; } protected function html_content() { $this->photoNav(); $this->photo(); echo '

', $this->photo->getTitle(), '

'; $this->taggedPeople(); echo '
'; $this->photoMeta(); echo ' '; } private function photo() { echo '
'; if ($this->photo->isPortrait()) echo ' '; else echo ' '; echo '
'; } private function photoNav() { if (false) // $previous_post = $this->post->getPreviousPostUrl()) echo ' Previous photo'; else echo ' Previous photo'; if (false) //$this->post->getNextPostUrl()) echo ' Next photo'; else echo ' Next photo'; } private function photoMeta() { echo '

EXIF

'; if (!empty($this->exif->created_timestamp)) echo '
Date Taken
', date("j M Y, H:i:s", $this->exif->created_timestamp), '
'; if (!empty($this->exif->camera)) echo '
Model
', $this->exif->camera, '
'; if (!empty($this->exif->shutter_speed)) echo '
Shutter Speed
', $this->exif->shutterSpeedFraction(), '
'; if (!empty($this->exif->aperture)) echo '
Aperture
f/', number_format($this->exif->aperture, 1), '
'; if (!empty($this->exif->focal_length)) echo '
Focal Length
', $this->exif->focal_length, ' mm
'; if (!empty($this->exif->iso)) echo '
ISO Speed
', $this->exif->iso, '
'; echo '
'; } private function taggedPeople() { echo '

Tags

'; } public function setExif(EXIF $exif) { $this->exif = $exif; } }