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

e107::link() now supports a plain HTML string. Useful for font preloading.

eg. e107::link('rel="preload" href="{THEME}fonts/fontawesome-webfont.woff2?v=4.7.0" as="font" type="font/woff2" crossorigin');
Bootstrap automatic font preload added.
This commit is contained in:
Cameron
2020-12-03 08:22:51 -08:00
parent 6fd582655a
commit f621aeaa56
4 changed files with 44 additions and 10 deletions

View File

@@ -2718,6 +2718,8 @@ class e_parse extends e_parser
*/
public function staticUrl($path=null, $opts=array())
{
$path = $this->replaceConstants($path,'abs');
if(!defined('e_HTTP_STATIC') || deftrue('e_ADMIN_AREA'))
{
// e107::getDebug()->log("e_HTTP_STATIC not defined");