"Your image description" * * @return String with image caption */ public function Caption() { if (preg_match('#(\d*-)?(.+)\.(jpg|jpeg|gif|png)#i', $this->owner->Title, $matches)) { return ucfirst(str_replace('-', ' ', $matches[2])); } return $this->owner->Title; } public function Exif(){ $filedate=""; $image = $this->owner->AbsoluteURL; $exif = exif_read_data($image,0,true); $value= $exif['EXIF']['DateTimeOriginal']; if($value) $filedate="-- [ ".date ("d M, Y H:i", strtotime ($value))." ]"; $this->owner->Title=$this->owner->Title.$filedate; return $this->owner->Title; } }