Initial commit

This commit is contained in:
Némunaire 2013-10-09 15:40:23 +02:00
commit 998d011cd3
233 changed files with 36893 additions and 0 deletions

View file

@ -0,0 +1,29 @@
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty plugin
*
* Type: modifier
* Name: gravatar
* Date: Feb 2, 2011
* Purpose: print the url to the image for gravatar
* Example: {$mail|gravatar}
* @version 1.0
* @author Nemunaire <nemunaire at gmail dot com>
* @param int
* @return string
*/
function smarty_modifier_gravatar($mail, $comp = "")
{
return "http://www.gravatar.com/avatar/".md5(strtolower(trim($mail))).$comp;
}
/* vim: set expandtab: */
?>