From 8674d01432c54bcbf8a7be0461a3c52d898bc884 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 12 May 2011 18:55:28 -0700 Subject: provide textmode "micropro" (small profile display but without the photo) for better scalability of group selection tools when confronted with huge numbers of contacts --- boot.php | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index fbf7df1e2..94ed4d19f 100644 --- a/boot.php +++ b/boot.php @@ -2056,7 +2056,7 @@ function contact_block() { }} if(! function_exists('micropro')) { -function micropro($contact, $redirect = false, $class = '') { +function micropro($contact, $redirect = false, $class = '', $textmode = false) { if($class) $class = ' ' . $class; @@ -2075,11 +2075,20 @@ function micropro($contact, $redirect = false, $class = '') { $click = ((x($contact,'click')) ? ' onclick="' . $contact['click'] . '" ' : ''); if($click) $url = ''; - return '
' . $contact['name'] 
-		. '
' . "\r\n"; + if($textmode) { + return '
'. $contact['name'] . '
' . "\r\n"; + } + else { + return '
' . $contact['name'] 
+			. '
' . "\r\n"; + } }} -- cgit v1.2.3