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 [
|
2018-07-23 16:28:11 +02:00
|
|
|
(new Extend\Frontend('forum'))
|
2018-06-17 14:53:35 +09:30
|
|
|
->js(__DIR__.'/js/dist/forum.js')
|
2023-08-02 17:57:57 +01:00
|
|
|
->css(__DIR__.'/less/forum.less')
|
|
|
|
->jsDirectory(__DIR__.'/js/dist/forum'),
|
2018-04-25 10:16:58 +09:30
|
|
|
|
2018-06-17 15:01:19 +09:30
|
|
|
(new Extend\Formatter)
|
|
|
|
->configure(function (Configurator $config) {
|
2018-09-26 23:36:08 +03:30
|
|
|
$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-19 22:20:14 -04:00
|
|
|
}),
|
|
|
|
|
|
|
|
new Extend\Locales(__DIR__.'/locale'),
|
2018-01-02 22:37:28 +01:00
|
|
|
];
|