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 = '';
+ $html = '<option value="_auto_">* automatic *</option>';
$fileExt = null;
if ($file !== null) {
$fileExt = $file->getExt();
}
}
-?>
\ No newline at end of file
+?>