Channel Apps
[Text] 

code: Home

<?php

/**
 *   * Name: Category cloud wall
 *   * Description: Display category links in a cloud restricted to wall posts
 *   * Requires: channel
 */

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);

        $VariableXY = (catblock(\App::$profile['profile_uid'], $limit, '', \App::$profile['channel_hash'], 'wall'));
    }

}



<p class="d-inline-flex gap-1">
  <a class="btn btn-primary collapsed" data-bs-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false" aria-controls="collapseExample">
    Kategorien
  </a>
</p>
<div class="collapse" id="collapseExample" style="">
  <div class="card card-body">
<?=$VariableXY;?>
  </div>
</div>