3 use Friendica\Content\Widget\ContactBlock;
5 use Friendica\Model\User;
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 $owner = User::getOwnerDataById($conf['uid']);
37 body {font-size: 0.8em; margin: 0px; padding: 0px;}
38 #contact-block { overflow: hidden; height: auto; }
39 .contact-block-h4 { float: left; margin: 0px; }
40 .allcontact-link { float: right; margin: 0px; }
41 .contact-block-content { clear:both; }
42 .contact-block-div { display: block !important; float: left!important; width: 50px!important; height: 50px!important; margin: 2px!important;}
45 $o .= _abs_url(ContactBlock::getHTML($owner));
46 $o .= "<a href='".DI::baseUrl()->get().'/profile/'.$owner['nickname']."'>". DI::l10n()->t('Connect on Friendica!') ."</a>";