24 lines
743 B
PHP
Raw Normal View History

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
return [
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/less/forum.less'),
(new Extend\Formatter)
->configure(function (Configurator $config) {
$config->Litedown;
$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>';
})
];