X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fprofilelist.php;h=b010fb724921028a04e36661471b8932bd7102b8;hb=119d0f7dbab40f30170ba263de78d7e9cea984db;hp=934907bc35ec075b8712a434f8178cab8e966888;hpb=0b30230b5ad482b9510775510f77dbbc62970150;p=quix0rs-gnu-social.git diff --git a/lib/profilelist.php b/lib/profilelist.php index 934907bc35..b010fb7249 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -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'); + } }