{
public function getIconUrl($email, $size = 32)
{
- if ($email == 'anonymous@phorkie') {
+ if ($email == 'anonymous@phorkie'
+ || !$GLOBALS['phorkie']['cfg']['avatars']
+ ) {
return 'phorkie/anonymous.png';
}
$s = new \Services_Libravatar();
+ $s->detectHttps();
return $s->url(
$email,
array(
return $logged_in;
}
+
+ public function getRepositoryEmbedCode(Repository $repo)
+ {
+ return '<script src="' . $repo->getLink('embed', null, true) . '"'
+ . ' id="phork-script-' . $repo->id . '"'
+ . ' type="text/javascript"></script>';
+ }
}
?>