From 4cdf282644469ef7b8785f537426bb5af2530db7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 14 Sep 2007 10:07:18 +0000 Subject: [PATCH] allow to specify and extra title (tooltip) for the link widget --- etemplate/inc/class.link_widget.inc.php | 4 ++-- etemplate/inc/class.uietemplate.inc.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etemplate/inc/class.link_widget.inc.php b/etemplate/inc/class.link_widget.inc.php index 6cbd16f0d2..8ddf0e611f 100644 --- a/etemplate/inc/class.link_widget.inc.php +++ b/etemplate/inc/class.link_widget.inc.php @@ -171,9 +171,9 @@ return; } $cell['type'] = 'label'; - // size: [b[old]][i[talic]],[link],[activate_links],[label_for],[link_target],[link_popup_size] + // size: [b[old]][i[talic]],[link],[activate_links],[label_for],[link_target],[link_popup_size],[link_title] list($cell['size']) = explode(',',$cell['size']); - $cell['size'] .= ','.$link.',,,'.$target.','.$popup; + $cell['size'] .= ','.$link.',,,'.$target.','.$popup.','.$value['extra_title']; $value = $value['title'] ? $value['title'] : $this->link->title($value['app'],$value['id']); return true; diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index d1f0babd9e..c4dcf03bb5 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -1009,7 +1009,7 @@ foreach($sess as $key => $val) case 'label': // size: [b[old]][i[talic]],[link],[activate_links],[label_for],[link_target],[link_popup_size],[link_title] if (is_array($value)) break; - list($style,$extra_link,$activate_links,$label_for,$extra_link_target,$extra_link_popup,$extra_link_title) = explode(',',$cell_options); + list($style,$extra_link,$activate_links,$label_for,$extra_link_target,$extra_link_popup,$extra_link_title) = explode(',',$cell_options,7); $value = strlen($value) > 1 && !$cell['no_lang'] ? lang($value) : $value; $value = nl2br($this->html->htmlspecialchars($value)); if ($activate_links) $value = $this->html->activate_links($value);