Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106803917
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
Mon, Mar 31, 21:36
Size
726 B
Mime Type
text/x-php
Expires
Wed, Apr 2, 21:36 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25238261
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