]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
change formatting of search output
authorEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 22:00:45 +0000 (18:00 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 22:00:45 +0000 (18:00 -0400)
darcs-hash:20080709220045-84dde-b81ebf4e5f9c8c0eef17e785de28d93e2987979f.gz

actions/peoplesearch.php

index 8f071e715dd7a86cc565f124a6080bacbf513984..8e9193a6e86d6fd229a6a3f01ddf5d5c991bfa83 100644 (file)
@@ -111,21 +111,31 @@ class PeoplesearchAction extends Action {
                                                                        ($profile->fullname) ? $profile->fullname :
                                                                        $profile->nickname));
                common_element_end('a');
+               common_element_start('p');
                common_element_start('a', array('href' => $profile->profileurl,
                                                                                'class' => 'nickname'));
                common_raw($this->highlight($profile->nickname, $terms));
                common_element_end('a');
                if ($profile->fullname) {
-                       common_element_start('p', 'fullname');
+                       common_text(' | ');
+                       common_element_start('span', 'fullname');
                        common_raw($this->highlight($profile->fullname, $terms));
-                       common_element_end('p');
+                       common_element_end('span');
                }
                if ($profile->location) {
-                       common_element_start('p', 'location');
+                       common_text(' | ');
+                       common_element_start('span', 'location');
                        common_raw($this->highlight($profile->location, $terms));
+                       common_element_end('span');
+               }
+               common_element_end('p');
+               if ($profile->homepage) {
+                       common_element_start('p', 'website');
+                       common_element('a', array('href' => $profile->homepage),
+                                                  $profile->homepage);
                        common_element_end('p');
                }
-               if ($profile->location) {
+               if ($profile->bio) {
                        common_element_start('p', 'bio');
                        common_raw($this->highlight($profile->bio, $terms));
                        common_element_end('p');