3 use Friendica\Core\L10n;
5 function friends_widget_name()
7 return "Shows profile contacts";
10 function friends_widget_help()
15 function friends_widget_args()
20 function friends_widget_size()
22 return ['100%', '200px'];
26 function friends_widget_content(&$a, $conf)
28 $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `user`.* FROM `profile`
29 LEFT JOIN `user` ON `profile`.`uid` = `user`.`uid`
30 WHERE `user`.`uid` = %s AND `profile`.`is-default` = 1 LIMIT 1",
42 body {font-size: 0.8em; margin: 0px; padding: 0px;}
43 #contact-block { overflow: hidden; height: auto; }
44 .contact-block-h4 { float: left; margin: 0px; }
45 .allcontact-link { float: right; margin: 0px; }
46 .contact-block-content { clear:both; }
47 .contact-block-div { display: block !important; float: left!important; width: 50px!important; height: 50px!important; margin: 2px!important;}
50 $o .= _abs_url(contact_block());
51 $o .= "<a href='".$a->get_baseurl().'/profile/'.$a->profile['nickname']."'>". L10n::t('Connect on Friendica!') ."</a>";