|
@@ -34,14 +34,14 @@ |
|
|
block discarded – undo |
|
34
|
34
|
const HTTPS_URL = 'https://secure.gravatar.com/avatar/'; |
|
35
|
35
|
|
|
36
|
36
|
/** |
|
37
|
|
- * Returns the user's gravatar url. |
|
38
|
|
- * @param string $email The email address |
|
39
|
|
- * @param string $imageset Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ] |
|
40
|
|
- * @param string $rating Maximum rating (inclusive) [ g | pg | r | x ] |
|
41
|
|
- * @param boole $img True to return a complete IMG tag False for just the URL |
|
42
|
|
- * @param array $options Optional, additional key/value attributes to include |
|
43
|
|
- * @return string Link to the user's gravatar image. |
|
44
|
|
- */ |
|
|
37
|
+ * Returns the user's gravatar url. |
|
|
38
|
+ * @param string $email The email address |
|
|
39
|
+ * @param string $imageset Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ] |
|
|
40
|
+ * @param string $rating Maximum rating (inclusive) [ g | pg | r | x ] |
|
|
41
|
+ * @param boole $img True to return a complete IMG tag False for just the URL |
|
|
42
|
+ * @param array $options Optional, additional key/value attributes to include |
|
|
43
|
+ * @return string Link to the user's gravatar image. |
|
|
44
|
+ */ |
|
45
|
45
|
public static function getAvatarUrl($email, $options = []) |
|
46
|
46
|
{ |
|
47
|
47
|
$size = isset($options['s']) ? $options['s'] : 80; |
Please login to merge, or discard this patch.