33 lines
965 B
PHP
Raw Normal View History

2015-07-23 20:36:02 +09:30
<?php
2015-09-04 12:32:52 +09:30
/*
* This file is part of Flarum.
*
2019-11-29 23:01:54 +00:00
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
2015-09-04 12:32:52 +09:30
*/
2018-01-02 22:37:28 +01:00
use Flarum\Extend;
use s9e\TextFormatter\Configurator;
2015-07-23 20:36:02 +09:30
2018-01-02 22:37:28 +01:00
return [
(new Extend\Frontend('forum'))
2018-06-17 14:53:35 +09:30
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/less/forum.less'),
2018-04-25 10:16:58 +09:30
2018-06-17 15:01:19 +09:30
(new Extend\Formatter)
->configure(function (Configurator $config) {
$config->Emoticons->add(':)', '🙂');
$config->Emoticons->add(':D', '😃');
$config->Emoticons->add(':P', '😛');
$config->Emoticons->add(':(', '🙁');
$config->Emoticons->add(':|', '😐');
$config->Emoticons->add(';)', '😉');
$config->Emoticons->add(':\'(', '😢');
$config->Emoticons->add(':O', '😮');
$config->Emoticons->add('>:(', '😡');
}),
new Extend\Locales(__DIR__.'/locale'),
2018-01-02 22:37:28 +01:00
];