class HtmlHelper
{
+ public function getIconUrl($email, $size = 32)
+ {
+ if ($email == 'anonymous@phorkie') {
+ return 'phorkie/anonymous.png';
+ }
+
+ $s = new \Services_Libravatar();
+ return $s->url(
+ $email,
+ array(
+ 'size' => $size,
+ 'default' => Tools::fullUrl('phorkie/anonymous.png')
+ )
+ );
+ }
+
public function getLanguageOptions(File $file = null)
{
$html = '<option value="_auto_">* automatic *</option>';
}
return $html;
}
+
+ public function fullUrl($path = '')
+ {
+ return Tools::fullUrl($path);
+ }
}
?>