1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 18:32:41 +01:00
phorge-phorge/src/applications/uiexample/examples/PhabricatorUINotificationExample.php

31 lines
705 B
PHP
Raw Normal View History

<?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');
2013-02-13 23:50:15 +01:00
$content = hsprintf('<div style="padding: 1em 3em;">%s</div>', $content);
return $content;
}
}