]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/profilelist.php
Merge remote branch 'gitorious/testing' into testing
[quix0rs-gnu-social.git] / lib / profilelist.php
index 934907bc35ec075b8712a434f8178cab8e966888..b010fb724921028a04e36661471b8932bd7102b8 100644 (file)
@@ -222,8 +222,8 @@ class ProfileListItem extends Widget
     {
         if (!empty($this->profile->homepage)) {
             $this->out->text(' ');
-            $this->out->elementStart('a', array('href' => $this->profile->homepage,
-                                                'class' => 'url'));
+            $aAttrs = $this->homepageAttributes();
+            $this->out->elementStart('a', $aAttrs);
             $this->out->raw($this->highlight($this->profile->homepage));
             $this->out->elementEnd('a');
         }
@@ -305,4 +305,10 @@ class ProfileListItem extends Widget
                      'class' => 'url entry-title',
                      'rel' => 'contact');
     }
+
+    function homepageAttributes()
+    {
+        return array('href' => $this->profile->homepage,
+                     'class' => 'url');
+    }
 }