mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
new parameter to label-widget, to activate the links
This commit is contained in:
parent
d99afd7a11
commit
1e1fa5f457
@ -587,9 +587,10 @@
|
||||
case 'label': // size: [[b]old][[i]talic][,link]
|
||||
if (is_array($value))
|
||||
break;
|
||||
list($style,$extra_link) = explode(',',$cell_options);
|
||||
list($style,$extra_link,$activate_links) = explode(',',$cell_options);
|
||||
$value = strlen($value) > 1 && !$cell['no_lang'] ? lang($value) : $value;
|
||||
$value = nl2br(htmlspecialchars($value));
|
||||
if ($activate_links) $value = $this->html->activate_links($value);
|
||||
if ($value != '' && strstr($style,'b')) $value = $this->html->bold($value);
|
||||
if ($value != '' && strstr($style,'i')) $value = $this->html->italic($value);
|
||||
$html .= $value;
|
||||
|
Loading…
Reference in New Issue
Block a user