diff options
author | Mario <mario@mariovavti.com> | 2020-05-14 09:27:39 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-05-14 09:27:39 +0000 |
commit | 4270e17bc4ffedd35ddc5e00f7037162e9b95725 (patch) | |
tree | d53d7ed6f8d0ef2f13efb742f5ba19c5dc1ad4a1 /Zotlabs/Widget | |
parent | 1329662edcfc9650982a770247fb52d3ab9c55a3 (diff) | |
download | volse-hubzilla-4270e17bc4ffedd35ddc5e00f7037162e9b95725.tar.gz volse-hubzilla-4270e17bc4ffedd35ddc5e00f7037162e9b95725.tar.bz2 volse-hubzilla-4270e17bc4ffedd35ddc5e00f7037162e9b95725.zip |
implement notifications for direct messages
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r-- | Zotlabs/Widget/Notifications.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Notifications.php b/Zotlabs/Widget/Notifications.php index 077949b4e..e2a543f80 100644 --- a/Zotlabs/Widget/Notifications.php +++ b/Zotlabs/Widget/Notifications.php @@ -28,6 +28,7 @@ class Notifications { ] ]; + $notifications[] = [ 'type' => 'home', 'icon' => 'home', @@ -48,6 +49,25 @@ class Notifications { ]; $notifications[] = [ + 'type' => 'dm', + 'icon' => 'envelope', + 'severity' => 'danger', + 'label' => t('New Direct Messages'), + 'title' => t('New Direct Messages Notifications'), + 'viewall' => [ + 'url' => 'network/?dm=1', + 'label' => t('View your direct messages') + ], + 'markall' => [ + 'label' => t('Mark all notifications read') + ], + 'filter' => [ + 'posts_label' => t('Show new posts only'), + 'name_label' => t('Filter by name or address') + ] + ]; + + $notifications[] = [ 'type' => 'mail', 'icon' => 'envelope', 'severity' => 'danger', |