X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fstylesheet.php;h=87c64c2e48624cebf7f69ec3dd6a03be7345639f;hp=0e2045ae026938a12e0498acee01af40b7e8632b;hb=66b91ce490ab549425619c95fc12086e126d541b;hpb=9e604ce404fe7d2d8dafc259a5fb8cd826aec5e6 diff --git a/inc/stylesheet.php b/inc/stylesheet.php index 0e2045ae02..87c64c2e48 100644 --- a/inc/stylesheet.php +++ b/inc/stylesheet.php @@ -58,17 +58,19 @@ if ((getOutputMode() == '1') || (getConfig('css_php') == 'DIRECT')) { // Load CSS files $STYLES = merge_array($STYLES, EXT_GET_CSS_FILES()); + // Generate base path + $basePath = sprintf("%stheme/%s/css/", getConfig('PATH'), getCurrentTheme()); + // Output inclusion lines foreach ($STYLES as $value) { // Only include found CSS files (to reduce 404 requests) - $basePath = sprintf("%stheme/%s/css/", constant('PATH'), getCurrentTheme()); $FQFN = $basePath . $value; // Do include only existing files and whose are not empty if ((isFileReadable($FQFN)) && (filesize($FQFN) > 0)) { switch (getConfig('css_php')) { case 'DIRECT': // Just link them (unsupported) - OUTPUT_HTML(''); + OUTPUT_HTML(''); break; case 'FILE': // Output contents @@ -83,7 +85,7 @@ if ((getOutputMode() == '1') || (getConfig('css_php') == 'DIRECT')) { } // END - foreach } else { // Now we load all CSS files from css.php! - OUTPUT_HTML(''); } -// +// [EOF] ?>