1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 15:22:41 +01:00

Convert phutil_render_tag(X, Y, '...') to phutil_tag

Summary:
Created with spatch:

  lang=diff
  - phutil_render_tag
  + phutil_tag
    (X, Y, '...')

Then searched for `&` and `<` in the output and replaced them.

Test Plan: Loaded homepage.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4503
This commit is contained in:
vrana 2013-01-17 18:57:09 -08:00
parent 48561a8b1f
commit 20768d65d5
86 changed files with 140 additions and 140 deletions

View file

@ -146,7 +146,7 @@ final class DarkConsoleServicesPlugin extends DarkConsolePlugin {
$results[] = $results[] =
'<div class="dark-console-panel-header">'. '<div class="dark-console-panel-header">'.
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => $this->getRequestURI()->alter('__analyze__', true), 'href' => $this->getRequestURI()->alter('__analyze__', true),

View file

@ -32,7 +32,7 @@ final class DarkConsoleXHProfPlugin extends DarkConsolePlugin {
public function render() { public function render() {
if (!DarkConsoleXHProfPluginAPI::isProfilerAvailable()) { if (!DarkConsoleXHProfPluginAPI::isProfilerAvailable()) {
$href = PhabricatorEnv::getDoclink('article/Installation_Guide.html'); $href = PhabricatorEnv::getDoclink('article/Installation_Guide.html');
$install_guide = phutil_render_tag( $install_guide = phutil_tag(
'a', 'a',
array( array(
'href' => $href, 'href' => $href,
@ -53,7 +53,7 @@ final class DarkConsoleXHProfPlugin extends DarkConsolePlugin {
$header = $header =
'<div class="dark-console-panel-header">'. '<div class="dark-console-panel-header">'.
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => $this->getRequestURI()->alter('__profile__', 'page'), 'href' => $this->getRequestURI()->alter('__profile__', 'page'),

View file

@ -53,7 +53,7 @@ final class PhabricatorMustVerifyEmailController
'action' => '/login/mustverify/', 'action' => '/login/mustverify/',
'method' => 'POST', 'method' => 'POST',
), ),
phutil_render_tag( phutil_tag(
'button', 'button',
array( array(
), ),

View file

@ -159,18 +159,18 @@ final class AphrontCalendarMonthView extends AphrontView {
$uri = new PhutilURI($uri); $uri = new PhutilURI($uri);
list($prev_year, $prev_month) = $this->getPrevYearAndMonth(); list($prev_year, $prev_month) = $this->getPrevYearAndMonth();
$query = array('year' => $prev_year, 'month' => $prev_month); $query = array('year' => $prev_year, 'month' => $prev_month);
$prev_link = phutil_render_tag( $prev_link = phutil_tag(
'a', 'a',
array('href' => (string) $uri->setQueryParams($query)), array('href' => (string) $uri->setQueryParams($query)),
'&larr;' "\xE2\x86\x90"
); );
list($next_year, $next_month) = $this->getNextYearAndMonth(); list($next_year, $next_month) = $this->getNextYearAndMonth();
$query = array('year' => $next_year, 'month' => $next_month); $query = array('year' => $next_year, 'month' => $next_month);
$next_link = phutil_render_tag( $next_link = phutil_tag(
'a', 'a',
array('href' => (string) $uri->setQueryParams($query)), array('href' => (string) $uri->setQueryParams($query)),
'&rarr;' "\xE2\x86\x92"
); );
$left_th = '<th>'.$prev_link.'</th>'; $left_th = '<th>'.$prev_link.'</th>';

View file

@ -28,7 +28,7 @@ final class PhabricatorCountdownListController
$delete_button = null; $delete_button = null;
if ($user->getIsAdmin() || if ($user->getIsAdmin() ||
($user->getPHID() == $timer->getAuthorPHID())) { ($user->getPHID() == $timer->getAuthorPHID())) {
$edit_button = phutil_render_tag( $edit_button = phutil_tag(
'a', 'a',
array( array(
'class' => 'small button grey', 'class' => 'small button grey',

View file

@ -81,7 +81,7 @@ final class PhabricatorDaemonConsoleController
$task->getLeaseOwner(), $task->getLeaseOwner(),
$task->getLeaseExpires() - time(), $task->getLeaseExpires() - time(),
$task->getFailureCount(), $task->getFailureCount(),
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/daemon/task/'.$task->getID().'/', 'href' => '/daemon/task/'.$task->getID().'/',

View file

@ -81,7 +81,7 @@ final class PhabricatorDaemonLogListView extends AphrontView {
$log->getPID(), $log->getPID(),
phabricator_date($epoch, $this->user), phabricator_date($epoch, $this->user),
phabricator_time($epoch, $this->user), phabricator_time($epoch, $this->user),
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/daemon/log/'.$log->getID().'/', 'href' => '/daemon/log/'.$log->getID().'/',

View file

@ -30,7 +30,7 @@ final class DifferentialDiffCreateController extends DifferentialController {
$form = new AphrontFormView(); $form = new AphrontFormView();
$arcanist_href = PhabricatorEnv::getDoclink( $arcanist_href = PhabricatorEnv::getDoclink(
'article/Arcanist_User_Guide.html'); 'article/Arcanist_User_Guide.html');
$arcanist_link = phutil_render_tag( $arcanist_link = phutil_tag(
'a', 'a',
array( array(
'href' => $arcanist_href, 'href' => $arcanist_href,

View file

@ -184,7 +184,7 @@ final class DifferentialRevisionViewController extends DifferentialController {
'<p>'.pht('This diff is very large and affects %d files. Load '. '<p>'.pht('This diff is very large and affects %d files. Load '.
'each file individually. ', $count). 'each file individually. ', $count).
"<strong>". "<strong>".
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => $request_uri 'href' => $request_uri

View file

@ -90,7 +90,7 @@ final class DifferentialChangesetFileTreeSideNavBuilder {
$icon = 'phabricator-filetree-icon-dir'; $icon = 'phabricator-filetree-icon-dir';
} }
$icon = phutil_render_tag( $icon = phutil_tag(
'span', 'span',
array( array(
'class' => 'phabricator-filetree-icon '.$icon, 'class' => 'phabricator-filetree-icon '.$icon,

View file

@ -182,7 +182,7 @@ final class DifferentialDiffTableOfContentsView extends AphrontView {
$this->repository->getCallsign()); $this->repository->getCallsign());
if ($editor_link) { if ($editor_link) {
$editor_link = $editor_link =
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => $editor_link, 'href' => $editor_link,

View file

@ -104,7 +104,7 @@ final class DifferentialInlineCommentEditView extends AphrontView {
$buttons = implode('', $buttons); $buttons = implode('', $buttons);
$formatting = phutil_render_tag( $formatting = phutil_tag(
'a', 'a',
array( array(
'href' => PhabricatorEnv::getDoclink( 'href' => PhabricatorEnv::getDoclink(

View file

@ -190,7 +190,7 @@ final class DifferentialInlineCommentView extends AphrontView {
if ($this->preview) { if ($this->preview) {
$anchor = null; $anchor = null;
} else { } else {
$anchor = phutil_render_tag( $anchor = phutil_tag(
'a', 'a',
array( array(
'name' => $anchor_name, 'name' => $anchor_name,

View file

@ -32,7 +32,7 @@ final class DiffusionCommitTagsController extends DiffusionController {
} }
if ($has_more_tags) { if ($has_more_tags) {
$tag_links[] = phutil_render_tag( $tag_links[] = phutil_tag(
'a', 'a',
array( array(
'href' => $request->generateURI( 'href' => $request->generateURI(

View file

@ -299,7 +299,7 @@ abstract class DiffusionController extends PhabricatorController {
$last_crumb = array_pop($crumb_list); $last_crumb = array_pop($crumb_list);
if ($raw_commit) { if ($raw_commit) {
$jump_link = phutil_render_tag( $jump_link = phutil_tag(
'a', 'a',
array( array(
'href' => $drequest->generateURI( 'href' => $drequest->generateURI(

View file

@ -146,7 +146,7 @@ final class DiffusionHomeController extends DiffusionController {
} }
$repository_tool_uri = PhabricatorEnv::getProductionURI('/repository/'); $repository_tool_uri = PhabricatorEnv::getProductionURI('/repository/');
$repository_tool = phutil_render_tag('a', $repository_tool = phutil_tag('a',
array( array(
'href' => $repository_tool_uri, 'href' => $repository_tool_uri,
), ),

View file

@ -60,7 +60,7 @@ final class DiffusionRepositoryController extends DiffusionController {
$history_table->setIsHead(true); $history_table->setIsHead(true);
$callsign = $drequest->getRepository()->getCallsign(); $callsign = $drequest->getRepository()->getCallsign();
$all = phutil_render_tag( $all = phutil_tag(
'a', 'a',
array( array(
'href' => "/diffusion/{$callsign}/history/", 'href' => "/diffusion/{$callsign}/history/",
@ -182,7 +182,7 @@ final class DiffusionRepositoryController extends DiffusionController {
} }
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => $drequest->generateURI( 'href' => $drequest->generateURI(
@ -240,7 +240,7 @@ final class DiffusionRepositoryController extends DiffusionController {
} }
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => $drequest->generateURI( 'href' => $drequest->generateURI(

View file

@ -36,7 +36,7 @@ final class DiffusionBranchTableView extends DiffusionView {
} }
$rows[] = array( $rows[] = array(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => $drequest->generateURI( 'href' => $drequest->generateURI(

View file

@ -204,7 +204,7 @@ final class DiffusionBrowseTableView extends DiffusionView {
$request->getRepository()->getCallsign()); $request->getRepository()->getCallsign());
if ($editor_link) { if ($editor_link) {
$show_edit = true; $show_edit = true;
$editor_button = phutil_render_tag( $editor_button = phutil_tag(
'a', 'a',
array( array(
'href' => $editor_link, 'href' => $editor_link,

View file

@ -47,7 +47,7 @@ abstract class DiffusionView extends AphrontView {
'path' => $path, 'path' => $path,
)); ));
return phutil_render_tag( return phutil_tag(
'a', 'a',
array( array(
'href' => $href, 'href' => $href,

View file

@ -109,7 +109,7 @@ final class PhabricatorDirectoryMainController
$panel->setHeader('Unbreak Now!'); $panel->setHeader('Unbreak Now!');
$panel->setCaption('Open tasks with "Unbreak Now!" priority.'); $panel->setCaption('Open tasks with "Unbreak Now!" priority.');
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/maniphest/view/all/', 'href' => '/maniphest/view/all/',
@ -154,7 +154,7 @@ final class PhabricatorDirectoryMainController
'<a href="/project/">projects you are a member of</a>.'); '<a href="/project/">projects you are a member of</a>.');
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
// TODO: This should filter to just your projects' need-triage // TODO: This should filter to just your projects' need-triage
@ -198,7 +198,7 @@ final class PhabricatorDirectoryMainController
$panel->setCaption('Revisions waiting for you for review or commit.'); $panel->setCaption('Revisions waiting for you for review or commit.');
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/differential/', 'href' => '/differential/',
@ -248,7 +248,7 @@ final class PhabricatorDirectoryMainController
$panel->setHeader('Assigned Tasks'); $panel->setHeader('Assigned Tasks');
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/maniphest/', 'href' => '/maniphest/',
@ -294,7 +294,7 @@ final class PhabricatorDirectoryMainController
require_celerity_resource('phabricator-jump-nav'); require_celerity_resource('phabricator-jump-nav');
$doc_href = PhabricatorEnv::getDocLink('article/Jump_Nav_User_Guide.html'); $doc_href = PhabricatorEnv::getDocLink('article/Jump_Nav_User_Guide.html');
$doc_link = phutil_render_tag( $doc_link = phutil_tag(
'a', 'a',
array( array(
'href' => $doc_href, 'href' => $doc_href,
@ -381,7 +381,7 @@ final class PhabricatorDirectoryMainController
$panel->setCaption('Commits awaiting your audit.'); $panel->setCaption('Commits awaiting your audit.');
$panel->appendChild($view); $panel->appendChild($view);
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/audit/', 'href' => '/audit/',
@ -426,7 +426,7 @@ final class PhabricatorDirectoryMainController
$panel->setCaption('Commits which auditors have raised concerns about.'); $panel->setCaption('Commits which auditors have raised concerns about.');
$panel->appendChild($view); $panel->appendChild($view);
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/audit/', 'href' => '/audit/',

View file

@ -53,7 +53,7 @@ final class PhabricatorFactChartController extends PhabricatorFactController {
$y = array_values($points); $y = array_values($points);
$id = celerity_generate_unique_node_id(); $id = celerity_generate_unique_node_id();
$chart = phutil_render_tag( $chart = phutil_tag(
'div', 'div',
array( array(
'id' => $id, 'id' => $id,

View file

@ -104,7 +104,7 @@ final class PhabricatorFileUploadController extends PhabricatorFileController {
$doc_href = PhabricatorEnv::getDocLink( $doc_href = PhabricatorEnv::getDocLink(
'article/Configuring_File_Upload_Limits.html'); 'article/Configuring_File_Upload_Limits.html');
$doc_link = phutil_render_tag( $doc_link = phutil_tag(
'a', 'a',
array( array(
'href' => $doc_href, 'href' => $doc_href,

View file

@ -20,7 +20,7 @@ final class PhabricatorFlagListView extends AphrontView {
$class = PhabricatorFlagColor::getCSSClass($flag->getColor()); $class = PhabricatorFlagColor::getCSSClass($flag->getColor());
$rows[] = array( $rows[] = array(
phutil_render_tag( phutil_tag(
'div', 'div',
array( array(
'class' => 'phabricator-flag-icon '.$class, 'class' => 'phabricator-flag-icon '.$class,
@ -36,7 +36,7 @@ final class PhabricatorFlagListView extends AphrontView {
'action' => '/flag/edit/'.$flag->getObjectPHID().'/', 'action' => '/flag/edit/'.$flag->getObjectPHID().'/',
'sigil' => 'workflow', 'sigil' => 'workflow',
), ),
phutil_render_tag( phutil_tag(
'button', 'button',
array( array(
'class' => 'small grey', 'class' => 'small grey',
@ -49,7 +49,7 @@ final class PhabricatorFlagListView extends AphrontView {
'action' => '/flag/delete/'.$flag->getID().'/', 'action' => '/flag/delete/'.$flag->getID().'/',
'sigil' => 'workflow', 'sigil' => 'workflow',
), ),
phutil_render_tag( phutil_tag(
'button', 'button',
array( array(
'class' => 'small grey', 'class' => 'small grey',

View file

@ -98,7 +98,7 @@ final class HeraldHomeController extends HeraldController {
if ($can_create) { if ($can_create) {
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/herald/new/'.$this->contentType.'/'.$this->ruleType.'/', 'href' => '/herald/new/'.$this->contentType.'/'.$this->ruleType.'/',

View file

@ -58,7 +58,7 @@ final class HeraldTranscriptListController extends HeraldController {
$handles[$xscript['objectPHID']]->renderLink(), $handles[$xscript['objectPHID']]->renderLink(),
$xscript['dryRun'] ? 'Yes' : '', $xscript['dryRun'] ? 'Yes' : '',
number_format((int)(1000 * $xscript['duration'])).' ms', number_format((int)(1000 * $xscript['duration'])).' ms',
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/herald/transcript/'.$xscript['id'].'/', 'href' => '/herald/transcript/'.$xscript['id'].'/',

View file

@ -51,7 +51,7 @@ final class HeraldRuleListView extends AphrontView {
), ),
$rule->getName()); $rule->getName());
$edit_log = phutil_render_tag( $edit_log = phutil_tag(
'a', 'a',
array( array(
'href' => '/herald/history/'.$rule->getID().'/', 'href' => '/herald/history/'.$rule->getID().'/',

View file

@ -33,7 +33,7 @@ final class PhabricatorMailingListsListController
$rows[] = array( $rows[] = array(
phutil_escape_html($list->getName()), phutil_escape_html($list->getName()),
phutil_escape_html($list->getEmail()), phutil_escape_html($list->getEmail()),
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'class' => 'button grey small', 'class' => 'button grey small',

View file

@ -271,7 +271,7 @@ final class ManiphestReportController extends ManiphestController {
$filter = $this->renderReportFilters($tokens, $has_window = false); $filter = $this->renderReportFilters($tokens, $has_window = false);
$id = celerity_generate_unique_node_id(); $id = celerity_generate_unique_node_id();
$chart = phutil_render_tag( $chart = phutil_tag(
'div', 'div',
array( array(
'id' => $id, 'id' => $id,
@ -409,12 +409,12 @@ final class ManiphestReportController extends ManiphestController {
unset($result_closed['']); unset($result_closed['']);
$base_link = '/maniphest/?users='; $base_link = '/maniphest/?users=';
$leftover_name = phutil_render_tag( $leftover_name = phutil_tag(
'a', 'a',
array( array(
'href' => $base_link.ManiphestTaskOwner::OWNER_UP_FOR_GRABS, 'href' => $base_link.ManiphestTaskOwner::OWNER_UP_FOR_GRABS,
), ),
'<em>(Up For Grabs)</em>'); phutil_render_html('em', array(), '(Up For Grabs)'));
$col_header = 'User'; $col_header = 'User';
$header = 'Open Tasks by User and Priority ('.$date.')'; $header = 'Open Tasks by User and Priority ('.$date.')';
break; break;
@ -446,12 +446,12 @@ final class ManiphestReportController extends ManiphestController {
} }
$base_link = '/maniphest/view/all/?projects='; $base_link = '/maniphest/view/all/?projects=';
$leftover_name = phutil_render_tag( $leftover_name = phutil_tag(
'a', 'a',
array( array(
'href' => $base_link.ManiphestTaskOwner::PROJECT_NO_PROJECT, 'href' => $base_link.ManiphestTaskOwner::PROJECT_NO_PROJECT,
), ),
'<em>(No Project)</em>'); phutil_render_html('em', array(), '(No Project)'));
$col_header = 'Project'; $col_header = 'Project';
$header = 'Open Tasks by Project and Priority ('.$date.')'; $header = 'Open Tasks by Project and Priority ('.$date.')';
break; break;

View file

@ -54,7 +54,7 @@ final class ManiphestSavedQueryListController extends ManiphestController {
'href' => '/maniphest/view/custom/?key='.$query->getQueryKey(), 'href' => '/maniphest/view/custom/?key='.$query->getQueryKey(),
), ),
$query->getName()), $query->getName()),
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/maniphest/custom/edit/'.$query->getID().'/', 'href' => '/maniphest/custom/edit/'.$query->getID().'/',
@ -105,7 +105,7 @@ final class ManiphestSavedQueryListController extends ManiphestController {
$panel = new AphrontPanelView(); $panel = new AphrontPanelView();
$panel->setHeader('Saved Custom Queries'); $panel->setHeader('Saved Custom Queries');
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'button', 'button',
array(), array(),
'Save Default Query')); 'Save Default Query'));

View file

@ -89,7 +89,7 @@ final class ManiphestTaskDetailController extends ManiphestController {
if ($parent_task) { if ($parent_task) {
$context_bar = new AphrontContextBarView(); $context_bar = new AphrontContextBarView();
$context_bar->addButton( $context_bar->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/maniphest/task/create/?parent='.$parent_task->getID(), 'href' => '/maniphest/task/create/?parent='.$parent_task->getID(),
@ -104,7 +104,7 @@ final class ManiphestTaskDetailController extends ManiphestController {
$context_bar = new AphrontContextBarView(); $context_bar = new AphrontContextBarView();
$context_bar->addButton('<label>Create Another:</label>'); $context_bar->addButton('<label>Create Another:</label>');
$context_bar->addButton( $context_bar->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/maniphest/task/create/?template='.$task->getID(), 'href' => '/maniphest/task/create/?template='.$task->getID(),
@ -112,7 +112,7 @@ final class ManiphestTaskDetailController extends ManiphestController {
), ),
'Similar Task')); 'Similar Task'));
$context_bar->addButton( $context_bar->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/maniphest/task/create/', 'href' => '/maniphest/task/create/',

View file

@ -661,14 +661,14 @@ final class ManiphestTaskListController extends ManiphestController {
), ),
'Clear Selection'); 'Clear Selection');
$submit = phutil_render_tag( $submit = phutil_tag(
'button', 'button',
array( array(
'id' => 'batch-select-submit', 'id' => 'batch-select-submit',
'disabled' => 'disabled', 'disabled' => 'disabled',
'class' => 'disabled', 'class' => 'disabled',
), ),
'Batch Edit Selected Tasks &raquo;'); "Batch Edit Selected Tasks \xC2\xBB");
$export = javelin_render_tag( $export = javelin_render_tag(
'a', 'a',

View file

@ -84,7 +84,7 @@ final class PhabricatorApplicationLaunchView extends AphrontView {
$classes[] = 'app-'.$icon.'-light-large'; $classes[] = 'app-'.$icon.'-light-large';
} }
$icon = phutil_render_tag( $icon = phutil_tag(
'span', 'span',
array( array(
'class' => implode(' ', $classes), 'class' => implode(' ', $classes),

View file

@ -68,7 +68,7 @@ final class PhabricatorMetaMTAListController
phabricator_format_relative_time_detailed( phabricator_format_relative_time_detailed(
time() - $mail->getDateModified()), time() - $mail->getDateModified()),
phutil_escape_html($mail->getSubject()), phutil_escape_html($mail->getSubject()),
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'class' => 'button small grey', 'class' => 'button small grey',

View file

@ -48,7 +48,7 @@ final class PhabricatorMetaMTASendController
$doclink_href = PhabricatorEnv::getDoclink( $doclink_href = PhabricatorEnv::getDoclink(
'article/Configuring_Outbound_Email.html'); 'article/Configuring_Outbound_Email.html');
$doclink = phutil_render_tag( $doclink = phutil_tag(
'a', 'a',
array( array(
'href' => $doclink_href, 'href' => $doclink_href,
@ -77,7 +77,7 @@ final class PhabricatorMetaMTASendController
$phdlink_href = PhabricatorEnv::getDoclink( $phdlink_href = PhabricatorEnv::getDoclink(
'article/Managing_Daemons_with_phd.html'); 'article/Managing_Daemons_with_phd.html');
$phdlink = phutil_render_tag( $phdlink = phutil_tag(
'a', 'a',
array( array(
'href' => $phdlink_href, 'href' => $phdlink_href,

View file

@ -32,7 +32,7 @@ final class PhabricatorNotificationPanelController
'</div>'. '</div>'.
$content. $content.
'<div class="phabricator-notification-view-all">'. '<div class="phabricator-notification-view-all">'.
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/notification/', 'href' => '/notification/',

View file

@ -107,7 +107,7 @@ extends PhabricatorOAuthClientBaseController {
$panel = new AphrontPanelView(); $panel = new AphrontPanelView();
if ($this->isClientEdit()) { if ($this->isClientEdit()) {
$delete_button = phutil_render_tag( $delete_button = phutil_tag(
'a', 'a',
array( array(
'href' => $client->getDeleteURI(), 'href' => $client->getDeleteURI(),

View file

@ -47,7 +47,7 @@ extends PhabricatorOAuthClientBaseController {
), ),
$client->getRedirectURI() $client->getRedirectURI()
), ),
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'class' => 'small button grey', 'class' => 'small button grey',

View file

@ -84,7 +84,7 @@ extends PhabricatorOAuthClientBaseController {
$panel->appendChild($form); $panel->appendChild($form);
$admin_panel = null; $admin_panel = null;
if ($client->getCreatorPHID() == $current_user->getPHID()) { if ($client->getCreatorPHID() == $current_user->getPHID()) {
$edit_button = phutil_render_tag( $edit_button = phutil_tag(
'a', 'a',
array( array(
'href' => $client->getEditURI(), 'href' => $client->getEditURI(),

View file

@ -45,7 +45,7 @@ extends PhabricatorOAuthClientAuthorizationBaseController {
$current_user); $current_user);
$panel = new AphrontPanelView(); $panel = new AphrontPanelView();
$delete_button = phutil_render_tag( $delete_button = phutil_tag(
'a', 'a',
array( array(
'href' => $authorization->getDeleteURI(), 'href' => $authorization->getDeleteURI(),

View file

@ -72,7 +72,7 @@ extends PhabricatorOAuthClientAuthorizationBaseController {
$authorization->getDateModified(), $authorization->getDateModified(),
$current_user $current_user
), ),
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'class' => 'small button grey', 'class' => 'small button grey',

View file

@ -129,7 +129,7 @@ final class PhabricatorOwnersDetailController
), ),
'Delete Package')); 'Delete Package'));
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/owners/edit/'.$package->getID().'/', 'href' => '/owners/edit/'.$package->getID().'/',
@ -164,7 +164,7 @@ final class PhabricatorOwnersDetailController
$commit_views[] = array( $commit_views[] = array(
'view' => $view, 'view' => $view,
'header' => 'Commits in this Package that Need Attention', 'header' => 'Commits in this Package that Need Attention',
'button' => phutil_render_tag( 'button' => phutil_tag(
'a', 'a',
array( array(
'href' => $commit_uri->alter('status', 'open'), 'href' => $commit_uri->alter('status', 'open'),
@ -189,7 +189,7 @@ final class PhabricatorOwnersDetailController
$commit_views[] = array( $commit_views[] = array(
'view' => $view, 'view' => $view,
'header' => 'Recent Commits in Package', 'header' => 'Recent Commits in Package',
'button' => phutil_render_tag( 'button' => phutil_tag(
'a', 'a',
array( array(
'href' => $commit_uri, 'href' => $commit_uri,

View file

@ -153,7 +153,7 @@ final class PhabricatorPasteEditController extends PhabricatorPasteController {
->setCustomClass('PhabricatorMonospaced') ->setCustomClass('PhabricatorMonospaced')
->setName('text')); ->setName('text'));
} else { } else {
$fork_link = phutil_render_tag( $fork_link = phutil_tag(
'a', 'a',
array( array(
'href' => $this->getApplicationURI('?parent='.$paste->getID()) 'href' => $this->getApplicationURI('?parent='.$paste->getID())

View file

@ -63,7 +63,7 @@ final class PhabricatorApplicationPeople extends PhabricatorApplication {
); );
$item->appendChild( $item->appendChild(
phutil_render_tag( phutil_tag(
'span', 'span',
array( array(
'class' => implode(' ', $classes), 'class' => implode(' ', $classes),

View file

@ -24,7 +24,7 @@ final class PhabricatorEmailVerificationController
$user->getPHID(), $user->getPHID(),
$this->code); $this->code);
$home_link = phutil_render_tag( $home_link = phutil_tag(
'a', 'a',
array( array(
'href' => '/', 'href' => '/',
@ -32,7 +32,7 @@ final class PhabricatorEmailVerificationController
'Continue to Phabricator'); 'Continue to Phabricator');
$home_link = '<br /><p><strong>'.$home_link.'</strong></p>'; $home_link = '<br /><p><strong>'.$home_link.'</strong></p>';
$settings_link = phutil_render_tag( $settings_link = phutil_tag(
'a', 'a',
array( array(
'href' => '/settings/panel/email/', 'href' => '/settings/panel/email/',

View file

@ -660,7 +660,7 @@ final class PhabricatorPeopleEditController
} }
private function getRoleInstructions() { private function getRoleInstructions() {
$roles_link = phutil_render_tag( $roles_link = phutil_tag(
'a', 'a',
array( array(
'href' => PhabricatorEnv::getDoclink( 'href' => PhabricatorEnv::getDoclink(

View file

@ -153,7 +153,7 @@ final class PhabricatorPeopleLdapController
private function renderUserInputs($user) { private function renderUserInputs($user) {
$username = $user[0]; $username = $user[0];
$inputs = phutil_render_tag( $inputs = phutil_tag(
'input', 'input',
array( array(
'type' => 'checkbox', 'type' => 'checkbox',
@ -162,7 +162,7 @@ final class PhabricatorPeopleLdapController
), ),
''); '');
$inputs .= phutil_render_tag( $inputs .= phutil_tag(
'input', 'input',
array( array(
'type' => 'hidden', 'type' => 'hidden',
@ -171,7 +171,7 @@ final class PhabricatorPeopleLdapController
), ),
''); '');
$inputs .= phutil_render_tag( $inputs .= phutil_tag(
'input', 'input',
array( array(
'type' => 'hidden', 'type' => 'hidden',

View file

@ -58,7 +58,7 @@ final class PhabricatorPeopleListController
phutil_escape_html($user->getRealName()), phutil_escape_html($user->getRealName()),
$status, $status,
$email, $email,
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'class' => 'button grey small', 'class' => 'button grey small',
@ -107,7 +107,7 @@ final class PhabricatorPeopleListController
if ($is_admin) { if ($is_admin) {
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/people/edit/', 'href' => '/people/edit/',
@ -116,7 +116,7 @@ final class PhabricatorPeopleListController
'Create New Account')); 'Create New Account'));
if (PhabricatorEnv::getEnvConfig('ldap.auth-enabled')) { if (PhabricatorEnv::getEnvConfig('ldap.auth-enabled')) {
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/people/ldap/', 'href' => '/people/ldap/',

View file

@ -75,7 +75,7 @@ final class PhamePostPublishController extends PhameController {
array( array(
'style' => 'text-align: center; padding: 1em;', 'style' => 'text-align: center; padding: 1em;',
), ),
phutil_render_tag( phutil_tag(
'iframe', 'iframe',
array( array(
'style' => 'width: 100%; height: 600px; '. 'style' => 'width: 100%; height: 600px; '.

View file

@ -151,7 +151,7 @@ final class PhamePostView extends AphrontView {
return null; return null;
} }
$fb_root = phutil_render_tag('div', $fb_root = phutil_tag('div',
array( array(
'id' => 'fb-root', 'id' => 'fb-root',
), ),
@ -173,7 +173,7 @@ final class PhamePostView extends AphrontView {
$uri = $this->getSkin()->getURI('post/'.$this->getPost()->getPhameTitle()); $uri = $this->getSkin()->getURI('post/'.$this->getPost()->getPhameTitle());
$fb_comments = phutil_render_tag('div', $fb_comments = phutil_tag('div',
array( array(
'class' => 'fb-comments', 'class' => 'fb-comments',
'data-href' => $uri, 'data-href' => $uri,

View file

@ -110,7 +110,7 @@ final class PhrictionDiffController
'href' => PhrictionDocument::getSlugURI($slug), 'href' => PhrictionDocument::getSlugURI($slug),
), ),
$current->getTitle()), $current->getTitle()),
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/phriction/history/'.$document->getSlug().'/', 'href' => '/phriction/history/'.$document->getSlug().'/',
@ -133,7 +133,7 @@ final class PhrictionDiffController
$uri = $request->getRequestURI(); $uri = $request->getRequestURI();
if ($nav_l) { if ($nav_l) {
$link_l = phutil_render_tag( $link_l = phutil_tag(
'a', 'a',
array( array(
'href' => $uri->alter('l', $l - 1)->alter('r', $r - 1), 'href' => $uri->alter('l', $l - 1)->alter('r', $r - 1),
@ -145,7 +145,7 @@ final class PhrictionDiffController
$link_r = null; $link_r = null;
if ($nav_r) { if ($nav_r) {
$link_r = phutil_render_tag( $link_r = phutil_tag(
'a', 'a',
array( array(
'href' => $uri->alter('l', $l + 1)->alter('r', $r + 1), 'href' => $uri->alter('l', $l + 1)->alter('r', $r + 1),
@ -202,7 +202,7 @@ final class PhrictionDiffController
} }
if ($content->getID() == $current->getID()) { if ($content->getID() == $current->getID()) {
return phutil_render_tag( return phutil_tag(
'a', 'a',
array( array(
'href' => '/phriction/edit/'.$document_id.'/', 'href' => '/phriction/edit/'.$document_id.'/',

View file

@ -47,14 +47,14 @@ final class PhrictionDocumentController
$create_uri = '/phriction/edit/?slug='.$slug; $create_uri = '/phriction/edit/?slug='.$slug;
$create_sentence = $create_sentence =
'You can <strong>'. 'You can <strong>'.
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => $create_uri, 'href' => $create_uri,
), ),
'create a new document'). 'create a new document').
'</strong>.'; '</strong>.';
$button = phutil_render_tag( $button = phutil_tag(
'a', 'a',
array( array(
'href' => $create_uri, 'href' => $create_uri,

View file

@ -159,7 +159,7 @@ final class PhrictionEditController
$panel_header = 'Edit Phriction Document'; $panel_header = 'Edit Phriction Document';
$submit_button = 'Save Changes'; $submit_button = 'Save Changes';
if ($document->getStatus() != PhrictionDocumentStatus::STATUS_DELETED) { if ($document->getStatus() != PhrictionDocumentStatus::STATUS_DELETED) {
$delete_button = phutil_render_tag( $delete_button = phutil_tag(
'a', 'a',
array( array(
'href' => '/phriction/delete/'.$document->getID().'/', 'href' => '/phriction/delete/'.$document->getID().'/',
@ -183,7 +183,7 @@ final class PhrictionEditController
($draft->getDraft() != $content->getContent())) { ($draft->getDraft() != $content->getContent())) {
$content_text = $draft->getDraft(); $content_text = $draft->getDraft();
$discard = phutil_render_tag( $discard = phutil_tag(
'a', 'a',
array( array(
'href' => $request->getRequestURI()->alter('nodraft', true), 'href' => $request->getRequestURI()->alter('nodraft', true),

View file

@ -54,7 +54,7 @@ final class PhrictionHistoryController
$uri = $diff_uri $uri = $diff_uri
->alter('l', $content->getVersion() - 1) ->alter('l', $content->getVersion() - 1)
->alter('r', $content->getVersion()); ->alter('r', $content->getVersion());
$vs_previous = phutil_render_tag( $vs_previous = phutil_tag(
'a', 'a',
array( array(
'href' => $uri, 'href' => $uri,
@ -68,7 +68,7 @@ final class PhrictionHistoryController
->alter('l', $content->getVersion()) ->alter('l', $content->getVersion())
->alter('r', $current->getVersion()); ->alter('r', $current->getVersion());
$vs_head = phutil_render_tag( $vs_head = phutil_tag(
'a', 'a',
array( array(
'href' => $uri, 'href' => $uri,

View file

@ -133,7 +133,7 @@ final class PhabricatorProjectMembersEditController
->setHandles($handles); ->setHandles($handles);
foreach ($handles as $handle) { foreach ($handles as $handle) {
$hidden_input = phutil_render_tag( $hidden_input = phutil_tag(
'input', 'input',
array( array(
'type' => 'hidden', 'type' => 'hidden',

View file

@ -91,7 +91,7 @@ final class PhabricatorProjectProfileController
'action' => '/project/update/'.$project->getID().'/join/', 'action' => '/project/update/'.$project->getID().'/join/',
'method' => 'post', 'method' => 'post',
), ),
phutil_render_tag( phutil_tag(
'button', 'button',
array( array(
'class' => $class, 'class' => $class,
@ -261,7 +261,7 @@ final class PhabricatorProjectProfileController
$open = number_format($count); $open = number_format($count);
$more_link = phutil_render_tag( $more_link = phutil_tag(
'a', 'a',
array( array(
'href' => '/maniphest/view/all/?projects='.$project->getPHID(), 'href' => '/maniphest/view/all/?projects='.$project->getPHID(),

View file

@ -33,7 +33,7 @@ abstract class PhabricatorRepositoryController extends PhabricatorController {
} }
protected function renderDaemonNotice() { protected function renderDaemonNotice() {
$documentation = phutil_render_tag( $documentation = phutil_tag(
'a', 'a',
array( array(
'href' => PhabricatorEnv::getDoclink( 'href' => PhabricatorEnv::getDoclink(

View file

@ -348,7 +348,7 @@ final class PhabricatorRepositoryEditController
} }
$doc_href = PhabricatorEnv::getDoclink('article/Diffusion_User_Guide.html'); $doc_href = PhabricatorEnv::getDoclink('article/Diffusion_User_Guide.html');
$user_guide_link = phutil_render_tag( $user_guide_link = phutil_tag(
'a', 'a',
array( array(
'href' => $doc_href, 'href' => $doc_href,

View file

@ -20,7 +20,7 @@ final class PhabricatorRepositoryListController
foreach ($repos as $repo) { foreach ($repos as $repo) {
if ($repo->isTracked()) { if ($repo->isTracked()) {
$diffusion_link = phutil_render_tag( $diffusion_link = phutil_tag(
'a', 'a',
array( array(
'href' => '/diffusion/'.$repo->getCallsign().'/', 'href' => '/diffusion/'.$repo->getCallsign().'/',
@ -36,7 +36,7 @@ final class PhabricatorRepositoryListController
PhabricatorRepositoryType::getNameForRepositoryType( PhabricatorRepositoryType::getNameForRepositoryType(
$repo->getVersionControlSystem()), $repo->getVersionControlSystem()),
$diffusion_link, $diffusion_link,
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'class' => 'button small grey', 'class' => 'button small grey',
@ -106,7 +106,7 @@ final class PhabricatorRepositoryListController
$rows[] = array( $rows[] = array(
phutil_escape_html($project->getName()), phutil_escape_html($project->getName()),
$repo_name, $repo_name,
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => '/repository/project/edit/'.$project->getID().'/', 'href' => '/repository/project/edit/'.$project->getID().'/',

View file

@ -44,7 +44,7 @@ final class PhabricatorSearchResultView extends AphrontView {
$img = $handle->getImageURI(); $img = $handle->getImageURI();
if ($img) { if ($img) {
$img = phutil_render_tag( $img = phutil_tag(
'div', 'div',
array( array(
'class' => 'result-image', 'class' => 'result-image',

View file

@ -63,7 +63,7 @@ function helloWorld() {
} }
EXAMPLE; EXAMPLE;
$editor_doc_link = phutil_render_tag( $editor_doc_link = phutil_tag(
'a', 'a',
array( array(
'href' => PhabricatorEnv::getDoclink( 'href' => PhabricatorEnv::getDoclink(

View file

@ -79,7 +79,7 @@ final class PhabricatorSettingsPanelEmailAddresses
), ),
'Remove'); 'Remove');
$button_primary = phutil_render_tag( $button_primary = phutil_tag(
'a', 'a',
array( array(
'class' => 'button small disabled', 'class' => 'button small disabled',

View file

@ -220,7 +220,7 @@ final class PhabricatorSettingsPanelSSHKeys
$panel = new AphrontPanelView(); $panel = new AphrontPanelView();
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => $this->getPanelURI('?edit=true'), 'href' => $this->getPanelURI('?edit=true'),

View file

@ -76,7 +76,7 @@ class PhabricatorApplicationTransactionCommentView extends AphrontView {
} }
private function renderCommentPanel() { private function renderCommentPanel() {
$status = phutil_render_tag( $status = phutil_tag(
'div', 'div',
array( array(
'id' => $this->getStatusID(), 'id' => $this->getStatusID(),

View file

@ -126,7 +126,7 @@ final class PhabricatorXHProfProfileTopLevelView
if ($this->file) { if ($this->file) {
$panel->addButton( $panel->addButton(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => $this->file->getBestURI(), 'href' => $this->file->getBestURI(),

View file

@ -114,7 +114,7 @@ final class CelerityStaticResourceResponse {
'href' => $uri, 'href' => $uri,
)); ));
case 'js': case 'js':
return phutil_render_tag( return phutil_tag(
'script', 'script',
array( array(
'type' => 'text/javascript', 'type' => 'text/javascript',

View file

@ -19,7 +19,7 @@ final class PhabricatorInlineSummaryView extends AphrontView {
} }
private function renderHeader() { private function renderHeader() {
return phutil_render_tag( return phutil_tag(
'div', 'div',
array( array(
'class' => 'phabricator-inline-summary', 'class' => 'phabricator-inline-summary',

View file

@ -23,7 +23,7 @@ final class PhabricatorRemarkupRuleYoutube
$youtube_src = 'https://www.youtube.com/embed/'.$v; $youtube_src = 'https://www.youtube.com/embed/'.$v;
$iframe = $iframe =
'<div class="embedded-youtube-video">'. '<div class="embedded-youtube-video">'.
phutil_render_tag( phutil_tag(
'iframe', 'iframe',
array( array(
'width' => '650', 'width' => '650',

View file

@ -88,7 +88,7 @@ final class AphrontCursorPagerView extends AphrontView {
$links = array(); $links = array();
if ($this->afterID || ($this->beforeID && $this->moreResults)) { if ($this->afterID || ($this->beforeID && $this->moreResults)) {
$links[] = phutil_render_tag( $links[] = phutil_tag(
'a', 'a',
array( array(
'href' => $this->uri 'href' => $this->uri
@ -99,7 +99,7 @@ final class AphrontCursorPagerView extends AphrontView {
} }
if ($this->prevPageID) { if ($this->prevPageID) {
$links[] = phutil_render_tag( $links[] = phutil_tag(
'a', 'a',
array( array(
'href' => $this->uri 'href' => $this->uri
@ -110,7 +110,7 @@ final class AphrontCursorPagerView extends AphrontView {
} }
if ($this->nextPageID) { if ($this->nextPageID) {
$links[] = phutil_render_tag( $links[] = phutil_tag(
'a', 'a',
array( array(
'href' => $this->uri 'href' => $this->uri

View file

@ -181,7 +181,7 @@ final class AphrontTableView extends AphrontView {
$classes[] = 'aphront-table-view-sortable-selected'; $classes[] = 'aphront-table-view-sortable-selected';
} }
$sort_glyph = phutil_render_tag( $sort_glyph = phutil_tag(
'span', 'span',
array( array(
'class' => $sort_glyph_class, 'class' => $sort_glyph_class,

View file

@ -234,7 +234,7 @@ final class AphrontFormDateControl extends AphrontFormControl {
), ),
''); '');
$time_sel = phutil_render_tag( $time_sel = phutil_tag(
'input', 'input',
array( array(
'name' => $this->getTimeInputName(), 'name' => $this->getTimeInputName(),

View file

@ -46,7 +46,7 @@ final class AphrontFormDragAndDropUploadControl extends AphrontFormControl {
'activatedClass' => $this->activatedClass, 'activatedClass' => $this->activatedClass,
)); ));
return phutil_render_tag( return phutil_tag(
'div', 'div',
array( array(
'id' => $list_id, 'id' => $list_id,

View file

@ -26,7 +26,7 @@ final class AphrontFormImageControl extends AphrontFormControl {
'class' => 'default-image', 'class' => 'default-image',
'id' => $id, 'id' => $id,
)). )).
phutil_render_tag( phutil_tag(
'label', 'label',
array( array(
'for' => $id, 'for' => $id,

View file

@ -66,7 +66,7 @@ final class PhabricatorRemarkupControl extends AphrontFormTextAreaControl {
$buttons = array(); $buttons = array();
foreach ($actions as $action => $spec) { foreach ($actions as $action => $spec) {
if (idx($spec, 'spacer')) { if (idx($spec, 'spacer')) {
$buttons[] = phutil_render_tag( $buttons[] = phutil_tag(
'span', 'span',
array( array(
'class' => 'remarkup-assist-separator', 'class' => 'remarkup-assist-separator',
@ -110,7 +110,7 @@ final class PhabricatorRemarkupControl extends AphrontFormTextAreaControl {
'target' => $target, 'target' => $target,
'tabindex' => -1, 'tabindex' => -1,
), ),
phutil_render_tag( phutil_tag(
'div', 'div',
array( array(
'class' => 'remarkup-assist sprite-icon remarkup-assist-'.$action, 'class' => 'remarkup-assist sprite-icon remarkup-assist-'.$action,

View file

@ -183,7 +183,7 @@ final class AphrontSideNavFilterView extends AphrontView {
if ($this->flexible) { if ($this->flexible) {
$nav_classes[] = 'has-drag-nav'; $nav_classes[] = 'has-drag-nav';
$drag_id = celerity_generate_unique_node_id(); $drag_id = celerity_generate_unique_node_id();
$flex_bar = phutil_render_tag( $flex_bar = phutil_tag(
'div', 'div',
array( array(
'class' => 'phabricator-nav-drag', 'class' => 'phabricator-nav-drag',
@ -200,7 +200,7 @@ final class AphrontSideNavFilterView extends AphrontView {
$background_id = celerity_generate_unique_node_id(); $background_id = celerity_generate_unique_node_id();
$nav_classes[] = 'has-local-nav'; $nav_classes[] = 'has-local-nav';
$menu_background = phutil_render_tag( $menu_background = phutil_tag(
'div', 'div',
array( array(
'class' => 'phabricator-nav-column-background', 'class' => 'phabricator-nav-column-background',

View file

@ -50,7 +50,7 @@ final class PhabricatorActionView extends AphrontView {
} }
require_celerity_resource('sprite-icon-css'); require_celerity_resource('sprite-icon-css');
$icon = phutil_render_tag( $icon = phutil_tag(
'span', 'span',
array( array(
'class' => 'phabricator-action-view-icon sprite-icon '. 'class' => 'phabricator-action-view-icon sprite-icon '.

View file

@ -30,7 +30,7 @@ final class PhabricatorAnchorView extends AphrontView {
''); '');
} }
$anchor = phutil_render_tag( $anchor = phutil_tag(
'a', 'a',
array( array(
'name' => $this->anchorName, 'name' => $this->anchorName,

View file

@ -54,7 +54,7 @@ final class PhabricatorCrumbView extends AphrontView {
$icon = null; $icon = null;
if ($this->icon) { if ($this->icon) {
$classes[] = 'phabricator-crumb-has-icon'; $classes[] = 'phabricator-crumb-has-icon';
$icon = phutil_render_tag( $icon = phutil_tag(
'span', 'span',
array( array(
'class' => 'phabricator-crumb-icon '. 'class' => 'phabricator-crumb-icon '.
@ -72,7 +72,7 @@ final class PhabricatorCrumbView extends AphrontView {
$divider = null; $divider = null;
if (!$this->isLastCrumb) { if (!$this->isLastCrumb) {
$divider = phutil_render_tag( $divider = phutil_tag(
'span', 'span',
array( array(
'class' => 'sprite-menu phabricator-crumb-divider', 'class' => 'sprite-menu phabricator-crumb-divider',

View file

@ -30,7 +30,7 @@ final class PhabricatorCrumbsView extends AphrontView {
foreach ($this->actions as $action) { foreach ($this->actions as $action) {
$icon = null; $icon = null;
if ($action->getIcon()) { if ($action->getIcon()) {
$icon = phutil_render_tag( $icon = phutil_tag(
'span', 'span',
array( array(
'class' => 'sprite-icon action-'.$action->getIcon(), 'class' => 'sprite-icon action-'.$action->getIcon(),

View file

@ -85,7 +85,7 @@ final class PhabricatorObjectItemView extends AphrontView {
foreach ($this->icons as $spec) { foreach ($this->icons as $spec) {
$icon = $spec['icon']; $icon = $spec['icon'];
$icon = phutil_render_tag( $icon = phutil_tag(
'span', 'span',
array( array(
'class' => 'phabricator-object-item-icon-image '. 'class' => 'phabricator-object-item-icon-image '.
@ -119,12 +119,12 @@ final class PhabricatorObjectItemView extends AphrontView {
$attrs = null; $attrs = null;
if ($this->attributes) { if ($this->attributes) {
$attrs = array(); $attrs = array();
$spacer = phutil_render_tag( $spacer = phutil_tag(
'span', 'span',
array( array(
'class' => 'phabricator-object-item-attribute-spacer', 'class' => 'phabricator-object-item-attribute-spacer',
), ),
'&middot;'); "\xC2\xB7");
$first = true; $first = true;
foreach ($this->attributes as $attribute) { foreach ($this->attributes as $attribute) {
$attrs[] = phutil_render_tag( $attrs[] = phutil_render_tag(

View file

@ -38,7 +38,7 @@ final class PhabricatorProfileHeaderView extends AphrontView {
$image = null; $image = null;
if ($this->profilePicture) { if ($this->profilePicture) {
$image = phutil_render_tag( $image = phutil_tag(
'div', 'div',
array( array(
'class' => 'profile-header-picture-frame', 'class' => 'profile-header-picture-frame',

View file

@ -99,7 +99,7 @@ final class PhabricatorTagView extends AphrontView {
if ($this->dotColor) { if ($this->dotColor) {
$dotcolor = 'phabricator-tag-color-'.$this->dotColor; $dotcolor = 'phabricator-tag-color-'.$this->dotColor;
$dot = phutil_render_tag( $dot = phutil_tag(
'span', 'span',
array( array(
'class' => 'phabricator-tag-dot '.$dotcolor, 'class' => 'phabricator-tag-dot '.$dotcolor,
@ -118,7 +118,7 @@ final class PhabricatorTagView extends AphrontView {
if ($this->barColor) { if ($this->barColor) {
$barcolor = 'phabricator-tag-color-'.$this->barColor; $barcolor = 'phabricator-tag-color-'.$this->barColor;
$bar = phutil_render_tag( $bar = phutil_tag(
'span', 'span',
array( array(
'class' => 'phabricator-tag-bar '.$barcolor, 'class' => 'phabricator-tag-bar '.$barcolor,

View file

@ -122,7 +122,7 @@ final class PhabricatorTimelineEventView extends AphrontView {
array( array(
'class' => 'phabricator-timeline-icon-fill', 'class' => 'phabricator-timeline-icon-fill',
), ),
phutil_render_tag( phutil_tag(
'span', 'span',
array( array(
'class' => 'phabricator-timeline-icon sprite-icon '. 'class' => 'phabricator-timeline-icon sprite-icon '.
@ -141,7 +141,7 @@ final class PhabricatorTimelineEventView extends AphrontView {
$title = $icon.$title; $title = $icon.$title;
} }
$wedge = phutil_render_tag( $wedge = phutil_tag(
'div', 'div',
array( array(
'class' => 'phabricator-timeline-wedge phabricator-timeline-border', 'class' => 'phabricator-timeline-wedge phabricator-timeline-border',
@ -149,7 +149,7 @@ final class PhabricatorTimelineEventView extends AphrontView {
''); '');
$image_uri = $this->userHandle->getImageURI(); $image_uri = $this->userHandle->getImageURI();
$image = phutil_render_tag( $image = phutil_tag(
'div', 'div',
array( array(
'style' => 'background-image: url('.$image_uri.')', 'style' => 'background-image: url('.$image_uri.')',

View file

@ -37,7 +37,7 @@ final class PhabricatorTimelineView extends AphrontView {
} }
public static function renderSpacer() { public static function renderSpacer() {
return phutil_render_tag( return phutil_tag(
'div', 'div',
array( array(
'class' => 'phabricator-timeline-event-view '. 'class' => 'phabricator-timeline-event-view '.

View file

@ -309,7 +309,7 @@ final class PhabricatorStandardPageView extends PhabricatorBarePageView {
'debug' => $enable_debug, 'debug' => $enable_debug,
'pageObjects' => array_fill_keys($this->pageObjects, true), 'pageObjects' => array_fill_keys($this->pageObjects, true),
)); ));
$container = phutil_render_tag( $container = phutil_tag(
'div', 'div',
array( array(
'id' => $aphlict_container_id, 'id' => $aphlict_container_id,

View file

@ -130,7 +130,7 @@ final class PhabricatorMainMenuView extends AphrontView {
), ),
), ),
), ),
phutil_render_tag( phutil_tag(
'span', 'span',
array( array(
'class' => 'phabricator-menu-button-icon sprite-menu menu-icon-eye', 'class' => 'phabricator-menu-button-icon sprite-menu menu-icon-eye',
@ -151,7 +151,7 @@ final class PhabricatorMainMenuView extends AphrontView {
), ),
), ),
), ),
phutil_render_tag( phutil_tag(
'span', 'span',
array( array(
'class' => 'phabricator-menu-button-icon sprite-menu menu-icon-app', 'class' => 'phabricator-menu-button-icon sprite-menu menu-icon-app',
@ -277,7 +277,7 @@ final class PhabricatorMainMenuView extends AphrontView {
'class' => 'phabricator-main-menu-logo', 'class' => 'phabricator-main-menu-logo',
'href' => '/', 'href' => '/',
), ),
phutil_render_tag( phutil_tag(
'span', 'span',
array( array(
'class' => 'sprite-menu phabricator-main-menu-logo-image', 'class' => 'sprite-menu phabricator-main-menu-logo-image',
@ -311,7 +311,7 @@ final class PhabricatorMainMenuView extends AphrontView {
), ),
$count_number); $count_number);
$icon_tag = phutil_render_tag( $icon_tag = phutil_tag(
'span', 'span',
array( array(
'class' => 'sprite-menu phabricator-main-menu-alert-icon', 'class' => 'sprite-menu phabricator-main-menu-alert-icon',
@ -358,7 +358,7 @@ final class PhabricatorMainMenuView extends AphrontView {
} }
private function renderMenuIcon($name) { private function renderMenuIcon($name) {
return phutil_render_tag( return phutil_tag(
'span', 'span',
array( array(
'class' => 'phabricator-core-menu-icon '. 'class' => 'phabricator-core-menu-icon '.