2017-03-16 03:56:12 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Zotlabs\Widget;
|
|
|
|
|
2020-10-21 22:22:23 +00:00
|
|
|
use App;
|
|
|
|
|
2017-03-16 03:56:12 +00:00
|
|
|
class Catcloud_wall {
|
|
|
|
|
|
|
|
function widget($arr) {
|
|
|
|
|
2020-10-21 22:22:23 +00:00
|
|
|
if((! App::$profile['profile_uid']) || (! App::$profile['channel_hash']))
|
2017-03-16 03:56:12 +00:00
|
|
|
return '';
|
2020-10-21 22:22:23 +00:00
|
|
|
if(! perm_is_allowed(App::$profile['profile_uid'], get_observer_hash(), 'view_stream'))
|
2017-03-16 03:56:12 +00:00
|
|
|
return '';
|
|
|
|
|
|
|
|
$limit = ((array_key_exists('limit',$arr)) ? intval($arr['limit']) : 50);
|
|
|
|
|
2020-10-21 22:22:23 +00:00
|
|
|
return catblock(App::$profile['profile_uid'], $limit, '', App::$profile['channel_hash'], 'wall');
|
2017-03-16 03:56:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|