Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 2.39 KB

File metadata and controls

71 lines (47 loc) · 2.39 KB

Gravatar Module

This module enables user avatar using gravatar service.

Version

1.4.1

Category

Profile

Dependencies

Product Module
OrchardCore Users (OrchardCore.Users)

Features

Name Gravatar (OrchardCoreContrib.Gravatar)
Description Displays the user avatar on the admin menu.
Dependencies OrchardCore.Users

NuGet Packages

Name Version
OrchardCoreContrib.Gravatar 1.4.1
OrchardCoreContrib.Gravatar 1.4.0
OrchardCoreContrib.Gravatar 1.3.0
OrchardCoreContrib.Gravatar 1.2.0
OrchardCoreContrib.Gravatar 1.1.0
OrchardCoreContrib.Gravatar 1.0.0

Get Started

  1. Install the OrchardCoreContrib.Gravatar NuGet package to your Orchard Core host project.
  2. Go to the admin site
  3. Select Configuration -> Features menu.
  4. Enable the Gravatar feature.
  5. User avatar should be displayed on the user menu.

Liquid Filters

The following filters allow for gravatar manipulation:

gravatar_url

Returns the URL of a gravatar, based on the email and optional size.

Input

{{ '[email protected]' | gravatar_url }}

{{ '[email protected]' | gravatar_url: size:32 }}

Output

http://www.gravatar.com/avatar/cbf0a05ad7eead6355a35843adc9d1c9?s=24&r=PG

http://www.gravatar.com/avatar/cbf0a05ad7eead6355a35843adc9d1c9?s=32&r=PG

#Video Watch the video