buildStandardPageView(); $page->setApplicationName('Phriction'); $page->setBaseURI('/w/'); $page->setTitle(idx($data, 'title')); $page->setGlyph("\xE2\x9A\xA1"); $tabs = array(); if (!empty($data['document'])) { $tabs['document'] = array( 'name' => 'Document', 'href' => $data['document'], ); } if (!empty($data['history'])) { $tabs['history'] = array( 'name' => 'History', 'href' => $data['history'], ); } $tabs['help'] = array( 'name' => 'Help', 'href' => PhabricatorEnv::getDoclink('article/Phriction_User_Guide.html'), ); $page->setTabs($tabs, idx($data, 'tab')); $page->appendChild($view); $response = new AphrontWebpageResponse(); return $response->setContent($page->render()); } }