| 1 | <?php |
||
| 13 | class GravatarModel implements ConfigureInterface, InjectionAwareInterface |
||
| 14 | { |
||
| 15 | use ConfigureTrait; |
||
| 16 | use InjectionAwareTrait; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Get either a Gravatar URL or complete image tag for a specified email address. |
||
| 20 | * |
||
| 21 | * @param string $email The email address |
||
| 22 | * @param string $size Size in pixels, defaults to 80px [ 1 - 2048 ] |
||
| 23 | * @param string $rating Maximum rating (inclusive) [ g | pg | r | x ] |
||
| 24 | * @param boole $img True to return a complete IMG tag False for just the URL |
||
| 25 | * @param array $atts Optional, additional key/value attributes to include in the IMG tag |
||
| 26 | * @return String containing either just a URL or a complete image tag |
||
| 27 | * @source https://gravatar.com/site/implement/images/php/ |
||
| 28 | */ |
||
| 29 | 1 | public function getGravatar($email, $size, $dImageset, $rating, $img, $atts) |
|
| 43 | } |
||
| 44 |