diff --git a/boot.php b/boot.php
index eb52fb2a25..5aeb9ea949 100644
--- a/boot.php
+++ b/boot.php
@@ -1369,7 +1369,7 @@ function like_puller($a,$item,&$arr,$mode) {
return;
}}
-
+if(! function_exists('get_mentions')) {
function get_mentions($item) {
$o = '';
if(! strlen($item['tag']))
@@ -1382,4 +1382,48 @@ function get_mentions($item) {
$o .= "\t\t" . '' . "\r\n";
}
return $o;
-}
\ No newline at end of file
+}}
+
+if(! function_exists('contact_block')) {
+function contact_block() {
+ $o = '';
+ $a = get_app();
+ if((! is_array($a->profile)) || ($a->profile['hide-friends']))
+ return $o;
+ $r = q("SELECT COUNT(*) AS `total` FROM `contact` WHERE `uid` = %d AND `self` = 0 ",
+ intval($a->profile['uid'])
+ );
+ if(count($r)) {
+ $total = intval($r[0]['total']);
+ }
+ if(! $total) {
+ $o .= '
';
+ return $o;
+ }
+ $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 0 ORDER BY RAND() LIMIT 12",
+ intval($a->profile['uid'])
+ );
+ if(count($r)) {
+ $o .= '
diff --git a/view/theme/default/style.css b/view/theme/default/style.css
index fd51e1d53c..42da72d6a6 100644
--- a/view/theme/default/style.css
+++ b/view/theme/default/style.css
@@ -616,6 +616,9 @@ input#dfrn-url {
#view-contact-end {
clear: both;
}
+#viewcontacts {
+ margin-top: 15px;
+}
#profile-edit-default-desc {
color: #FF0000;
border: 1px solid #FF8888;
@@ -1780,3 +1783,15 @@ a.mail-list-link:hover {
cursor: url('lock.cur'), pointer;
/* cursor: pointer !important; */
}
+
+.contact-block-div {
+ float: left;
+ width: 52px;
+ height: 52px;
+}
+#contact-block-end {
+ clear: both;
+}
+.contact-block-link {
+ float: left;
+}
\ No newline at end of file