]> git.mxchange.org Git - friendica.git/commitdiff
provide textmode "micropro" (small profile display but without the photo) for better...
authorFriendika <info@friendika.com>
Fri, 13 May 2011 01:55:28 +0000 (18:55 -0700)
committerFriendika <info@friendika.com>
Fri, 13 May 2011 01:55:28 +0000 (18:55 -0700)
boot.php
view/theme/dispy/style.css
view/theme/duepuntozero/style.css
view/theme/loozah/style.css

index fbf7df1e2529cb7f86988f04e0c70f76c00652ad..94ed4d19ff02abde2d6b7171b9b81e49a739b0b3 100644 (file)
--- 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";
+       }
 }}
 
 
index 17b3a61b67b241f706e50dc4871ff31b69b3fa82..a0f860494d2e090af7503e675a5beb48df0349fd 100644 (file)
@@ -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; }
 
 /**
index 4c9f389e2c9ada18a30000811d45ab5dd2f2cdb4..de5c7729920ab551902b1c5b2845f91bd638a930 100644 (file)
@@ -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;
 }
index f38b6e6d4de46a97d07c7915b0e5f8d04a90c506..9404a632ccdbf2c0144884a87210c31ebcca5397 100644 (file)
@@ -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;
 }