aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-12 18:55:28 -0700
committerFriendika <info@friendika.com>2011-05-12 18:55:28 -0700
commit8674d01432c54bcbf8a7be0461a3c52d898bc884 (patch)
treec2e79f9d6169a9316dec37cc79d899c5079227bb
parent75c4e6e9a6d2230a467c6ffc37c66ae971b498b6 (diff)
downloadvolse-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
-rw-r--r--boot.php21
-rw-r--r--view/theme/dispy/style.css1
-rw-r--r--view/theme/duepuntozero/style.css6
-rw-r--r--view/theme/loozah/style.css6
4 files changed, 28 insertions, 6 deletions
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 '<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";
+ }
}}
diff --git a/view/theme/dispy/style.css b/view/theme/dispy/style.css
index 17b3a61b6..a0f860494 100644
--- a/view/theme/dispy/style.css
+++ b/view/theme/dispy/style.css
@@ -223,6 +223,7 @@ aside #viewcontacts { text-align: right;}
* contacts block
*/
.contact-block-div { width: 50px; height: 50px; float: left; }
+.contact-block-textdiv { width: 150px; height: 34px; float: left; }
#contact-block-end { clear: both; }
/**
diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css
index 4c9f389e2..de5c77299 100644
--- a/view/theme/duepuntozero/style.css
+++ b/view/theme/duepuntozero/style.css
@@ -2054,6 +2054,12 @@ a.mail-list-link {
width: 52px;
height: 52px;
}
+.contact-block-textdiv {
+ float: left;
+ width: 150px;
+ height: 34px;
+}
+
#contact-block-end {
clear: both;
}
diff --git a/view/theme/loozah/style.css b/view/theme/loozah/style.css
index f38b6e6d4..9404a632c 100644
--- a/view/theme/loozah/style.css
+++ b/view/theme/loozah/style.css
@@ -2087,6 +2087,12 @@ a.mail-list-link {
width: 52px;
height: 52px;
}
+.contact-block-textdiv {
+ float: left;
+ width: 150px;
+ height: 34px;
+}
+
#contact-block-end {
clear: both;
}