aboutsummaryrefslogtreecommitdiffstats
path: root/include/taxonomy.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-12-15 14:37:31 -0800
committerfriendica <info@friendica.com>2014-12-15 14:37:31 -0800
commitf28103d595c0e02dfd30d44b3115915994e9ecc0 (patch)
treeb5076f4f5440738033d8d009799ff1d394250dbe /include/taxonomy.php
parent1780ba5e7d1571d82a6428c4907d6a264217c778 (diff)
downloadvolse-hubzilla-f28103d595c0e02dfd30d44b3115915994e9ecc0.tar.gz
volse-hubzilla-f28103d595c0e02dfd30d44b3115915994e9ecc0.tar.bz2
volse-hubzilla-f28103d595c0e02dfd30d44b3115915994e9ecc0.zip
wall tags
Diffstat (limited to 'include/taxonomy.php')
-rw-r--r--include/taxonomy.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php
index fab31c73d..be80008df 100644
--- a/include/taxonomy.php
+++ b/include/taxonomy.php
@@ -216,6 +216,26 @@ function tagblock($link,$uid,$count = 0,$authors = '',$flags = 0,$restrict = 0,$
return $o;
}
+function wtagblock($uid,$count = 0,$authors = '',$flags = 0,$restrict = 0,$type = TERM_HASHTAG) {
+ $o = '';
+ $tab = 0;
+ $r = tagadelic($uid,$count,$authors,$flags,$restrict,$type);
+
+ if($r) {
+ $c = q("select channel_address from channel where channel_id = %d limit 1",
+ intval($uid)
+ );
+
+ $o = '<div class="tagblock widget"><h3>' . t('Tags') . '</h3><div class="tags" align="center">';
+ foreach($r as $rr) {
+ $o .= '<span class="tag' . $rr[2] . '">#</span><a href="channel/' . $c[0]['channel_address'] . '?f=&tag=' . urlencode($rr[0]).'" class="tag'.$rr[2].'">'.$rr[0].'</a> ' . "\r\n";
+ }
+ $o .= '</div></div>';
+ }
+ return $o;
+}
+
+
function catblock($uid,$count = 0,$authors = '',$flags = 0,$restrict = 0,$type = TERM_CATEGORY) {
$o = '';
$tab = 0;