1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

Issue #3104 Library CSS fix for late calls. (eg. bootstrap-switch )

This commit is contained in:
Cameron
2018-05-12 11:45:55 -07:00
parent b71d7704fa
commit ac4b505ceb
4 changed files with 11 additions and 1 deletions

View File

@@ -367,6 +367,14 @@ echo "</body></html>";
// SecretR - EXPERIMENT! SEND CSS data to header. Performance tests in progress.
$tmp = array();
$e_js = e107::getJs();
$tmp0 = $e_js->renderJs('library_css', false, 'css', true);
if($tmp0)
{
$tmp['search'][] = '<!-- footer_library_css -->';
$tmp['replace'][] = $tmp0;
}
// Other CSS - from unknown location, different from core/theme/plugin location or backward compatibility
$tmp1 = $e_js->renderJs('other_css', false, 'css', true);
if($tmp1)

View File

@@ -271,6 +271,7 @@ unset($e_headers);
echo "\n<!-- Library CSS -->\n";
$e_js->renderJs('library_css', false, 'css', false);
echo "\n<!-- footer_library_css -->\n"; // substituted in footer when detected.
// Other CSS - from unknown location, different from core/theme/plugin location or backward compatibility
$e_js->renderJs('other_css', false, 'css', false);