diff options
Diffstat (limited to 'views/default/output')
| -rw-r--r-- | views/default/output/url.php | 9 | 
1 files changed, 8 insertions, 1 deletions
diff --git a/views/default/output/url.php b/views/default/output/url.php index c5058f18e..289fdc5cc 100644 --- a/views/default/output/url.php +++ b/views/default/output/url.php @@ -14,6 +14,7 @@   * @uses bool $vars['encode_text'] Run $vars['text'] through htmlentities()?   * @uses string $vars['class'] what to add in class=""   * @uses string $vars['js'] Javascript to insert in <a> tag + * @uses string $vars['title'] Title attribute to <a> tag   * @uses bool $vars['is_action'] Is this a link to an action?   *   */ @@ -60,5 +61,11 @@ if (!empty($url)) {  		$url = elgg_add_action_tokens_to_url($url);  	} -	echo "<a href=\"{$url}\" $target $class $js>$text</a>"; +	if (isset($vars['title'])) { +		$title = 'title="' . htmlentities($vars['title']) . '"'; +	} else { +		$title = ''; +	} + +	echo "<a href=\"{$url}\" $target $class $js $title>$text</a>";  }
\ No newline at end of file  | 
