Файл: concrete5.7.5.6/concrete/src/User/Avatar/Gravatar.php
Строк: 19
<?php
namespace ConcreteCoreUserAvatar;
use ConcreteCoreApplicationApplication;
use ConcreteCoreFileStorageLocationStorageLocation;
use ConcreteCoreUserUserInfo;
use HtmlObjectImage;
class Gravatar extends StandardAvatar
{
protected $size = 80;
protected $imageSet = 'mm';
protected $rating = 'g';
public function getPath()
{
$url = '//www.gravatar.com/avatar/';
$url .= md5(strtolower(trim($this->userInfo->getUserEmail())));
$url .= "?s={$this->size}&d={$this->imageSet}&r={$this->rating}";
return $url;
}
}