diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-09 18:00:45 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-09 18:00:45 -0400 |
commit | 0506a7265d72c1133b4585e68c9168ff0a6a3336 (patch) | |
tree | 70dd5e3d49414ca8b57ae42b83e4c9157a034549 | |
parent | 9b50dcc3844c7b636046b80c2b1f72b69afb7308 (diff) |
change formatting of search output
darcs-hash:20080709220045-84dde-b81ebf4e5f9c8c0eef17e785de28d93e2987979f.gz
-rw-r--r-- | actions/peoplesearch.php | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/actions/peoplesearch.php b/actions/peoplesearch.php index 8f071e715..8e9193a6e 100644 --- a/actions/peoplesearch.php +++ b/actions/peoplesearch.php @@ -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'); |