2015-07-23 19:06:02 +08:00
|
|
|
<?php
|
|
|
|
|
2015-09-04 11:02:52 +08:00
|
|
|
/*
|
|
|
|
* This file is part of Flarum.
|
|
|
|
*
|
2019-11-30 07:01:54 +08:00
|
|
|
* For detailed copyright and license information, please view the
|
|
|
|
* LICENSE file that was distributed with this source code.
|
2015-09-04 11:02:52 +08:00
|
|
|
*/
|
|
|
|
|
2018-01-03 05:37:28 +08:00
|
|
|
use Flarum\Extend;
|
|
|
|
use s9e\TextFormatter\Configurator;
|
2015-07-23 19:06:02 +08:00
|
|
|
|
2018-01-03 05:37:28 +08:00
|
|
|
return [
|
2018-07-23 22:28:11 +08:00
|
|
|
(new Extend\Frontend('forum'))
|
2018-06-17 13:23:35 +08:00
|
|
|
->js(__DIR__.'/js/dist/forum.js')
|
2023-08-03 00:57:57 +08:00
|
|
|
->css(__DIR__.'/less/forum.less')
|
|
|
|
->jsDirectory(__DIR__.'/js/dist/forum'),
|
2018-04-25 08:46:58 +08:00
|
|
|
|
2018-06-17 13:31:19 +08:00
|
|
|
(new Extend\Formatter)
|
|
|
|
->configure(function (Configurator $config) {
|
2018-09-27 04:06:08 +08:00
|
|
|
$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('>:(', '😡');
|
2020-06-20 10:20:14 +08:00
|
|
|
}),
|
|
|
|
|
|
|
|
new Extend\Locales(__DIR__.'/locale'),
|
2018-01-03 05:37:28 +08:00
|
|
|
];
|