Displays the Gravatar image into comments by using Gravator.

Download

Functions

  • Adds MTCommentGravatar tag into MTComments
  • Supported php dynamic publishing!

Outputs the image tag of the current avatar image by author's e-mail address. This tag is only into <$mt:Comments$>, and to display the image is required to register it by same e-mail address to the Gravatar.

attribute description in default
rating rating
size size of image(between 1 and 512 pixels) 32
default default image url

Source

<mt:Comments>
<$mt:CommentGravatar$>
</mt:Comments>

Output

<img class="avatar avatar-32" width="32" height="32" src="https://www.gravatar.com/avatar.php?gravatar_id=d7c1272e4d1025a72ecb8f052fb58c3d&amp;size=32" alt="makoto_kw"/>

License

This code is released under the Artistic License. The terms of the Artistic License are described at http://www.perl.com/language/misc/Artistic.html.

blog comments powered by Disqus