src/Model/Comment.php
public function Gravatar()
    {
        $gravatar = '';
        $use_gravatar = $this->getOption('use_gravatar');

        if ($use_gravatar) {
            $gravatar = 'https://www.gravatar.com/avatar/' . md5(strtolower(trim($this->Email)));
            $gravatarsize = $this->getOption('gravatar_size');
            $gravatardefault = $this->getOption('gravatar_default');
            $gravatarrating = $this->getOption('gravatar_rating');
            $gravatar .= '?' . http_build_query(array(
                's' => $gravatarsize,
                'd' => $gravatardefault,
                'r' => $gravatarrating,
            ));
        }

        return $gravatar;
    }
public function Gravatar()
    {
        $gravatar = '';
        $use_gravatar = $this->getOption('use_gravatar');

        if ($use_gravatar) {
            $gravatar = 'https://www.gravatar.com/avatar/' . md5(strtolower(trim($this->Email)));
            $gravatarsize = $this->getOption('gravatar_size');
            $gravatardefault = $this->getOption('gravatar_default');
            $gravatarrating = $this->getOption('gravatar_rating');
            $gravatar .= '?' . http_build_query(array(
                's' => $gravatarsize,
                'd' => $gravatardefault,
                'r' => $gravatarrating,
            ));
        }

        return $gravatar;
    }
public function Gravatar ( ) { $ gravatar = '' ; $ use_gravatar = $ this -> getOption ( 'use_gravatar' ) ; if ( $ use_gravatar ) { $ gravatar = 'https://www.gravatar.com/avatar/' . md5 ( strtolower ( trim ( $ this -> Email ) ) ) ; $ gravatarsize = $ this -> getOption ( 'gravatar_size' ) ; $ gravatardefault = $ this -> getOption ( 'gravatar_default' ) ; $ gravatarrating = $ this -> getOption ( 'gravatar_rating' ) ; $ gravatar .= '?' . http_build_query ( array ( 's' => $ gravatarsize , 'd' => $ gravatardefault , 'r' => $ gravatarrating , ) ) ; } return $ gravatar ; }
Calculate the Gravatar link from the email address

@return string
Calculate the Gravatar link from the email address