Skip to content

vulcandigital/silverstripe-gravatar

Repository files navigation

silverstripe-gravatar

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')"/>

About

A very simple Gravatar integration for SilverStripe

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages