From 4057e82bb46e7f30e8bccfb076be85ac9f91f256 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 6 Nov 2014 01:24:04 -0800 Subject: category tagblock --- include/widgets.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/widgets.php') 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) { -- cgit v1.2.3