framework/extensions/emoji/bootstrap.php
2018-01-03 09:59:10 +01:00

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('>:(', '😡');
})
];