3 use Friendica\Content\Text\HTML;
4 use Friendica\Core\L10n;
6 function friends_widget_name()
8 return "Shows profile contacts";
11 function friends_widget_help()
16 function friends_widget_args()
21 function friends_widget_size()
23 return ['100%', '200px'];
27 function friends_widget_content(&$a, $conf)
29 $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `user`.* FROM `profile`
30 LEFT JOIN `user` ON `profile`.`uid` = `user`.`uid`
31 WHERE `user`.`uid` = %s AND `profile`.`is-default` = 1 LIMIT 1",
43 body {font-size: 0.8em; margin: 0px; padding: 0px;}
44 #contact-block { overflow: hidden; height: auto; }
45 .contact-block-h4 { float: left; margin: 0px; }
46 .allcontact-link { float: right; margin: 0px; }
47 .contact-block-content { clear:both; }
48 .contact-block-div { display: block !important; float: left!important; width: 50px!important; height: 50px!important; margin: 2px!important;}
51 $o .= _abs_url(HTML::contactBlock());
52 $o .= "<a href='".$a->getBaseURL().'/profile/'.$a->profile['nickname']."'>". L10n::t('Connect on Friendica!') ."</a>";