private function renderPageBodyContent()
 {
     $console = $this->getConsole();
     return array($console ? hsprintf('<darkconsole />') : null, parent::getBody(), $this->renderFooter());
 }
 private function renderPageBodyContent()
 {
     $console = $this->getConsole();
     $body = parent::getBody();
     $footer = $this->renderFooter();
     $nav = $this->getNavigation();
     if ($nav) {
         $crumbs = $this->getCrumbs();
         if ($crumbs) {
             $nav->setCrumbs($crumbs);
         }
         $nav->appendChild($body);
         $nav->appendFooter($footer);
         $content = phutil_implode_html('', array($nav->render()));
     } else {
         $content = array();
         $crumbs = $this->getCrumbs();
         if ($crumbs) {
             $content[] = $crumbs;
         }
         $content[] = $body;
         $content[] = $footer;
         $content = phutil_implode_html('', $content);
     }
     return array($console ? hsprintf('<darkconsole />') : null, $content);
 }
 protected function getBody()
 {
     $console = $this->getConsole();
     $user = null;
     $request = $this->getRequest();
     if ($request) {
         $user = $request->getUser();
     }
     $header_chrome = null;
     if ($this->getShowChrome()) {
         $header_chrome = $this->menuContent;
     }
     $developer_warning = null;
     if (PhabricatorEnv::getEnvConfig('phabricator.developer-mode') && DarkConsoleErrorLogPluginAPI::getErrors()) {
         $developer_warning = phutil_tag_div('aphront-developer-error-callout', pht('This page raised PHP errors. Find them in DarkConsole ' . 'or the error log.'));
     }
     // Render the "you have unresolved setup issues..." warning.
     $setup_warning = null;
     if ($user && $user->getIsAdmin()) {
         $open = PhabricatorSetupCheck::getOpenSetupIssueCount();
         if ($open) {
             $setup_warning = phutil_tag_div('setup-warning-callout', phutil_tag('a', array('href' => '/config/issue/'), pht('You have %d unresolved setup issue(s)...', $open)));
         }
     }
     return phutil_tag('div', array('id' => 'base-page', 'class' => 'phabricator-standard-page'), array($developer_warning, $setup_warning, $header_chrome, phutil_tag_div('phabricator-standard-page-body', array($console ? hsprintf('<darkconsole />') : null, parent::getBody(), phutil_tag('div', array('style' => 'clear: both;'))))));
 }