streams/Code/Widget/Hq_controls.php
2022-02-15 20:08:28 -08:00

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' => ''
]
]
]
);
}
}