aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Widget/Common_friends.php
blob: 6024f82f5917c82c199de769e4f4276c1314d42d (plain) (tree)
1
2
3
4
5
6
7
8

     

                           
                                                      


                                               







                                            
                                                    







                                                                                                                    
<?php

/**
 *   * Name: Common friends
 *   * Description: Display common friends to visitors
 *   * Requires: channel, articles, cards, wiki
 */

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']);

	}
}