Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99465809
PhabricatorTwoColumnExample.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jan 24, 19:43
Size
726 B
Mime Type
text/x-php
Expires
Sun, Jan 26, 19:43 (2 d)
Engine
blob
Format
Raw Data
Handle
23798387
Attached To
rPH Phabricator
PhabricatorTwoColumnExample.php
View Options
<?php
final
class
PhabricatorTwoColumnExample
extends
PhabricatorUIExample
{
public
function
getName
()
{
return
'Two Column Layout'
;
}
public
function
getDescription
()
{
return
'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
;
}
}
Event Timeline
Log In to Comment