]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If user has fn, then it will not link to their own profile with @class
authorsarven <csarven@plantard.controlezvous.ca>
Tue, 20 Jan 2009 23:50:52 +0000 (23:50 +0000)
committersarven <csarven@plantard.controlezvous.ca>
Tue, 20 Jan 2009 23:50:52 +0000 (23:50 +0000)
'fn'. Only put @class 'fn' on the anchor if there is no fn.

actions/showstream.php
lib/profilelist.php

index d550ec2951533aaff95d15626a0b20d76c60a6c4..3fe71576d76ffc83e7fd082f507a7601e98e4a62 100644 (file)
@@ -243,9 +243,10 @@ class ShowstreamAction extends Action
         $this->elementStart('dl', 'user_nickname');
         $this->element('dt', null, _('Nickname'));
         $this->elementStart('dd');
-            $this->element('a', array('href' => $this->profile->profileurl,
-                                      'rel' => 'me', 'class' => 'nickname url uid'),
-                           $this->profile->nickname);
+        $hasFN = ($this->profile->fullname) ? 'nickname url uid' : 'fn nickname url uid';
+        $this->element('a', array('href' => $this->profile->profileurl,
+                                  'rel' => 'me', 'class' => $hasFN),
+                            $this->profile->nickname);
         $this->elementEnd('dd');
         $this->elementEnd('dl');
 
index 24b3573857935c52e8db2f9d5edbfc36fdd7c9a5..973df7bb6832672bfaacd258bfd2d91f2feb6e5d 100644 (file)
@@ -87,7 +87,7 @@ class ProfileList extends Widget
 
     function showProfile()
     {
-        $this->out->elementStart('li', array('class' => 'profile vcard',
+        $this->out->elementStart('li', array('class' => 'profile',
                                              'id' => 'profile-' . $this->profile->id));
 
         $user = common_current_user();