Beispiel #1
0
 public function ToString()
 {
     $value = "<span class=\"ProfileBadges\">";
     $badges = Badge::GetByUser($this);
     foreach ($badges as $badge) {
         $value .= "<img src=\"" . System::ExpandRelativePath("~/images/badges/" . $badge->Name . ".png") . "\" alt=\"" . $badge->Title . "\" title=\"" . $badge->Title . "\" /> ";
     }
     $value .= "</span>";
     $value .= $this->LongName;
     return $value;
 }