3 use Friendica\Content\Text\HTML;
6 function friendheader_widget_name()
8 return "Shows friends as a bar";
10 function friendheader_widget_help()
15 function friendheader_widget_args()
20 function friendheader_widget_size()
22 return ['780px','140px'];
26 function friendheader_widget_content(&$a, $conf)
28 $r = q("SELECT `profile`.* , `user`.* FROM `profile`
29 LEFT JOIN `user` ON `profile`.`uid` = `user`.`uid`
30 WHERE `user`.`uid` = %s LIMIT 1",
41 body {font-size: 0.8em; margin: 0px; padding: 0px;}
42 #contact-block { overflow: hidden; height: auto; }
43 .contact-block-h4 { float: left; margin: 0px; }
44 .allcontact-link { float: right; margin: 0px; }
45 .contact-block-content { clear:both; }
46 .contact-block-div { display: block !important; float: left!important; width: 50px!important; height: 50px!important; margin: 2px!important;}
49 $o .= _abs_url(HTML::contactBlock());
50 $o .= "<a href='".DI::baseUrl()->get().'/profile/'.$a->profile['nickname']."' target=new>". DI::l10n()->t('Get added to this list!') ."</a>";