mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 07:35:14 +00:00
20 lines
322 B
PHP
20 lines
322 B
PHP
<?php
|
|
|
|
namespace Code\Widget;
|
|
|
|
use App;
|
|
use Code\Lib\Libprofile;
|
|
|
|
class Profile implements WidgetInterface
|
|
{
|
|
|
|
public function widget(array $args): string
|
|
{
|
|
|
|
if (!App::$profile['profile_uid']) {
|
|
return EMPTY_STR;
|
|
}
|
|
|
|
return Libprofile::widget(App::$profile, false, true);
|
|
}
|
|
}
|