3 function friends_widget_name() {
4 return "Shows profile contacts";
6 function friends_widget_help() {
10 function friends_widget_args(){
14 function friends_widget_size(){
15 return Array('100%','200px');
19 function friends_widget_content(&$a, $conf){
21 $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `user`.* FROM `profile`
22 LEFT JOIN `user` ON `profile`.`uid` = `user`.`uid`
23 WHERE `user`.`uid` = %s AND `profile`.`is-default` = 1 LIMIT 1",
26 if(!count($r)) return;
31 body {font-size: 0.8em; margin: 0px; padding: 0px;}
32 #contact-block { overflow: hidden; height: auto; }
33 .contact-block-h4 { float: left; margin: 0px; }
34 .allcontact-link { float: right; margin: 0px; }
35 .contact-block-content { clear:both; }
36 .contact-block-div { display: block !important; float: left!important; width: 50px!important; height: 50px!important; margin: 2px!important;}
39 $o .= _abs_url(contact_block());
40 $o .= "<a href='".$a->get_baseurl().'/profile/'.$a->profile['nickname']."'>". t('Connect on Friendica!') ."</a>";