function image($width = null) { if (!func_num_args()) { return $this->image ? File::find($this->image) : null; } elseif ($image = $this->image()) { $source = $image->file(); return Block_Thumb::url(compact('width', 'source')); } }
function avatar($width) { if ($source = $this->avatar) { return Block_Thumb::url(compact('width', 'source')); } }