implement bold, as it is used by notifications_popup

This commit is contained in:
Klaus Leithoff 2016-05-06 13:15:36 +00:00
parent 20331879b1
commit c0c21e8789

View File

@ -995,6 +995,17 @@ egw_LAB.wait(function() {
return '<a href="'.self::htmlspecialchars($url).'" '.$options.'>'.$content.'</a>'; return '<a href="'.self::htmlspecialchars($url).'" '.$options.'>'.$content.'</a>';
} }
/**
* representates a b tag (bold)
*
* @param string $content of the link, if '' only the opening tag gets returned
* @return string the html
*/
static function bold($content)
{
return '<b>'.($content?$content.'</b>':'');
}
/** /**
* representates a hr tag (horizontal rule) * representates a hr tag (horizontal rule)
* *