mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 17:02:41 +01:00
Convert phutil_render_tag(X, Y, phutil_render_tag(...)) to phutil_render_html
Summary: Created with spatch: lang=diff - phutil_render_tag + phutil_render_html (X, Y, phutil_render_tag(...)) - phutil_render_tag + phutil_render_html (X, Y, phutil_render_html(...)) Test Plan: Loaded homepage Reviewers: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4502
This commit is contained in:
parent
3c1b8df8ae
commit
9670f0c636
10 changed files with 13 additions and 13 deletions
|
@ -137,7 +137,7 @@ final class PhabricatorConfigEditController
|
||||||
array(
|
array(
|
||||||
'class' => 'phabricator-remarkup',
|
'class' => 'phabricator-remarkup',
|
||||||
),
|
),
|
||||||
$engine->getOutput($option, 'description'));
|
phutil_safe_html($engine->getOutput($option, 'description')));
|
||||||
|
|
||||||
$form
|
$form
|
||||||
->setUser($user)
|
->setUser($user)
|
||||||
|
|
|
@ -337,7 +337,7 @@ final class DifferentialChangesetTwoUpRenderer
|
||||||
$vs = 0) {
|
$vs = 0) {
|
||||||
$old = null;
|
$old = null;
|
||||||
if ($old_file) {
|
if ($old_file) {
|
||||||
$old = phutil_render_tag(
|
$old = phutil_tag(
|
||||||
'div',
|
'div',
|
||||||
array(
|
array(
|
||||||
'class' => 'differential-image-stage'
|
'class' => 'differential-image-stage'
|
||||||
|
@ -353,7 +353,7 @@ final class DifferentialChangesetTwoUpRenderer
|
||||||
|
|
||||||
$new = null;
|
$new = null;
|
||||||
if ($new_file) {
|
if ($new_file) {
|
||||||
$new = phutil_render_tag(
|
$new = phutil_tag(
|
||||||
'div',
|
'div',
|
||||||
array(
|
array(
|
||||||
'class' => 'differential-image-stage'
|
'class' => 'differential-image-stage'
|
||||||
|
|
|
@ -70,7 +70,7 @@ final class PhamePostPublishController extends PhameController {
|
||||||
|
|
||||||
// TODO: Clean up this CSS.
|
// TODO: Clean up this CSS.
|
||||||
|
|
||||||
return phutil_render_tag(
|
return phutil_tag(
|
||||||
'div',
|
'div',
|
||||||
array(
|
array(
|
||||||
'style' => 'text-align: center; padding: 1em;',
|
'style' => 'text-align: center; padding: 1em;',
|
||||||
|
|
|
@ -59,7 +59,7 @@ final class PhamePostView extends AphrontView {
|
||||||
|
|
||||||
public function renderTitle() {
|
public function renderTitle() {
|
||||||
$href = $this->getSkin()->getURI('post/'.$this->getPost()->getPhameTitle());
|
$href = $this->getSkin()->getURI('post/'.$this->getPost()->getPhameTitle());
|
||||||
return phutil_render_tag(
|
return phutil_tag(
|
||||||
'h2',
|
'h2',
|
||||||
array(
|
array(
|
||||||
'class' => 'phame-post-title',
|
'class' => 'phame-post-title',
|
||||||
|
|
|
@ -401,7 +401,7 @@ final class PhabricatorSlowvotePollController
|
||||||
|
|
||||||
$profile_image = $handle->getImageURI();
|
$profile_image = $handle->getImageURI();
|
||||||
|
|
||||||
$user_markup[] = phutil_render_tag(
|
$user_markup[] = phutil_tag(
|
||||||
'a',
|
'a',
|
||||||
array(
|
array(
|
||||||
'href' => $handle->getURI(),
|
'href' => $handle->getURI(),
|
||||||
|
|
|
@ -47,7 +47,7 @@ final class PhabricatorHeaderView extends AphrontView {
|
||||||
self::renderSingleView($this->tags));
|
self::renderSingleView($this->tags));
|
||||||
}
|
}
|
||||||
|
|
||||||
return phutil_render_tag(
|
return phutil_tag(
|
||||||
'div',
|
'div',
|
||||||
array(
|
array(
|
||||||
'class' => 'phabricator-header-shell',
|
'class' => 'phabricator-header-shell',
|
||||||
|
|
|
@ -42,7 +42,7 @@ final class PhabricatorPinboardItemView extends AphrontView {
|
||||||
$header);
|
$header);
|
||||||
}
|
}
|
||||||
|
|
||||||
$image = phutil_render_tag(
|
$image = phutil_tag(
|
||||||
'a',
|
'a',
|
||||||
array(
|
array(
|
||||||
'href' => $this->uri,
|
'href' => $this->uri,
|
||||||
|
|
|
@ -66,17 +66,17 @@ final class PhabricatorSourceCodeView extends AphrontView {
|
||||||
$classes[] = 'remarkup-code';
|
$classes[] = 'remarkup-code';
|
||||||
$classes[] = 'PhabricatorMonospaced';
|
$classes[] = 'PhabricatorMonospaced';
|
||||||
|
|
||||||
return phutil_render_tag(
|
return phutil_tag(
|
||||||
'div',
|
'div',
|
||||||
array(
|
array(
|
||||||
'class' => 'phabricator-source-code-container',
|
'class' => 'phabricator-source-code-container',
|
||||||
),
|
),
|
||||||
phutil_render_tag(
|
phutil_tag(
|
||||||
'table',
|
'table',
|
||||||
array(
|
array(
|
||||||
'class' => implode(' ', $classes),
|
'class' => implode(' ', $classes),
|
||||||
),
|
),
|
||||||
implode('', $rows)));
|
new PhutilSafeHTML(implode('', $rows))));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,7 +117,7 @@ final class PhabricatorTimelineEventView extends AphrontView {
|
||||||
if ($this->icon) {
|
if ($this->icon) {
|
||||||
$title_classes[] = 'phabricator-timeline-title-with-icon';
|
$title_classes[] = 'phabricator-timeline-title-with-icon';
|
||||||
|
|
||||||
$icon = phutil_render_tag(
|
$icon = phutil_tag(
|
||||||
'span',
|
'span',
|
||||||
array(
|
array(
|
||||||
'class' => 'phabricator-timeline-icon-fill',
|
'class' => 'phabricator-timeline-icon-fill',
|
||||||
|
|
|
@ -271,7 +271,7 @@ final class PhabricatorMainMenuView extends AphrontView {
|
||||||
}
|
}
|
||||||
|
|
||||||
private function renderPhabricatorLogo() {
|
private function renderPhabricatorLogo() {
|
||||||
return phutil_render_tag(
|
return phutil_tag(
|
||||||
'a',
|
'a',
|
||||||
array(
|
array(
|
||||||
'class' => 'phabricator-main-menu-logo',
|
'class' => 'phabricator-main-menu-logo',
|
||||||
|
|
Loading…
Reference in a new issue