27 lines
665 B
PHP
27 lines
665 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of acpl/mobile-tab.
|
|
*
|
|
* Copyright (c) 2021 forum.android.com.pl.
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE.md
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace ACPL\MobileTab;
|
|
|
|
use Flarum\Extend;
|
|
use Flarum\Frontend\Document;
|
|
|
|
return [
|
|
(new Extend\Frontend('forum'))->js(__DIR__.'/js/dist/forum.js')->css(__DIR__.'/less/forum.less'),
|
|
|
|
new Extend\Locales(__DIR__.'/locale'),
|
|
|
|
(new Extend\Frontend('forum'))
|
|
->content(function (Document $document) {
|
|
$document->meta['viewport'] = "{$document->meta['viewport']}, viewport-fit=cover";
|
|
}),
|
|
|
|
];
|