diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:44:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:44:51 +0000 |
commit | a1ec78bf0dc93d0e05e5f066f1949dc3baecea06 (patch) | |
tree | ee596ce1bc9840661386f96f9b8d1f919a106317 /extendStyles.php | |
parent | Initial commit. (diff) | |
download | icingaweb2-module-incubator-a1ec78bf0dc93d0e05e5f066f1949dc3baecea06.tar.xz icingaweb2-module-incubator-a1ec78bf0dc93d0e05e5f066f1949dc3baecea06.zip |
Adding upstream version 0.20.0.upstream/0.20.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'extendStyles.php')
-rw-r--r-- | extendStyles.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/extendStyles.php b/extendStyles.php new file mode 100644 index 0000000..7082188 --- /dev/null +++ b/extendStyles.php @@ -0,0 +1,21 @@ +<?php /** @noinspection PhpMissingParentConstructorInspection */ + +namespace Icinga\Module\Incubator; + +use Icinga\Application\Icinga; +use Icinga\Web\StyleSheet; + +class Styles extends StyleSheet +{ + public function __construct() + { + $pubPath = Icinga::app()->getBaseDir('public'); + $slashes = \substr_count($pubPath, '/'); + $prefix = \str_repeat('/..', $slashes) . __DIR__; + $files = ["$prefix/public/css/combined.less"]; + + foreach ($files as $file) { + self::$lessFiles[] = $file; + } + } +} |