public function avatar($width = null, $height = null,  $returnGravatarIfNotFound = false)
    {
        if($this->profileimage) {
            if(!$width && !$height) {
                return url($this->profileimage->url);
            }else{
                return $this->profileimage->thumb($width, $height, $this->profileimage);
            }
        }

        if($returnGravatarIfNotFound && $this->gravatar) {
            return $this->gravatar;
        }

        return;
    }
public function avatar($width = null, $height = null,  $returnGravatarIfNotFound = false)
    {
        if($this->profileimage) {
            if(!$width && !$height) {
                return url($this->profileimage->url);
            }else{
                return $this->profileimage->thumb($width, $height, $this->profileimage);
            }
        }

        if($returnGravatarIfNotFound && $this->gravatar) {
            return $this->gravatar;
        }

        return;
    }
public function avatar ( $ width = null , $ height = null , $ returnGravatarIfNotFound = false ) { if ( $ this -> profileimage ) { if ( ! $ width && ! $ height ) { return url ( $ this -> profileimage -> url ) ; } else { return $ this -> profileimage -> thumb ( $ width , $ height , $ this -> profileimage ) ; } } if ( $ returnGravatarIfNotFound && $ this -> gravatar ) { return $ this -> gravatar ; } return ; }
Get full avatar url.

@param int     $width                    Width of image. ex: 200
@param int     $height                   Height of image. ex: 200
@param boolean $returnGravatarIfNotFound Return gravatar if not avatar is found

@return string|null
Get full avatar url .