aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-06 01:24:04 -0800
committerfriendica <info@friendica.com>2014-11-06 01:24:04 -0800
commit4057e82bb46e7f30e8bccfb076be85ac9f91f256 (patch)
tree8b289d50dcb1e9e42d18443c1aa97505a375a604 /include/widgets.php
parent1237957dd54b47685269300ca128455463e0787c (diff)
downloadvolse-hubzilla-4057e82bb46e7f30e8bccfb076be85ac9f91f256.tar.gz
volse-hubzilla-4057e82bb46e7f30e8bccfb076be85ac9f91f256.tar.bz2
volse-hubzilla-4057e82bb46e7f30e8bccfb076be85ac9f91f256.zip
category tagblock
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/widgets.php b/include/widgets.php
index f678e40dd..dcad3eff6 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -400,6 +400,17 @@ function widget_tagcloud_wall($arr) {
return tagblock('search',$a->profile['profile_uid'],$limit,$a->profile['channel_hash'],ITEM_WALL);
return '';
}
+function widget_catcloud_wall($arr) {
+ $a = get_app();
+ if((! $a->profile['profile_uid']) || (! $a->profile['channel_hash']))
+ return '';
+ if(! perm_is_allowed($a->profile['profile_uid'],get_observer_hash(),'view_stream'))
+ return '';
+
+ $limit = ((array_key_exists('limit',$arr)) ? intval($arr['limit']) : 50);
+ return catblock($a->profile['profile_uid'],$limit,$a->profile['channel_hash'],ITEM_WALL);
+ return '';
+}
function widget_affinity($arr) {