aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Tagcloud_wall.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-15 20:56:12 -0700
committerzotlabs <mike@macgirvin.com>2017-03-15 20:56:12 -0700
commit16d750d1f6cf0d2866388269e02445630c4e3464 (patch)
treead44965b8dae98d55322919493ac18d733bd5743 /Zotlabs/Widget/Tagcloud_wall.php
parentdfd626548fc903a4ecffe3241570957a2df9a37a (diff)
downloadvolse-hubzilla-16d750d1f6cf0d2866388269e02445630c4e3464.tar.gz
volse-hubzilla-16d750d1f6cf0d2866388269e02445630c4e3464.tar.bz2
volse-hubzilla-16d750d1f6cf0d2866388269e02445630c4e3464.zip
widgets cont.
Diffstat (limited to 'Zotlabs/Widget/Tagcloud_wall.php')
-rw-r--r--Zotlabs/Widget/Tagcloud_wall.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Tagcloud_wall.php b/Zotlabs/Widget/Tagcloud_wall.php
new file mode 100644
index 000000000..7cff6ce09
--- /dev/null
+++ b/Zotlabs/Widget/Tagcloud_wall.php
@@ -0,0 +1,20 @@
+<?php
+
+namespace Zotlabs\Widget;
+
+class Tagcloud_wall {
+
+ function widget($arr) {
+
+ if((! \App::$profile['profile_uid']) || (! \App::$profile['channel_hash']))
+ return '';
+ if(! perm_is_allowed(\App::$profile['profile_uid'], get_observer_hash(), 'view_stream'))
+ return '';
+
+ $limit = ((array_key_exists('limit', $arr)) ? intval($arr['limit']) : 50);
+ if(feature_enabled(\App::$profile['profile_uid'], 'tagadelic'))
+ return wtagblock(\App::$profile['profile_uid'], $limit, '', \App::$profile['channel_hash'], 'wall');
+
+ return '';
+ }
+}