/** @inheritdoc **/ protected function getHeaderHtml() { $html = parent::getHeaderHtml(); $vars = $this->getSkinConfigVariables(); $description = $vars['wgMFDescription']; if ($description && !$this->getTitle()->isSpecialPage()) { $html .= Html::element('div', array('class' => 'tagline'), $description); } return $html; }
/** @inheritdoc **/ protected function getHeaderHtml() { if ($this->isUserPage) { // The heading is just the username without namespace $html = Html::rawElement('h1', array('id' => 'section_0'), $this->pageUser->getName()); $fromDate = $this->pageUser->getRegistration(); if (is_string($fromDate)) { $fromDateTs = new MWTimestamp(wfTimestamp(TS_UNIX, $fromDate)); $html .= Html::element('div', array('class' => 'tagline'), $this->msg('mobile-frontend-user-page-member-since', $fromDateTs->format('F, Y'))); } } else { $html = parent::getHeaderHtml(); $vars = $this->getSkinConfigVariables(); $description = $vars['wgMFDescription']; if ($description && !$this->getTitle()->isSpecialPage()) { $html .= Html::element('div', array('class' => 'tagline'), $description); } } return $html; }