username = $data['username']; } public function processRequest() { $viewer = $this->getRequest()->getUser(); $user = id(new PhabricatorUser())->loadOneWhere( 'userName = %s', $this->username); if (!$user) { return new Aphront404Response(); } $links = array(); if ($user->getPHID() == $viewer->getPHID()) { $links[] = phutil_render_tag( 'a', array( 'href' => '/p/'.$user->getUsername().'/edit/', ), 'Edit Profile'); } $fbuid = $user->getFacebookUID(); if ($fbuid) { $links[] = phutil_render_tag( 'a', array( 'href' => 'http://www.facebook.com/profile.php?id='.$fbuid, ), 'Facebook Profile'); } foreach ($links as $k => $link) { $links[$k] = '
  • '.$link.'
  • '; } $links = ''; $username_tag = '

    '. phutil_escape_html($user->getUserName()). '

    '; $realname_tag = '

    '. '('.phutil_escape_html($user->getRealName()).')'. '

    '; $title_tag = '

    '. 'Cool Title'. '

    '; $src_phid = $user->getProfileImagePHID(); $src = PhabricatorFileURI::getViewURIForPHID($src_phid); $picture = phutil_render_tag( 'img', array( 'class' => 'profile-image', 'src' => $src, )); require_celerity_resource('phabricator-profile-css'); $blurb = 'just build marawdars dood'; $content = '

    Basic Information

    PHID '.phutil_escape_html($user->getPHID()).'
    User Since '.phabricator_format_timestamp($user->getDateCreated()).'
    '; $content .= '

    Flavor Text

    Blurb '.$blurb.'
    '; $profile = '
    '. $username_tag. $realname_tag. $title_tag. '
    '. $picture. '
    '. $links. '
    '. '
    '. $content. '
    '; return $this->buildStandardPageResponse( $profile, array( 'title' => $user->getUsername(), )); } }