From 85647719a3ed78a9b2c88e1c33f2f3bd995df03e Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Fri, 6 Nov 2009 12:51:28 +0100 Subject: Updated styles for profile list re: commit 3c4ac05cde5a97594d3b0fa7e3f5dbbaf45e4c64 --- lib/profilelist.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/profilelist.php') diff --git a/lib/profilelist.php b/lib/profilelist.php index 5f536e0f4..697713f8f 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -182,7 +182,8 @@ class ProfileListItem extends Widget { $avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE); $this->out->elementStart('a', array('href' => $this->profile->profileurl, - 'class' => 'url')); + 'class' => 'url', + 'rel' => 'contact')); $this->out->element('img', array('src' => ($avatar) ? $avatar->displayUrl() : Avatar::defaultImage(AVATAR_STREAM_SIZE), 'class' => 'photo avatar', 'width' => AVATAR_STREAM_SIZE, -- cgit v1.2.3-54-g00ecf From 4eea7f55ef9cfb856516f1667b88abfce277878b Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Fri, 6 Nov 2009 13:32:04 +0100 Subject: Check if it is empty instead of '' --- lib/profilelist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/profilelist.php') diff --git a/lib/profilelist.php b/lib/profilelist.php index 697713f8f..bbb722701 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -191,7 +191,7 @@ class ProfileListItem extends Widget 'alt' => ($this->profile->fullname) ? $this->profile->fullname : $this->profile->nickname)); - $hasFN = ($this->profile->fullname !== '') ? 'nickname' : 'fn nickname'; + $hasFN = (!empty($this->profile->fullname)) ? 'nickname' : 'fn nickname'; $this->out->elementStart('span', $hasFN); $this->out->raw($this->highlight($this->profile->nickname)); $this->out->elementEnd('span'); -- cgit v1.2.3-54-g00ecf