Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F426253
PhabricatorTwoColumnUIExample.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
734 B
Referenced Files
None
Subscribers
None
PhabricatorTwoColumnUIExample.php
View Options
<?php
final
class
PhabricatorTwoColumnUIExample
extends
PhabricatorUIExample
{
public
function
getName
()
{
return
pht
(
'Two Column Layout'
);
}
public
function
getDescription
()
{
return
pht
(
'Two Column mobile friendly layout'
);
}
public
function
renderExample
()
{
$main
=
phutil_tag
(
'div'
,
array
(
'style'
=>
'border: 1px solid blue; padding: 20px;'
,
),
'Mary, mary quite contrary.'
);
$side
=
phutil_tag
(
'div'
,
array
(
'style'
=>
'border: 1px solid red; padding: 20px;'
,
),
'How does your garden grow?'
);
$content
=
id
(
new
AphrontTwoColumnView
())
->
setMainColumn
(
$main
)
->
setSideColumn
(
$side
);
return
$content
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 2:04 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
58225
Default Alt Text
PhabricatorTwoColumnUIExample.php (734 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment