-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathextend.php
28 lines (26 loc) · 826 Bytes
/
extend.php
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
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Flarum\Extend;
use Flarum\Frontend\Document;
return [
(new Extend\Frontend('forum'))
->css(__DIR__ . '/resources/less/extension.less'),
(new Extend\Frontend('forum'))
->content(function (Document $document) {
$document->foot[] = '
<!-- BackTop -->
<script src="https://cdn.jsdelivr.net/gh/Littlegolden/[email protected]/scrollTop/menu.js?ver=4.9.9"></script>
<a href="#" class="scroll-up" style="display: none;">
<i class="fa fa-chevron-up"></i>
</a>
<!-- BackTop -->
';
})
];