]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
No nickname in profile listing
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 23 Jun 2014 16:59:32 +0000 (18:59 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 23 Jun 2014 16:59:32 +0000 (18:59 +0200)
lib/profilelist.php
lib/subscriptionlist.php
plugins/Directory/lib/sortablesubscriptionlist.php
theme/base/css/display.css

index 2aa477274972b45b3911cc1c012626259a79897a..d44efe164f0582c1c560440981ab8da2760f0972 100644 (file)
@@ -157,6 +157,10 @@ class ProfileListItem extends Widget
                 $this->out->elementEnd('a');
                 Event::handle('EndProfileListItemAvatar', array($this));
             }
+            if (Event::handle('StartProfileListItemNickname', array($this))) {
+                $this->showNickname();
+                Event::handle('EndProfileListItemNickname', array($this));
+            }
             if (Event::handle('StartProfileListItemFullName', array($this))) {
                 $this->showFullName();
                 Event::handle('EndProfileListItemFullName', array($this));
@@ -187,23 +191,24 @@ class ProfileListItem extends Widget
         $this->out->elementStart('div', 'entity_profile h-card');
     }
 
+    function showNickname()
+    {
+        $this->out->element('a', array('href'=>$this->profile->getUrl(),
+                                       'class'=>'p-nickname'),
+                            $this->profile->getNickname());
+    }
+
     function showFullName()
     {
         if (!empty($this->profile->fullname)) {
-            $this->out->text(' ');
-            $this->out->elementStart('span', 'p-name');
-            $this->out->raw($this->highlight($this->profile->fullname));
-            $this->out->elementEnd('span');
+            $this->out->element('span', 'p-name', $this->profile->fullname);
         }
     }
 
     function showLocation()
     {
         if (!empty($this->profile->location)) {
-            $this->out->text(' ');
-            $this->out->elementStart('span', 'label');
-            $this->out->raw($this->highlight($this->profile->location));
-            $this->out->elementEnd('span');
+            $this->out->element('span', 'label p-location', $this->profile->location);
         }
     }
 
index 09a660052c8150e240b4a517080d193f4f279e89..a038d0698008095cebc3539083e54943d69877d0 100644 (file)
@@ -77,6 +77,7 @@ class SubscriptionListItem extends ProfileListItem
     {
         $this->startProfile();
         $this->showAvatar($this->profile);
+        $this->showNickname();
         $this->showFullName();
         $this->showLocation();
         $this->showHomepage();
index 8cc2657b5cabaf8a62edc0f01668d13155dda19e..4a9d50110b55e2d81a6f01e4d1645378352b0d91 100644 (file)
@@ -191,7 +191,7 @@ class SortableSubscriptionListItem extends SubscriptionListItem
 
     function startProfile()
     {
-        $this->out->elementStart('td', 'entity_profile h-card e-content');
+        $this->out->elementStart('td', 'entity_profile h-card');
     }
 
     function endProfile()
index d837a67c8e2eabe9c335717d4fac55255777405b..fa346bf279dab5a65bd781f8d1ff5d7e5ae49481 100644 (file)
@@ -1593,6 +1593,13 @@ height:16px;
     top: -3px;
 }
 
+table.profile_list .h-card .u-photo {
+    margin-right: 4px;
+}
+table.profile_list .h-card .p-nickname {
+    display: block;
+}
+
 .entity_profile .entity_nickname,
 .entity_profile .entity_fn {
 margin-left:0;
@@ -1879,14 +1886,6 @@ margin-left:0;
 display:inline;
 }
 
-.profile .entity_profile .p-name,
-.profile .entity_profile .label {
-margin-left:11px;
-margin-bottom:4px;
-width:auto;
-clear:none;
-}
-
 .profile .entity_profile .note,
 .profile .entity_profile .u-url,
 .profile .entity_profile .entity_tags,