diff options
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; + } + } +} |