From 1e1fa5f457740c2242ea77ac87701bf791f83ed6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 26 Feb 2004 15:33:33 +0000 Subject: [PATCH] new parameter to label-widget, to activate the links --- etemplate/inc/class.uietemplate.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index 721a089cdd..bf513a8a17 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -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;