vulcandigital/silverstripe-gravatar

A very simple Gravatar integration

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

1.0.0 2018-03-17 12:09 UTC

This package is auto-updated.

Last update: 2024-10-18 20:33:15 UTC


README

A very simple Gravatar integration. An extension that is automatically applied to Member

Requirements

  • silverstripe/framework: ^4

Installation

$ composer require vulcandigital/silverstripe-gravatar

Usage

$me = Security::getCurrentUser();
$me->Avatar($size = 80);

Template:

<img src="$CurrentUser.Avatar(60')"/>
<img src="$CurrentUser.Avatar(80, 'mm')"/>
<img src="$CurrentUser.Avatar(120, 'monsterid')"/>
<img src="$CurrentUser.Avatar(140, 'wavatar')"/>