-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextend.php
More file actions
executable file
·30 lines (27 loc) · 1.11 KB
/
extend.php
File metadata and controls
executable file
·30 lines (27 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/*
* bbbbcode is a Flarum extension created by Billy Wilcosky.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* For instructions, please view the README file.
*/
use Flarum\Extend;
use Flarum\Frontend\Document;
use s9e\TextFormatter\Configurator;
return [
(new Extend\Frontend('forum'))
->content(function (Document $document) {
$document->head[] = '<link rel="stylesheet" type="text/css" href="/assets/extensions/zerosonesfun-bbbbcode/styles.css">';
}),
(new Extend\Formatter)
->configure(function (Configurator $config) {
$config->BBCodes->addFromRepository('TABLE');
$config->BBCodes->addFromRepository('TBODY');
$config->BBCodes->addFromRepository('TD');
$config->BBCodes->addFromRepository('TH');
$config->BBCodes->addFromRepository('TR');
$config->BBCodes->addFromRepository('THEAD');
$config->BBCodes->addFromRepository('HR');
$config->BBCodes->addFromRepository('FLOAT');
})
];