aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-02 21:04:46 -0700
committerfriendica <info@friendica.com>2013-07-02 21:04:46 -0700
commit08023eb0993eb63aac96669afd01beae7e134964 (patch)
tree844282019047605e0cac0bba9e01e6fe433042cc /include
parenta4c77467a78a7301b53f4c9e54ca0f562e1ced4d (diff)
downloadvolse-hubzilla-08023eb0993eb63aac96669afd01beae7e134964.tar.gz
volse-hubzilla-08023eb0993eb63aac96669afd01beae7e134964.tar.bz2
volse-hubzilla-08023eb0993eb63aac96669afd01beae7e134964.zip
tag cloud feature (enable the feature, then it will show up on your channel page)
Diffstat (limited to 'include')
-rw-r--r--include/features.php1
-rw-r--r--include/taxonomy.php8
2 files changed, 6 insertions, 3 deletions
diff --git a/include/features.php b/include/features.php
index c2aabbc42..da1322a14 100644
--- a/include/features.php
+++ b/include/features.php
@@ -58,6 +58,7 @@ function get_features() {
array('filing', t('Saved Folders'), t('Ability to file posts under folders')),
array('dislike', t('Dislike Posts'), t('Ability to dislike posts/comments')),
array('star_posts', t('Star Posts'), t('Ability to mark special posts with a star indicator')),
+ array('tagadelic', t('Tag Cloud'), t('Provide a personal tag cloud on your channel page')),
),
);
diff --git a/include/taxonomy.php b/include/taxonomy.php
index 7e9a4c856..0ebda2b1c 100644
--- a/include/taxonomy.php
+++ b/include/taxonomy.php
@@ -146,14 +146,16 @@ function tags_sort($a,$b) {
function tagblock($link,$uid,$count = 0,$type = TERM_HASHTAG) {
+ $o = '';
$tab = 0;
$r = tagadelic($uid,$count,$type);
if($r) {
- echo '<div class="tags" align="center">';
+ $o = '<div class="tagblock widget"><h3>' . t('Tags') . '</h3><div class="tags" align="center">';
foreach($r as $rr) {
- echo '<a href="'.$link .'/' . '?f=&tag=' . urlencode($rr[0]).'" class="tag'.$rr[2].'">'.$rr[0].'</a> ';
+ $o .= '<a href="'.$link .'/' . '?f=&tag=' . urlencode($rr[0]).'" class="tag'.$rr[2].'">'.$rr[0].'</a> ' . "\r\n";
}
- echo '</div>';
+ $o .= '</div></div>';
}
+ return $o;
}