mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 20:52:43 +01:00
fe5cd4ca2c
Summary: Normalizes all `setFontIcon` calls to `setIcon`. Test Plan: UIExamples, Almanac, Apps list, etc. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, hach-que, yelirekim Differential Revision: https://secure.phabricator.com/D15129
73 lines
1.9 KiB
PHP
73 lines
1.9 KiB
PHP
<?php
|
|
|
|
final class PhabricatorMacroApplication extends PhabricatorApplication {
|
|
|
|
public function getBaseURI() {
|
|
return '/macro/';
|
|
}
|
|
|
|
public function getName() {
|
|
return pht('Macro');
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Image Macros and Memes');
|
|
}
|
|
|
|
public function getIcon() {
|
|
return 'fa-file-image-o';
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x9A\x98";
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_UTILITIES;
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/macro/' => array(
|
|
'(query/(?P<key>[^/]+)/)?' => 'PhabricatorMacroListController',
|
|
'create/' => 'PhabricatorMacroEditController',
|
|
'view/(?P<id>[1-9]\d*)/' => 'PhabricatorMacroViewController',
|
|
'comment/(?P<id>[1-9]\d*)/' => 'PhabricatorMacroCommentController',
|
|
'edit/(?P<id>[1-9]\d*)/' => 'PhabricatorMacroEditController',
|
|
'audio/(?P<id>[1-9]\d*)/' => 'PhabricatorMacroAudioController',
|
|
'disable/(?P<id>[1-9]\d*)/' => 'PhabricatorMacroDisableController',
|
|
'meme/' => 'PhabricatorMacroMemeController',
|
|
'meme/create/' => 'PhabricatorMacroMemeDialogController',
|
|
),
|
|
);
|
|
}
|
|
|
|
public function getRemarkupRules() {
|
|
return array(
|
|
new PhabricatorIconRemarkupRule(),
|
|
new PhabricatorEmojiRemarkupRule(),
|
|
);
|
|
}
|
|
|
|
protected function getCustomCapabilities() {
|
|
return array(
|
|
PhabricatorMacroManageCapability::CAPABILITY => array(
|
|
'caption' => pht('Allows creating and editing macros.'),
|
|
),
|
|
);
|
|
}
|
|
|
|
public function getMailCommandObjects() {
|
|
return array(
|
|
'macro' => array(
|
|
'name' => pht('Email Commands: Macros'),
|
|
'header' => pht('Interacting with Macros'),
|
|
'object' => new PhabricatorFileImageMacro(),
|
|
'summary' => pht(
|
|
'This page documents the commands you can use to interact with '.
|
|
'image macros.'),
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|