streams/Code/Widget/Profile.php
2022-10-24 08:18:44 +11:00

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