function showContent() { if (empty($this->profile)) { return; } $profilelistitem = new ProfileListItem($this->profile, $this); $profilelistitem->show(); $this->elementStart('ul'); $fields = GNUsocialProfileExtensionField::allFields(); foreach ($fields as $field) { $fieldname = $field->systemname; if (!empty($this->profile->{$fieldname})) { $this->elementStart('li', array('class' => 'biolistitem')); $this->elementStart('div', array('class' => 'biolistitemcontainer')); if ($field->type == 'text') { $this->element('h3', array(), $field->title); $this->element('p', array('class' => 'biovalue'), $this->profile->{$fieldname}); } else { $this->element('span', array('class' => 'biotitle'), $field->title); $this->text(' '); $this->element('span', array('class' => 'biovalue'), $this->profile->{$fieldname}); } $this->elementEnd('div'); $this->elementEnd('li'); } } $this->elementEnd('ul'); }
function homepageAttributes() { $aAttrs = parent::linkAttributes(); if (common_config('nofollow', 'members')) { $aAttrs['rel'] = 'nofollow'; } return $aAttrs; }
function linkAttributes() { $aAttrs = parent::linkAttributes(); $aAttrs['title'] = $this->profile->getBestName(); $aAttrs['rel'] = 'contact member'; // @todo: member? always? $aAttrs['class'] = 'url'; return $aAttrs; }
function showActions() { parent::startActions(); try { // Throws NoSuchUserException $user = $this->profile->getUser(); // Can't notify user if we don't have an email address if ($user->email) { $this->action->elementStart('li', 'entity_nudge'); $form = new StaleReminderForm($this->out, $user); $form->show(); $this->action->elementEnd('li'); } else { $this->action->element('li', array('class' => 'none'), 'e-mail not confirmed!' . $user->email); } } catch (Exception $e) { // This shouldn't be possible -- famous last words common_log(LOG_ERR, $e->getMessage()); } $cur = common_current_user(); list($action, $r2args) = $this->out->returnToArgs(); $r2args['action'] = $action; if ($cur instanceof User && $cur->hasRight(Right::DELETEUSER)) { $this->elementStart('li', array('class' => 'entity_delete')); $df = new DeleteUserForm($this->out, $this->profile, $r2args); $df->show(); $this->elementEnd('li'); } parent::endActions(); }
/** * Overload parent function to add flaggers list * * @return void */ function endProfile() { $this->showFlaggersList(); parent::endProfile(); }
function __construct($profile, $owner, $action) { parent::__construct($profile, $action); $this->owner = $owner; }
function __construct($profile, $group, $action) { parent::__construct($profile, $action); $this->group = $group; }
function linkAttributes() { // tagging people is healthy page-rank flow. return parent::linkAttributes(); }