]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make profilelist homepage link attributes overrideable
authorEvan Prodromou <evan@status.net>
Mon, 5 Apr 2010 15:17:06 +0000 (11:17 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 5 Apr 2010 15:17:06 +0000 (11:17 -0400)
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');
+    }
 }