forked from extern/egroupware
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]
|
case 'label': // size: [[b]old][[i]talic][,link]
|
||||||
if (is_array($value))
|
if (is_array($value))
|
||||||
break;
|
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 = strlen($value) > 1 && !$cell['no_lang'] ? lang($value) : $value;
|
||||||
$value = nl2br(htmlspecialchars($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,'b')) $value = $this->html->bold($value);
|
||||||
if ($value != '' && strstr($style,'i')) $value = $this->html->italic($value);
|
if ($value != '' && strstr($style,'i')) $value = $this->html->italic($value);
|
||||||
$html .= $value;
|
$html .= $value;
|
||||||
|
Loading…
Reference in New Issue
Block a user