X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fping.php;h=967555881c0c1f5f535163fb1657b8ea9349a642;hb=39b37281a78b58b50503056e69b2aaa9885257b0;hp=30b5785aeca7d2df4e8524c56c67299e30775627;hpb=c700a6fb37c7acc17a395a64dfaca5db275ff537;p=friendica.git diff --git a/mod/ping.php b/mod/ping.php index 30b5785aec..967555881c 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -1,6 +1,7 @@ ' . $sql . ''; $network_group = q($sql, intval(local_user()), intval(local_user())); #echo ''; + + if(intval(feature_enabled(local_user(),'forumlist_widget'))) { + $forums_unseen = forums_count_unseen(); + } } $intros1 = q("SELECT `intro`.`id`, `intro`.`datetime`, @@ -219,6 +226,7 @@ function ping_init(&$a) { $network $home\r\n"; if ($register!=0) echo "$register"; + if ( count($network_group) ) { echo ''; foreach ($network_group as $it) { @@ -227,6 +235,14 @@ function ping_init(&$a) { echo ""; } + if ( count($forums_unseen) ) { + echo ''; + foreach ($forums_unseen as $it) { + echo '' . $it['count'] . ""; + } + echo ""; + } + echo "$all_events $all_events_today $events