This repository has been archived by the owner on Apr 15, 2019. It is now read-only.
forked from hharnett/cakephp-gravatar-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
CakePHP Gravatar Helper
rklubenspies/cakephp-gravatar-helper
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Gravatar Helper for CakePHP Version 1.1 Author: Hayden Harnett <[email protected]> URL: http://hayden.id.au Usage 1. Put gravatar.php in /app/views/helpers 2. Add gravatar to $helpers array in each controller which you wish to use it e.g. var $helpers = array('Html', 'Javascript', 'Gravatar'); 3. In a view call the image function with an email address of the gravatar any (or no) of the following options, followed by any HTML image tag attributes you wish to have (e.g. alt, style, width, height etc): - size (between 1 and 512 pixels) - rating ('g', 'pg', 'r' or 'x') - default (a default image to be shown if the gravatar cannot be found - either an absolute path to another image or an email of another gravatar ) e.g. $gravatar->image('[email protected]', array('size' => 50, 'rating' => 'r'), array('alt' => 'Sidebar Avatar', 'width' => 50, 'height' => 50));
About
CakePHP Gravatar Helper
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published