diff options
author | Andrew Dolgov <[email protected]> | 2011-04-19 14:54:27 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-04-19 14:54:27 +0400 |
commit | 0780f4f4fdb88df7982c179ac581db5fb64aef7f (patch) | |
tree | eacfa48c6831487acffd03eeee65b292871ccf7d /functions.php | |
parent | e4f7c976225a7b8d0ad6715a19572b781c515302 (diff) |
add tooltip with all article tags
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/functions.php b/functions.php index e1c60e15f..50228939b 100644 --- a/functions.php +++ b/functions.php @@ -4771,7 +4771,11 @@ $rv['content'] .= "<div clear='both'>" . $line["title"] . "$entry_author</div>"; } - $tags_str = format_tags_string(get_article_tags($link, $id), $id); + $tags = get_article_tags($link, $id); + $tags_str = format_tags_string($tags, $id); + $tags_str_full = join(", ", $tags); + + if (!$tags_str_full) $tags_str_full = __("no tags"); if (!$entry_comments) $entry_comments = " "; # placeholder @@ -4784,6 +4788,10 @@ <a title=\"".__('Edit tags for this article')."\" href=\"#\" onclick=\"editArticleTags($id, $feed_id)\">(+)</a>"; + $rv['content'] .= "<div dojoType=\"dijit.Tooltip\" + id=\"ATSTRTIP-$id\" connectId=\"ATSTR-$id\" + position=\"below\">$tags_str_full</div>"; + $rv['content'] .= "<img src=\"".theme_image($link, 'images/art-zoom.png')."\" class='tagsPic' style=\"cursor : pointer\" onclick=\"postOpenInNewTab(event, $id)\" |