Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100492814
PhabricatorNotificationUIExample.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 31, 05:49
Size
821 B
Mime Type
text/x-php
Expires
Sun, Feb 2, 05:49 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23968146
Attached To
rPH Phabricator
PhabricatorNotificationUIExample.php
View Options
<?php
final
class
PhabricatorNotificationUIExample
extends
PhabricatorUIExample
{
public
function
getName
()
{
return
pht
(
'Notifications'
);
}
public
function
getDescription
()
{
return
pht
(
'Use %s to create notifications.'
,
phutil_tag
(
'tt'
,
array
(),
'JX.Notification'
));
}
public
function
getCategory
()
{
return
pht
(
'Technical'
);
}
public
function
renderExample
()
{
require_celerity_resource
(
'phabricator-notification-css'
);
Javelin
::
initBehavior
(
'phabricator-notification-example'
);
$content
=
javelin_tag
(
'a'
,
array
(
'sigil'
=>
'notification-example'
,
'class'
=>
'button button-green'
,
),
pht
(
'Show Notification'
));
$content
=
hsprintf
(
'<div style="padding: 1em 3em;">%s</div>'
,
$content
);
return
$content
;
}
}
Event Timeline
Log In to Comment