2015-07-23 20:35:03 +09:30
|
|
|
<?php
|
|
|
|
|
2015-09-04 12:31:41 +09:30
|
|
|
/*
|
|
|
|
* This file is part of Flarum.
|
|
|
|
*
|
2019-11-29 23:02:13 +00:00
|
|
|
* For detailed copyright and license information, please view the
|
|
|
|
* LICENSE file that was distributed with this source code.
|
2015-09-04 12:31:41 +09:30
|
|
|
*/
|
|
|
|
|
2018-01-02 22:40:54 +01:00
|
|
|
use Flarum\Extend;
|
|
|
|
use s9e\TextFormatter\Configurator;
|
2015-07-23 20:35:03 +09:30
|
|
|
|
2018-11-06 19:01:43 +10:30
|
|
|
return [
|
|
|
|
(new Extend\Frontend('forum'))
|
2020-03-01 09:52:30 -05:00
|
|
|
->js(__DIR__.'/js/dist/forum.js')
|
|
|
|
->css(__DIR__.'/less/forum.less'),
|
2018-11-06 19:01:43 +10:30
|
|
|
|
|
|
|
(new Extend\Formatter)
|
|
|
|
->configure(function (Configurator $config) {
|
|
|
|
$config->Litedown;
|
2020-03-01 09:52:30 -05:00
|
|
|
$config->tags['ispoiler']->template = '<span class="spoiler" data-s9e-livepreview-ignore-attrs="style" onclick="removeAttribute(\'style\'); removeAttribute(\'class\')" style="background:#444;color:transparent"><xsl:apply-templates/></span>';
|
2018-11-06 19:01:43 +10:30
|
|
|
})
|
|
|
|
];
|