aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-06-01 23:22:52 +0200
committerMario Vavti <mario@mariovavti.com>2018-06-01 23:22:52 +0200
commit53efd4e470f10e123209ed63b90213b20a87e011 (patch)
tree6a65af68db1553329313b293af51ddb7d72e14b3 /Zotlabs/Widget
parent22a9e4c9a9e4a48f644deed0432dc05a7e5b189c (diff)
downloadvolse-hubzilla-53efd4e470f10e123209ed63b90213b20a87e011.tar.gz
volse-hubzilla-53efd4e470f10e123209ed63b90213b20a87e011.tar.bz2
volse-hubzilla-53efd4e470f10e123209ed63b90213b20a87e011.zip
unread forum notifications - wip/unfinished
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Forums.php2
-rw-r--r--Zotlabs/Widget/Notifications.php15
2 files changed, 15 insertions, 2 deletions
diff --git a/Zotlabs/Widget/Forums.php b/Zotlabs/Widget/Forums.php
index f3141031d..7415c0f0a 100644
--- a/Zotlabs/Widget/Forums.php
+++ b/Zotlabs/Widget/Forums.php
@@ -27,8 +27,6 @@ class Forums {
$x1 = q("select xchan from abconfig where chan = %d and cat = 'their_perms' and k = 'send_stream' and v = '0'",
intval(local_channel())
);
-//print_r($x1);killme();
-
if($x1) {
$xc = ids_to_querystr($x1,'xchan',true);
diff --git a/Zotlabs/Widget/Notifications.php b/Zotlabs/Widget/Notifications.php
index fc78a2a39..1be467ba6 100644
--- a/Zotlabs/Widget/Notifications.php
+++ b/Zotlabs/Widget/Notifications.php
@@ -111,6 +111,21 @@ class Notifications {
'label' => t('Mark all notices seen')
]
];
+
+ $notifications[] = [
+ 'type' => 'forums',
+ 'icon' => 'comments-o',
+ 'severity' => 'secondary',
+ 'label' => t('Forums'),
+ 'title' => t('Forums'),
+ 'viewall' => [
+ //'url' => 'notifications/system',
+ //'label' => t('View all notices')
+ ],
+ 'markall' => [
+ //'label' => t('Mark all notices seen')
+ ]
+ ];
}
if(local_channel() && is_site_admin()) {