2017-03-16 04:26:28 +00:00
|
|
|
<?php
|
|
|
|
|
2022-02-16 04:08:28 +00:00
|
|
|
namespace Code\Widget;
|
2017-03-16 04:26:28 +00:00
|
|
|
|
2022-02-16 04:08:28 +00:00
|
|
|
use Code\Render\Theme;
|
2022-02-12 20:43:29 +00:00
|
|
|
|
|
|
|
|
2022-10-23 21:18:44 +00:00
|
|
|
class Chatroom_members implements WidgetInterface
|
2021-12-02 23:02:31 +00:00
|
|
|
{
|
2017-03-16 04:26:28 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
// The actual contents are filled in via AJAX
|
2017-03-16 04:26:28 +00:00
|
|
|
|
2022-10-24 03:39:49 +00:00
|
|
|
public function widget(array $arguments): string
|
2021-12-02 23:02:31 +00:00
|
|
|
{
|
2022-10-23 21:18:44 +00:00
|
|
|
return replace_macros(Theme::get_template('chatroom_members.tpl'), [
|
2021-12-02 23:02:31 +00:00
|
|
|
'$header' => t('Chat Members')
|
2022-10-23 21:18:44 +00:00
|
|
|
]);
|
2021-12-02 23:02:31 +00:00
|
|
|
}
|
2017-03-16 04:26:28 +00:00
|
|
|
}
|