# vim: sw=3 ts=3 ft=org

#+TITLE: Gravatar Element Element
#+STYLE: <LINK href='../stylesheet.css' rel='stylesheet' type='text/css' />
#+AUTHOR: Rusty Klophaus (@rustyio)
#+OPTIONS:   H:2 num:1 toc:1 \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+EMAIL: 
#+TEXT: [[file:../index.org][Getting Started]] | [[file:../api.org][API]] | [[file:../elements.org][*Elements*]] | [[file:../actions.org][Actions]] | [[file:../validators.org][Validators]] | [[file:../handlers.org][Handlers]] | [[file:../config.org][Configuration Options]] | [[file:../about.org][About]]

* Gravatar Element - #gravatar {}

  The gravatar element displays an avatar that is associated with an
  email address.

  To use, create a gravatar element on your Nitrogen page, and set the
  email, size and rating attributes.

** Usage

#+BEGIN_SRC erlang
   #gravatar { email="email@address.com"
     size="80", 
     rating="g", 
     default="identicon" 
   }
#+END_SRC

** Attributes

   + email - (/string/) :: Email of the user whose icon will be displayed.

   + size - (/string/) :: Size of the gravatar image that is displayed.

   + rating - (/string/) :: g, pg, r, x.

   + default - (/string/) :: monsterid, wavatar or identicon.

** See Also

   + [[./image.html][image element]]

     
