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:
@@ -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)
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user