1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 11:12:42 +01:00
phorge-phorge/src/applications/uiexample/examples/PhabricatorUINotificationExample.php
2013-02-13 14:51:18 -08:00

30 lines
705 B
PHP

<?php
final class PhabricatorUINotificationExample extends PhabricatorUIExample {
public function getName() {
return 'Notifications';
}
public function getDescription() {
return hsprintf('Use <tt>JX.Notification</tt> to create notifications.');
}
public function renderExample() {
require_celerity_resource('phabricator-notification-css');
Javelin::initBehavior('phabricator-notification-example');
$content = javelin_tag(
'a',
array(
'sigil' => 'notification-example',
'class' => 'button green',
),
'Show Notification');
$content = hsprintf('<div style="padding: 1em 3em;">%s</div>', $content);
return $content;
}
}