mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
IMPR: Fontawesome
This commit is contained in:
parent
142fc48b00
commit
15aa07ba91
@ -85,6 +85,8 @@ class DeferredRequirements implements TemplateGlobalProvider
|
|||||||
$v = !isset($config['fontawesome_version']) || !$config['fontawesome_version']
|
$v = !isset($config['fontawesome_version']) || !$config['fontawesome_version']
|
||||||
? Config::inst()->get(FontAwesomeField::class, 'version')
|
? Config::inst()->get(FontAwesomeField::class, 'version')
|
||||||
: $config['fontawesome_version'];
|
: $config['fontawesome_version'];
|
||||||
|
|
||||||
|
Requirements::customScript('FontAwesomeConfig={searchPseudoElements:true}');
|
||||||
self::loadJS('//use.fontawesome.com/releases/v'.$v.'/js/all.js');
|
self::loadJS('//use.fontawesome.com/releases/v'.$v.'/js/all.js');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user