2015-07-23 19:05:03 +08:00
|
|
|
<?php
|
|
|
|
|
2015-09-04 11:01:41 +08:00
|
|
|
/*
|
|
|
|
* This file is part of Flarum.
|
|
|
|
*
|
2019-11-30 07:02:13 +08:00
|
|
|
* For detailed copyright and license information, please view the
|
|
|
|
* LICENSE file that was distributed with this source code.
|
2015-09-04 11:01:41 +08:00
|
|
|
*/
|
|
|
|
|
2018-01-03 05:40:54 +08:00
|
|
|
use Flarum\Extend;
|
|
|
|
use s9e\TextFormatter\Configurator;
|
2015-07-23 19:05:03 +08:00
|
|
|
|
2018-11-06 16:31:43 +08:00
|
|
|
return [
|
|
|
|
(new Extend\Frontend('forum'))
|
2020-03-01 22:52:30 +08:00
|
|
|
->js(__DIR__.'/js/dist/forum.js')
|
2022-03-10 08:53:33 +08:00
|
|
|
->css(__DIR__.'/less/common.less'),
|
|
|
|
|
|
|
|
(new Extend\Frontend('admin'))
|
|
|
|
->js(__DIR__.'/js/dist/admin.js')
|
|
|
|
->css(__DIR__.'/less/common.less'),
|
2018-11-06 16:31:43 +08:00
|
|
|
|
|
|
|
(new Extend\Formatter)
|
|
|
|
->configure(function (Configurator $config) {
|
|
|
|
$config->Litedown;
|
2020-04-25 04:10:36 +08:00
|
|
|
|
|
|
|
// Overwrite the default inline spoiler so that it is compatible
|
|
|
|
// with more styling for children in an external stylesheet.
|
|
|
|
$config->tags['ispoiler']->template = '<span class="spoiler" data-s9e-livepreview-ignore-attrs="class" onclick="removeAttribute(\'class\')"><xsl:apply-templates/></span>';
|
2020-06-20 10:18:56 +08:00
|
|
|
}),
|
|
|
|
|
2021-03-26 01:51:21 +08:00
|
|
|
new Extend\Locales(__DIR__.'/locale'),
|
2018-11-06 16:31:43 +08:00
|
|
|
];
|