aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Catcloud_wall.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-15 20:56:12 -0700
committerMario Vavti <mario@mariovavti.com>2017-03-29 11:50:52 +0200
commit6e101e458268c0f9b7bf461cea3c31c37b5e3791 (patch)
tree2a641a76607431a2661b0d3b6c46babbd34b6c0d /Zotlabs/Widget/Catcloud_wall.php
parentf60309efa12be3b8d4f5b2c565ebdf7f051a987d (diff)
downloadvolse-hubzilla-6e101e458268c0f9b7bf461cea3c31c37b5e3791.tar.gz
volse-hubzilla-6e101e458268c0f9b7bf461cea3c31c37b5e3791.tar.bz2
volse-hubzilla-6e101e458268c0f9b7bf461cea3c31c37b5e3791.zip
widgets cont.
Diffstat (limited to 'Zotlabs/Widget/Catcloud_wall.php')
-rw-r--r--Zotlabs/Widget/Catcloud_wall.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Catcloud_wall.php b/Zotlabs/Widget/Catcloud_wall.php
new file mode 100644
index 000000000..3795987cc
--- /dev/null
+++ b/Zotlabs/Widget/Catcloud_wall.php
@@ -0,0 +1,19 @@
+<?php
+
+namespace Zotlabs\Widget;
+
+class Catcloud_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);
+
+ return catblock(\App::$profile['profile_uid'], $limit, '', \App::$profile['channel_hash'], 'wall');
+ }
+
+}