mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-21 08:15:18 +00:00
33 lines
646 B
PHP
33 lines
646 B
PHP
<?php
|
|
|
|
namespace Code\Widget;
|
|
|
|
use Code\Render\Theme;
|
|
|
|
|
|
class Hq_controls
|
|
{
|
|
|
|
public function widget($arr)
|
|
{
|
|
|
|
if (!local_channel()) {
|
|
return;
|
|
}
|
|
|
|
return replace_macros(
|
|
Theme::get_template('hq_controls.tpl'),
|
|
[
|
|
'$title' => t('HQ Control Panel'),
|
|
'$menu' => [
|
|
'create' => [
|
|
'label' => t('Create a new post'),
|
|
'id' => 'jot-toggle',
|
|
'href' => '#',
|
|
'class' => ''
|
|
]
|
|
]
|
|
]
|
|
);
|
|
}
|
|
}
|