/**
* Renders HTML code for custom tab
* @return string
*/
public function getTab()
{
if ($this->mailer === NULL) {
return '';
}
$count = $this->mailer->getMessageCount();
$label = $count . ' sent email' . ($count === 1 ? '' : 's');
return '<span title="Mail Panel">' . '<svg viewBox="0 0 16 16">' . ' <rect x="0" y="2" width="16" height="11" rx="1" ry="1" fill="#588ac8"/>' . ' <rect x="1" y="3" width="14" height="9" fill="#eef3f8"/>' . ' <rect x="2" y="4" width="12" height="7" fill="#dcebfe"/>' . ' <path d="M 2 11 l 4 -4 q 2 -2 4 0 l 4 4" stroke="#bbccdd" fill="none"/>' . ' <path d="M 2 4 l 4 4 q 2 2 4 0 l 4 -4" stroke="#85aae2" fill="#dee8f7"/>' . '</svg>' . '<span class="tracy-label">' . $label . '</span></span>';
}