2017-03-16 01:31:34 +00:00
|
|
|
<?php
|
|
|
|
|
2022-02-16 04:08:28 +00:00
|
|
|
namespace Code\Widget;
|
2017-03-16 01:31:34 +00:00
|
|
|
|
2019-04-18 02:19:49 +00:00
|
|
|
use App;
|
2022-02-16 04:08:28 +00:00
|
|
|
use Code\Lib\Libprofile;
|
2017-03-16 01:31:34 +00:00
|
|
|
|
2022-10-23 21:18:44 +00:00
|
|
|
class Profile implements WidgetInterface
|
2021-12-02 23:02:31 +00:00
|
|
|
{
|
2017-03-16 01:31:34 +00:00
|
|
|
|
2022-10-23 21:18:44 +00:00
|
|
|
public function widget(array $args): string
|
2021-12-02 23:02:31 +00:00
|
|
|
{
|
2019-04-18 02:19:49 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
if (!App::$profile['profile_uid']) {
|
|
|
|
return EMPTY_STR;
|
|
|
|
}
|
|
|
|
|
2022-06-01 21:18:51 +00:00
|
|
|
return Libprofile::widget(App::$profile, false, true);
|
2021-12-02 23:02:31 +00:00
|
|
|
}
|
2021-12-03 03:01:39 +00:00
|
|
|
}
|