2017-11-24 14:12:40 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Zotlabs\Widget;
|
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
class Hq_controls
|
|
|
|
{
|
2017-11-24 14:12:40 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
public function widget($arr)
|
|
|
|
{
|
2017-11-24 14:12:40 +00:00
|
|
|
|
2021-12-03 03:01:39 +00:00
|
|
|
if (!local_channel()) {
|
2021-12-02 23:02:31 +00:00
|
|
|
return;
|
2021-12-03 03:01:39 +00:00
|
|
|
}
|
2017-11-24 14:12:40 +00:00
|
|
|
|
2021-12-03 03:01:39 +00:00
|
|
|
return replace_macros(
|
|
|
|
get_markup_template('hq_controls.tpl'),
|
2021-12-02 23:02:31 +00:00
|
|
|
[
|
|
|
|
'$title' => t('HQ Control Panel'),
|
|
|
|
'$menu' => [
|
|
|
|
'create' => [
|
|
|
|
'label' => t('Create a new post'),
|
|
|
|
'id' => 'jot-toggle',
|
|
|
|
'href' => '#',
|
|
|
|
'class' => ''
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
);
|
|
|
|
}
|
2017-11-24 14:12:40 +00:00
|
|
|
}
|