2015-05-09 12:31:32 +12:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class FAInjector
|
|
|
|
*/
|
|
|
|
class FAInjector extends Extension
|
|
|
|
{
|
2015-05-10 13:29:12 +12:00
|
|
|
public function onAfterInit()
|
2015-05-09 12:31:32 +12:00
|
|
|
{
|
2015-05-10 12:11:01 +12:00
|
|
|
if (SiteConfig::current_site_config()->UseThemeCSS) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2015-05-09 14:58:24 +12:00
|
|
|
if (SiteConfig::current_site_config()->UseCDN) {
|
|
|
|
Requirements::css("//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css");
|
|
|
|
} else {
|
2015-05-10 12:00:14 +12:00
|
|
|
Requirements::css("font-awesome/css/lib/font-awesome.min.css");
|
2015-05-09 14:58:24 +12:00
|
|
|
}
|
|
|
|
|
2015-05-09 12:31:32 +12:00
|
|
|
}
|
|
|
|
}
|