provide textmode "micropro" (small profile display but without the photo) for better scalability of group selection tools when confronted with huge numbers of contacts
This commit is contained in:
parent
75c4e6e9a6
commit
8674d01432
21
boot.php
21
boot.php
|
@ -2056,7 +2056,7 @@ function contact_block() {
|
||||||
}}
|
}}
|
||||||
|
|
||||||
if(! function_exists('micropro')) {
|
if(! function_exists('micropro')) {
|
||||||
function micropro($contact, $redirect = false, $class = '') {
|
function micropro($contact, $redirect = false, $class = '', $textmode = false) {
|
||||||
|
|
||||||
if($class)
|
if($class)
|
||||||
$class = ' ' . $class;
|
$class = ' ' . $class;
|
||||||
|
@ -2075,11 +2075,20 @@ function micropro($contact, $redirect = false, $class = '') {
|
||||||
$click = ((x($contact,'click')) ? ' onclick="' . $contact['click'] . '" ' : '');
|
$click = ((x($contact,'click')) ? ' onclick="' . $contact['click'] . '" ' : '');
|
||||||
if($click)
|
if($click)
|
||||||
$url = '';
|
$url = '';
|
||||||
return '<div class="contact-block-div' . $class . '"><a class="contact-block-link' . $class . $sparkle
|
if($textmode) {
|
||||||
. (($click) ? ' fakelink' : '') . '" '
|
return '<div class="contact-block-textdiv' . $class . '"><a class="contact-block-link' . $class . $sparkle
|
||||||
. (($url) ? ' href="' . $url . '"' : '') . $click . ' ><img class="contact-block-img' . $class . $sparkle . '" src="'
|
. (($click) ? ' fakelink' : '') . '" '
|
||||||
. $contact['micro'] . '" title="' . $contact['name'] . ' [' . $contact['url'] . ']" alt="' . $contact['name']
|
. (($url) ? ' href="' . $url . '"' : '') . $click
|
||||||
. '" /></a></div>' . "\r\n";
|
. '" title="' . $contact['name'] . ' [' . $contact['url'] . ']" alt="' . $contact['name']
|
||||||
|
. '" >'. $contact['name'] . '</a></div>' . "\r\n";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return '<div class="contact-block-div' . $class . '"><a class="contact-block-link' . $class . $sparkle
|
||||||
|
. (($click) ? ' fakelink' : '') . '" '
|
||||||
|
. (($url) ? ' href="' . $url . '"' : '') . $click . ' ><img class="contact-block-img' . $class . $sparkle . '" src="'
|
||||||
|
. $contact['micro'] . '" title="' . $contact['name'] . ' [' . $contact['url'] . ']" alt="' . $contact['name']
|
||||||
|
. '" /></a></div>' . "\r\n";
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -223,6 +223,7 @@ aside #viewcontacts { text-align: right;}
|
||||||
* contacts block
|
* contacts block
|
||||||
*/
|
*/
|
||||||
.contact-block-div { width: 50px; height: 50px; float: left; }
|
.contact-block-div { width: 50px; height: 50px; float: left; }
|
||||||
|
.contact-block-textdiv { width: 150px; height: 34px; float: left; }
|
||||||
#contact-block-end { clear: both; }
|
#contact-block-end { clear: both; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2054,6 +2054,12 @@ a.mail-list-link {
|
||||||
width: 52px;
|
width: 52px;
|
||||||
height: 52px;
|
height: 52px;
|
||||||
}
|
}
|
||||||
|
.contact-block-textdiv {
|
||||||
|
float: left;
|
||||||
|
width: 150px;
|
||||||
|
height: 34px;
|
||||||
|
}
|
||||||
|
|
||||||
#contact-block-end {
|
#contact-block-end {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2087,6 +2087,12 @@ a.mail-list-link {
|
||||||
width: 52px;
|
width: 52px;
|
||||||
height: 52px;
|
height: 52px;
|
||||||
}
|
}
|
||||||
|
.contact-block-textdiv {
|
||||||
|
float: left;
|
||||||
|
width: 150px;
|
||||||
|
height: 34px;
|
||||||
|
}
|
||||||
|
|
||||||
#contact-block-end {
|
#contact-block-end {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user