19 lines
366 B
PHP
19 lines
366 B
PHP
|
<?php
|
||
|
namespace Westdc\Service\ServiceAgent;
|
||
|
|
||
|
class Gravatar{
|
||
|
|
||
|
function Get( $email, $size='' ) {
|
||
|
|
||
|
$default = "http://www.msgfm.com/static/img/gCons/agent.png";
|
||
|
|
||
|
if(empty($size))
|
||
|
{
|
||
|
$size = 40;
|
||
|
}
|
||
|
|
||
|
$url = "http://www.gravatar.com/avatar/" . md5( strtolower( trim( $email ) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size;
|
||
|
|
||
|
return $url;
|
||
|
}
|
||
|
}
|