如何使以下代码中的"(@count new)“文本以粗体格式显示?
else {
$text = format_plural($count, '1 new',
'Private Messages (@count new)');
}下面是完整的代码片段:
function bootstrap_primary_privatemsg_new_block($count) {
$count = $count['count'];
if ($count == 0) {
$text = t('Private Messages');
}
else {
$text = format_plural($count, '1 new',
'Private Messages (@count new)');
}
return l($text, 'messages', array('attributes' => array('id' => 'privatemsg-new-link')));
}发布于 2015-11-17 04:47:22
关于
$text = format_plural($count, '1 new', 'Private Messages (<strong>@count new</strong>)');https://stackoverflow.com/questions/33744268
复制相似问题