From 2c5c43f9a632b05d5557f980e83bcecdd3f1332a Mon Sep 17 00:00:00 2001 From: nickw Date: Wed, 2 Jun 2010 21:20:49 +0000 Subject: Moving new Site Tags functionality out of Tagcloud plugin and into core. git-svn-id: http://code.elgg.org/elgg/trunk@6332 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/output/tagcloud.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'views/default/output') diff --git a/views/default/output/tagcloud.php b/views/default/output/tagcloud.php index ced3f2f30..6e78fc6f0 100644 --- a/views/default/output/tagcloud.php +++ b/views/default/output/tagcloud.php @@ -14,6 +14,8 @@ * @uses $vars['subtype'] Entity subtype */ +$context = get_context(); + if (!empty($vars['subtype'])) { $subtype = "&entity_subtype=" . urlencode($vars['subtype']); } else { @@ -34,7 +36,11 @@ if (!empty($vars['tagcloud']) && is_array($vars['tagcloud'])) { $cloud = ""; $max = 0; - $cloud .= '

'.elgg_echo('tagcloud').'

'; + if ($context != 'tags') { + $title = elgg_echo('tagcloud'); + $cloud .= "

$title

"; + } + $cloud .= '
'; foreach($vars['tagcloud'] as $tag) { @@ -59,6 +65,12 @@ if (!empty($vars['tagcloud']) && is_array($vars['tagcloud'])) { $cloud .= "$list
"; + if ($context != 'tags') { + $cloud .= '

'; + $cloud .= "All site tags"; + $cloud .= '

'; + } + $cloud .= elgg_view('tagcloud/extend'); echo $cloud; -- cgit v1.2.3