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