aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Hq_controls.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-06-17 07:33:46 +0000
committerMario <mario@mariovavti.com>2021-06-17 07:33:46 +0000
commitfa076efd3bd953863f01bcb474ddb4fc928507e7 (patch)
treed1a6f9e97ac919f91f7658aa16132565deae014a /Zotlabs/Widget/Hq_controls.php
parent9b71c090c5c8d051e6997c4a39241bbbd5cb6cee (diff)
parentb55676d08914d58927b5503a1bfa283397cd6d44 (diff)
downloadvolse-hubzilla-fa076efd3bd953863f01bcb474ddb4fc928507e7.tar.gz
volse-hubzilla-fa076efd3bd953863f01bcb474ddb4fc928507e7.tar.bz2
volse-hubzilla-fa076efd3bd953863f01bcb474ddb4fc928507e7.zip
Merge branch 'dm' into 'dev'
New landing page HQ with separate views for direct messages, public/limited messages and starred messages if the feature is enabled See merge request hubzilla/core!1969
Diffstat (limited to 'Zotlabs/Widget/Hq_controls.php')
-rw-r--r--Zotlabs/Widget/Hq_controls.php33
1 files changed, 24 insertions, 9 deletions
diff --git a/Zotlabs/Widget/Hq_controls.php b/Zotlabs/Widget/Hq_controls.php
index 0caa54a1a..781e2a0bd 100644
--- a/Zotlabs/Widget/Hq_controls.php
+++ b/Zotlabs/Widget/Hq_controls.php
@@ -9,17 +9,32 @@ class Hq_controls {
if (! local_channel())
return;
+ $entries = [
+ 'toggle_editor' => [
+ 'label' => t('Toggle post editor'),
+ 'id' => 'jot-toggle',
+ 'href' => '#',
+ 'class' => 'btn btn-outline-primary',
+ 'type' => 'button',
+ 'icon' => 'pencil',
+ 'extra' => 'data-toggle="button"'
+ ]
+ ];
+
+
+ $entries['toggle_notes'] = [
+ 'label' => t('Toggle personal notes'),
+ 'id' => 'notes-toggle',
+ 'href' => '#',
+ 'class' => 'btn btn-outline-primary',
+ 'type' => 'button',
+ 'icon' => 'sticky-note-o',
+ 'extra' => 'data-toggle="button"'
+ ];
+
return replace_macros(get_markup_template('hq_controls.tpl'),
[
- '$title' => t('HQ Control Panel'),
- '$menu' => [
- 'create' => [
- 'label' => t('Create a new post'),
- 'id' => 'jot-toggle',
- 'href' => '#',
- 'class' => ''
- ]
- ]
+ '$entries' => $entries
]
);
}