From fcbf3ce37ca8f90a3e36d524a3274ffc063a40e3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:26:02 +0200 Subject: Adding upstream version 0.10.2+dfsg1. Signed-off-by: Daniel Baumann --- library/Pdfexport/PrintStyleSheet.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 library/Pdfexport/PrintStyleSheet.php (limited to 'library/Pdfexport/PrintStyleSheet.php') diff --git a/library/Pdfexport/PrintStyleSheet.php b/library/Pdfexport/PrintStyleSheet.php new file mode 100644 index 0000000..71a235a --- /dev/null +++ b/library/Pdfexport/PrintStyleSheet.php @@ -0,0 +1,25 @@ +lessCompiler->setTheme(join(DIRECTORY_SEPARATOR, [ + Icinga::app()->getModuleManager()->getModule('pdfexport')->getCssDir(), + 'print.less' + ])); + + if (method_exists($this->lessCompiler, 'setThemeMode')) { + $this->lessCompiler->setThemeMode($this->pubPath . '/css/modes/none.less'); + } + } +} -- cgit v1.2.3