mirror of
https://github.com/e107inc/e107.git
synced 2025-04-19 20:21:51 +02:00
Issue #991 : Added support for CSS files in the footer of the <body>. Tested in FF successfully, more testing required.
This commit is contained in:
parent
999c3d1ded
commit
05083699e4
@ -298,7 +298,21 @@ if (is_array($pref['e_footer_list']))
|
||||
unset($ret);
|
||||
}
|
||||
|
||||
// Load Footer CSS
|
||||
//
|
||||
echo "\n\n<!-- ======= [JSManager] FOOTER: Remaining CSS ======= -->";
|
||||
|
||||
$CSSORDER = deftrue('CSSORDER') ? explode(",",CSSORDER) : array('other','core','plugin','theme','inline');
|
||||
|
||||
foreach($CSSORDER as $val)
|
||||
{
|
||||
$cssId = $val."_css";
|
||||
e107::getJs()->renderJs($cssId, false, 'css', false);
|
||||
}
|
||||
|
||||
unset($CSSORDER);
|
||||
|
||||
echo "\n\n<!-- ======= [JSManager] FOOTER: Remaining JS ======= -->";
|
||||
|
||||
// [JSManager] Load JS Footer Includes by priority
|
||||
e107::getJs()->renderJs('footer', true);
|
||||
|
@ -1193,7 +1193,7 @@ class e_jsmanager
|
||||
$path = $path[1];
|
||||
if(strpos($path, 'http') !== 0) $path = $tp->replaceConstants($path, 'abs').'?'.$this->getCacheId();
|
||||
|
||||
echo $pre.'<link rel="stylesheet" media="'.$media.'" type="text/css" href="'.$path.'" />'.$post;
|
||||
echo $pre.'<link rel="stylesheet" media="'.$media.'" property="stylesheet" type="text/css" href="'.$path.'" />'.$post;
|
||||
echo "\n";
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user