Adds gravatar support.
This plugin requires Craft CMS 3.0.0-beta.23 or later.
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require noxify/gravatar
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Gravatar.
The plugins allows you to configure the following settings directly from your CP:
- Gravatar URL (
default: //gravatar.com/avatar/
) - Size (
default: 80
) - Rating (
default: mp
) - Default Avatar (
default: mp
)
Detailed instructions what are the allowed values are defined here: https://de.gravatar.com/site/implement/images/
Inside the plugin settings (and also in the config.php
) you have also the detailed instructions and options.
{{ craft.gravatar.url( '[email protected]' ) }}
{{ craft.gravatar.url( '[email protected]', {'s' : 120, 'd': 'identicon', 'r' : 'x'} ) }}
{{ craft.gravatar.img( '[email protected]' ) }}
{{ craft.gravatar.img( '[email protected]', {'s' : 120, 'd': 'identicon', 'r' : 'x'} ) }}
{{ craft.gravatar.img( '[email protected]', {'s': 120}, {'class' : 'useravatar'} ) }}
Brought to you by Marcus Reinhardt