2017 © Pedro Peláez
 

craft-plugin gravatar

Adds gravatar support

image

noxify/gravatar

Adds gravatar support

  • Wednesday, May 30, 2018
  • by noxify
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Gravatar plugin for Craft CMS 3.x

Adds gravatar support., (*1)

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later., (*2)

Installation

To install the plugin, follow these instructions., (*3)

  1. Open your terminal and go to your Craft project:, (*4)

    cd /path/to/project
  2. Then tell Composer to load the plugin:, (*5)

    composer require noxify/gravatar
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Gravatar., (*6)

Configuring Gravatar

The plugins allows you to configure the following settings directly from your CP:, (*7)

  • 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/, (*8)

Inside the plugin settings (and also in the config.php) you have also the detailed instructions and options., (*9)

Using Gravatar

Get the Gravatar URL with default settings

{{ craft.gravatar.url( 'hello@example.com' ) }}

Get the Gravatar URL with custom settings

{{ craft.gravatar.url( 'hello@example.com', {'s' : 120, 'd': 'identicon', 'r' : 'x'} ) }}

Get the Gravatar IMG with default settings

{{ craft.gravatar.img( 'hello@example.com' ) }}

Get the Gravatar IMG with custom settings

{{ craft.gravatar.img( 'hello@example.com', {'s' : 120, 'd': 'identicon', 'r' : 'x'} ) }}

Get the Gravatar IMG with custom settings and attributes

{{ craft.gravatar.img( 'hello@example.com', {'s': 120}, {'class' : 'useravatar'} ) }}

Gravatar Roadmap

Brought to you by Marcus Reinhardt, (*10)

The Versions

30/05 2018

dev-master

9999999-dev

Adds gravatar support

  Sources   Download

MIT

The Requires

 

cms gravatar craftcms craft-plugin craft

30/05 2018

1.0.0

1.0.0.0

Adds gravatar support

  Sources   Download

MIT

The Requires

 

cms gravatar craftcms craft-plugin craft