mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
35 lines
1.0 KiB
PHP
35 lines
1.0 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* (c) Toby Zerner <toby.zerner@gmail.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
use Flarum\Extend;
|
|
use s9e\TextFormatter\Configurator;
|
|
|
|
return [
|
|
(new Extend\Assets('forum'))
|
|
->defaultAssets(__DIR__)
|
|
->bootstrapper('flarum/emoji/main'),
|
|
new Extend\FormatterConfiguration(function (Configurator $config) {
|
|
$config->Emoji->useEmojiOne();
|
|
$config->Emoji->omitImageSize();
|
|
$config->Emoji->useSVG();
|
|
|
|
$config->Emoji->addAlias(':)', '🙂');
|
|
$config->Emoji->addAlias(':D', '😃');
|
|
$config->Emoji->addAlias(':P', '😛');
|
|
$config->Emoji->addAlias(':(', '🙁');
|
|
$config->Emoji->addAlias(':|', '😐');
|
|
$config->Emoji->addAlias(';)', '😉');
|
|
$config->Emoji->addAlias(':\'(', '😢');
|
|
$config->Emoji->addAlias(':O', '😮');
|
|
$config->Emoji->addAlias('>:(', '😡');
|
|
})
|
|
];
|