mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +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:
@@ -298,7 +298,21 @@ if (is_array($pref['e_footer_list']))
|
|||||||
unset($ret);
|
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
|
// [JSManager] Load JS Footer Includes by priority
|
||||||
e107::getJs()->renderJs('footer', true);
|
e107::getJs()->renderJs('footer', true);
|
||||||
|
@@ -1193,7 +1193,7 @@ class e_jsmanager
|
|||||||
$path = $path[1];
|
$path = $path[1];
|
||||||
if(strpos($path, 'http') !== 0) $path = $tp->replaceConstants($path, 'abs').'?'.$this->getCacheId();
|
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";
|
echo "\n";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user