aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-12 01:31:55 -0700
committerFriendika <info@friendika.com>2011-04-12 01:31:55 -0700
commit61915a524debe3db08a07f0adb86033ee894be28 (patch)
tree6eddd43d6e6994bf2571b868ba0f4db515eb520e /boot.php
parent6da84027afa18633ac5d5dacce99bb244be2aa7b (diff)
downloadvolse-hubzilla-61915a524debe3db08a07f0adb86033ee894be28.tar.gz
volse-hubzilla-61915a524debe3db08a07f0adb86033ee894be28.tar.bz2
volse-hubzilla-61915a524debe3db08a07f0adb86033ee894be28.zip
first cut at group chooser UI
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index 5fac9df5a..b11c90312 100644
--- a/boot.php
+++ b/boot.php
@@ -2076,10 +2076,14 @@ function micropro($contact, $redirect = false, $class = '') {
$sparkle = ' sparkle';
}
}
-
+ $click = ((x($contact,'click')) ? ' onclick="' . $contact['click'] . '" ' : '');
+ if($click)
+ $url = '';
return '<div class="contact-block-div' . $class . '"><a class="contact-block-link' . $class . $sparkle
- . '" href="' . $url . '" ><img class="contact-block-img' . $class . $sparkle . '" src="' . $contact['micro']
- . '" title="' . $contact['name'] . ' [' . $contact['url'] . ']" alt="' . $contact['name'] . '" /></a></div>' . "\r\n";
+ . (($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";
}}