CSS inclusion fix

This commit is contained in:
Roland Gruber 2022-01-01 20:27:05 +01:00
parent 63526f0c2c
commit 1a775090b0
6 changed files with 5 additions and 20 deletions

View file

@ -1199,7 +1199,7 @@ lib/3rdParty/duo/*.php E 2019 Du
graphics/webauthn.svg F 2017 Duo Security, Inc. graphics/webauthn.svg F 2017 Duo Security, Inc.
templates/lib/600_jquery.magnific-popup.js B 2016 Dmitry Semenov templates/lib/600_jquery.magnific-popup.js B 2016 Dmitry Semenov
style/610_magnific-popup.css B 2016 Dmitry Semenov style/610_magnific-popup.css B 2016 Dmitry Semenov
style/responsive/105_normalize.css B Nicolas Gallagher and Jonathan Neal style/010_normalize.css B Nicolas Gallagher and Jonathan Neal
style/responsive/110_grid.css B style/050_grid.css B
templates/lib/extra/jstree/* B 2014 Ivan Bozhanov templates/lib/extra/jstree/* B 2014 Ivan Bozhanov
style/jstree/* B 2014 Ivan Bozhanov style/jstree/* B 2014 Ivan Bozhanov

View file

@ -1198,7 +1198,7 @@ lib/3rdParty/duo/*.php E 2019 Du
graphics/webauthn.svg F 2017 Duo Security, Inc. graphics/webauthn.svg F 2017 Duo Security, Inc.
templates/lib/600_jquery.magnific-popup.js B 2016 Dmitry Semenov templates/lib/600_jquery.magnific-popup.js B 2016 Dmitry Semenov
style/610_magnific-popup.css B 2016 Dmitry Semenov style/610_magnific-popup.css B 2016 Dmitry Semenov
style/responsive/105_normalize.css B Nicolas Gallagher and Jonathan Neal style/010_normalize.css B Nicolas Gallagher and Jonathan Neal
style/responsive/110_grid.css B style/050_grid.css B
templates/lib/extra/jstree/* B 2014 Ivan Bozhanov templates/lib/extra/jstree/* B 2014 Ivan Bozhanov
style/jstree/* B 2014 Ivan Bozhanov style/jstree/* B 2014 Ivan Bozhanov

View file

@ -1869,22 +1869,7 @@ function printHeaderContents($title, $prefix) {
echo '<title>'; echo '<title>';
echo $title; echo $title;
echo "</title>\n"; echo "</title>\n";
// include responsive CSS // include CSS files
$cssDirName = dirname(__FILE__) . '/../style/responsive';
$cssDir = dir($cssDirName);
$cssFiles = array();
$cssEntry = $cssDir->read();
while ($cssEntry !== false) {
if (substr($cssEntry, strlen($cssEntry) - 4, 4) == '.css') {
$cssFiles[] = $cssEntry;
}
$cssEntry = $cssDir->read();
}
sort($cssFiles);
foreach ($cssFiles as $cssEntry) {
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"$prefix/style/responsive/$cssEntry\">\n";
}
// include all other CSS files
$cssDirName = dirname(__FILE__) . '/../style'; $cssDirName = dirname(__FILE__) . '/../style';
$cssDir = dir($cssDirName); $cssDir = dir($cssDirName);
$cssFiles = array(); $cssFiles = array();