aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-19 17:35:57 -0700
committerzotlabs <mike@macgirvin.com>2017-09-19 17:35:57 -0700
commit72a19a14aff7a13a8c1fb10e773784643f68d234 (patch)
tree9423be2e752b9692a42235e87c0a83c47c69cada /Zotlabs/Widget
parentbced63e8237329ddaa6a5271589cbba50bd31448 (diff)
downloadvolse-hubzilla-72a19a14aff7a13a8c1fb10e773784643f68d234.tar.gz
volse-hubzilla-72a19a14aff7a13a8c1fb10e773784643f68d234.tar.bz2
volse-hubzilla-72a19a14aff7a13a8c1fb10e773784643f68d234.zip
turn common friends into a widget
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Common_friends.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Common_friends.php b/Zotlabs/Widget/Common_friends.php
new file mode 100644
index 000000000..a67b9312c
--- /dev/null
+++ b/Zotlabs/Widget/Common_friends.php
@@ -0,0 +1,19 @@
+<?php
+
+namespace Zotlabs\Widget;
+
+require_once('include/contact_widgets.php');
+
+class Common_friends {
+
+ function widget($arr) {
+
+ if((! \App::$profile['profile_uid'])
+ || (! perm_is_allowed(\App::$profile['profile_uid'],get_observer_hash(),'view_contacts'))) {
+ return '';
+ }
+
+ return common_friends_visitor_widget(\App::$profile['profile_uid']);
+
+ }
+}