mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-09 06:11:01 +01:00
48561a8b1f
Summary: Created with spatch: lang=diff - phutil_render_tag + phutil_tag (X, Y, - phutil_escape_html( Z - ) ) Test Plan: Loaded homepage Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4501
25 lines
520 B
PHP
25 lines
520 B
PHP
<?php
|
|
|
|
final class PhabricatorBarePageExample extends PhabricatorUIExample {
|
|
|
|
public function getName() {
|
|
return 'Bare Page';
|
|
}
|
|
|
|
public function getDescription() {
|
|
return 'This is a bare page.';
|
|
}
|
|
|
|
public function renderExample() {
|
|
$view = new PhabricatorBarePageView();
|
|
$view->appendChild(
|
|
phutil_tag(
|
|
'h1',
|
|
array(),
|
|
$this->getDescription()));
|
|
|
|
$response = new AphrontWebpageResponse();
|
|
$response->setContent($view->render());
|
|
return $response;
|
|
}
|
|
}
|