3 function friends_widget_name() {
4 return "Shows profile contacts";
6 function friends_widget_help() {
10 function friends_widget_args(){
14 function friends_widget_content(&$a, $conf){
16 $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `user`.* FROM `profile`
17 LEFT JOIN `user` ON `profile`.`uid` = `user`.`uid`
18 WHERE `user`.`uid` = %s AND `profile`.`is-default` = 1 LIMIT 1",
21 if(!count($r)) return;
26 .f9k_widget .contact-block-div { display: block !important; float: left!important; width: 50px!important; height: 50px!important; margin: 2px!important;}
27 .f9k_widget #contact-block-end { clear: left; }
29 $o .= _abs_url(contact_block());
30 $o .= "<a href='".$a->get_baseurl().'/profile/'.$a->profile['nickname']."'>". t('Connect on Friendika!') ."</a>";