developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#993 closed new feature (fixed)

Plugin Gravatar

Reported by: foxmask Owned by:
Priority: low Milestone: Jelix 1.2 beta
Component: jelix:plugins:tpl Version:
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

Voici un nouveau plugin de type tpl html permettant d'afficher un gravatar.

Pour info : un gravatar est un avatar hébergé sur gravatar.com et un avatar est lié à un courriel.

Attachments (2)

function.gravatar.php (1.4 KB) - added by foxmask 11 years ago.
le code du plugin Gravatar
jelix-1.2-plugin-function-gravatar-empty-alt-for-accessibility.diff (837 bytes) - added by catsoup 11 years ago.
let alt attribute empty for accessibility

Download all attachments as: .zip

Change History (16)

Changed 11 years ago by foxmask

le code du plugin Gravatar

comment:1 Changed 11 years ago by foxmask

utilisation :

pour afficher le gravatar de "foo"

{gravatar 'foo@bar.com'}

si l'utilisateur n'a pas de gravatar ; alors il aura le gravatar par defaut sauf si "default" est renseigne comme suit :

{gravatar 'foo@bar.com', array('default'=>'http://domain.com/my/default/gravatar.png')}

on peut aussi retoucher la taille du gravatar avec l'option size

{gravatar 'foo@bar.com', array('default'=>'http://domain.com/my/default/gravatar.png','size'=>180)}

comment:2 Changed 11 years ago by foxmask

  • review set to review?

comment:3 Changed 11 years ago by laurentj

  • Milestone changed from Jelix 1.1.4 to Jelix 1.2
  • Priority changed from normal to low
  • Severity changed from normal to minor

comment:4 Changed 11 years ago by laurentj

  • review changed from review? to review+

ok, mais même remarque que pout le #1019 : il faut aussi modifier le fichier manifest pour le build et le fichier CREDITS

comment:5 Changed 11 years ago by foxmask

c'est noté

comment:6 Changed 11 years ago by foxmask

  • Resolution set to fixed
  • Status changed from new to closed

comment:7 Changed 11 years ago by laurentj

  • Documentation needed set

comment:10 Changed 11 years ago by catsoup

  • Resolution fixed deleted
  • review changed from review+ to review?
  • Status changed from closed to reopened
  • Type changed from new feature to enhancement

Hello, il y a un petit soucis, si on a activé les E_NOTICE, on en a une a cause du param "username" qui n'a aucune valeur par défaut. Mais je propose carrément de le virer, rapport à l'accessibilité, voir pourquoi ici => http://openweb.eu.org/articles/accessibilite_images

Changed 11 years ago by catsoup

let alt attribute empty for accessibility

comment:11 Changed 10 years ago by laurentj

Je pense tout de même que l'image d'un gravatar apporte une information plutôt significative, et donc on devrait avoir un alt rempli. non ?

comment:12 Changed 10 years ago by foxmask

ou tout au moins dans le alt avoir "gravatar de toto" / "john doe's gravatar" qui serait plus complet ?

comment:13 Changed 10 years ago by laurentj

  • Resolution set to fixed
  • review review? deleted
  • Status changed from reopened to closed

comment:14 Changed 10 years ago by laurentj

  • Type changed from enhancement to new feature
Note: See TracTickets for help on using tickets.