echo '<li class="ProfileTitle clearfix">'; } echo '<h2>' . $this->User->Name . '</h2> <p>' . $this->User->Role . '</p> </li>'; if ($this->User->RoleDescription != '') { echo '<li class="Tagline">' . $this->User->RoleDescription . '</li>'; } if ($this->User->Picture != "" && $this->User->Permission('PERMISSION_HTML_ALLOWED')) { echo "<li class=\"Picture\" style=\"background-image: url('" . $this->User->Picture . "');\"> </li>"; } $this->CallDelegate('PostPictureRender'); if ($this->Context->Configuration['USE_REAL_NAMES'] && ($this->User->ShowName || $this->Context->Session->User->Permission('PERMISSION_EDIT_USERS'))) { echo '<li> <h3>' . $this->Context->GetDefinition('RealName') . '</h3> <p class="fn">' . ReturnNonEmpty($this->User->FullName) . '</p> </li>'; } echo '<li> <h3>' . $this->Context->GetDefinition('Email') . '</h3> <p class="email">' . ($this->Context->Session->UserID > 0 && $this->User->UtilizeEmail ? GetEmail($this->User->Email) : $this->Context->GetDefinition('NA')) . '</p> </li> <li> <h3>' . $this->Context->GetDefinition('AccountCreated') . '</h3> <p>' . TimeDiff($this->Context, $this->User->DateFirstVisit, mktime()) . '</p> </li> <li> <h3>' . $this->Context->GetDefinition('LastActive') . '</h3> <p>' . TimeDiff($this->Context, $this->User->DateLastActive, mktime()) . '</p> </li> <li>
function GetImage($ImageUrl, $Height = '', $Width = '', $TagIdentifier = '', $EmptyImageReplacement = ' ') { $sReturn = ''; if (ReturnNonEmpty($ImageUrl) == ' ') { $sReturn = $EmptyImageReplacement; } else { $sReturn = '<img src="' . $ImageUrl . '"'; if ($Height != '') { $sReturn .= ' height="' . $Height . '"'; } if ($Width != '') { $sReturn .= ' width="' . $Width . '"'; } if ($TagIdentifier != '') { $sReturn .= ' id="' . $TagIdentifier . '"'; } $sReturn .= ' alt="" />'; } return $sReturn; }
function GetImage($ImageUrl, $Height = "", $Width = "", $TagIdentifier = "", $EmptyImageReplacement = " ") { $sReturn = ""; if (ReturnNonEmpty($ImageUrl) == " ") { $sReturn = $EmptyImageReplacement; } else { $sReturn = "<img src=\"{$ImageUrl}\""; if ($Height != "") { $sReturn .= " height=\"{$Height}\""; } if ($Width != "") { $sReturn .= " width=\"{$Width}\""; } if ($TagIdentifier != "") { $sReturn .= " id=\"{$TagIdentifier}\""; } $sReturn .= " alt=\"\" border=\"0\" />"; } return $sReturn; }