From e3bc71795b95e9aadeb0d0e3a50a07e535130894 Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 25 May 2010 20:30:20 +0000 Subject: Added title to url output. git-svn-id: http://code.elgg.org/elgg/trunk@6215 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/output/url.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 tag + * @uses string $vars['title'] Title attribute to 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 "$text"; + if (isset($vars['title'])) { + $title = 'title="' . htmlentities($vars['title']) . '"'; + } else { + $title = ''; + } + + echo "$text"; } \ No newline at end of file -- cgit v1.2.3