diff options
author | Friendika <info@friendika.com> | 2011-05-12 18:55:28 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-12 18:55:28 -0700 |
commit | 8674d01432c54bcbf8a7be0461a3c52d898bc884 (patch) | |
tree | c2e79f9d6169a9316dec37cc79d899c5079227bb /boot.php | |
parent | 75c4e6e9a6d2230a467c6ffc37c66ae971b498b6 (diff) | |
download | volse-hubzilla-8674d01432c54bcbf8a7be0461a3c52d898bc884.tar.gz volse-hubzilla-8674d01432c54bcbf8a7be0461a3c52d898bc884.tar.bz2 volse-hubzilla-8674d01432c54bcbf8a7be0461a3c52d898bc884.zip |
provide textmode "micropro" (small profile display but without the photo) for better scalability of group selection tools when confronted with huge numbers of contacts
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -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 '<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"; + if($textmode) { + return '<div class="contact-block-textdiv' . $class . '"><a class="contact-block-link' . $class . $sparkle + . (($click) ? ' fakelink' : '') . '" ' + . (($url) ? ' href="' . $url . '"' : '') . $click + . '" 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"; + } }} |