3 use Friendica\Content\Text\HTML;
4 use Friendica\Core\L10n;
7 function friends_widget_name()
9 return "Shows profile contacts";
12 function friends_widget_help()
17 function friends_widget_args()
22 function friends_widget_size()
24 return ['100%', '200px'];
28 function friends_widget_content(&$a, $conf)
30 $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `user`.* FROM `profile`
31 LEFT JOIN `user` ON `profile`.`uid` = `user`.`uid`
32 WHERE `user`.`uid` = %s LIMIT 1",
44 body {font-size: 0.8em; margin: 0px; padding: 0px;}
45 #contact-block { overflow: hidden; height: auto; }
46 .contact-block-h4 { float: left; margin: 0px; }
47 .allcontact-link { float: right; margin: 0px; }
48 .contact-block-content { clear:both; }
49 .contact-block-div { display: block !important; float: left!important; width: 50px!important; height: 50px!important; margin: 2px!important;}
52 $o .= _abs_url(HTML::contactBlock());
53 $o .= "<a href='".DI::baseUrl()->get().'/profile/'.$a->profile['nickname']."'>". DI::l10n()->t('Connect on Friendica!') ."</a>";