1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 07:12: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[] =
'<div class="dark-console-panel-header">'.
phutil_render_tag(
phutil_tag(
'a',
array(
'href' => $this->getRequestURI()->alter('__analyze__', true),

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -30,7 +30,7 @@ final class DifferentialDiffCreateController extends DifferentialController {
$form = new AphrontFormView();
$arcanist_href = PhabricatorEnv::getDoclink(
'article/Arcanist_User_Guide.html');
$arcanist_link = phutil_render_tag(
$arcanist_link = phutil_tag(
'a',
array(
'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 '.
'each file individually. ', $count).
"<strong>".
phutil_render_tag(
phutil_tag(
'a',
array(
'href' => $request_uri

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -181,7 +181,7 @@ final class AphrontTableView extends AphrontView {
$classes[] = 'aphront-table-view-sortable-selected';
}
$sort_glyph = phutil_render_tag(
$sort_glyph = phutil_tag(
'span',
array(
'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',
array(
'name' => $this->getTimeInputName(),

View file

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

View file

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

View file

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

View file

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

View file

@ -50,7 +50,7 @@ final class PhabricatorActionView extends AphrontView {
}
require_celerity_resource('sprite-icon-css');
$icon = phutil_render_tag(
$icon = phutil_tag(
'span',
array(
'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',
array(
'name' => $this->anchorName,

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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