mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 07:36:32 +02:00
Only load css on frontpage.
This commit is contained in:
@@ -15,7 +15,7 @@ if (!defined('e107_INIT')) { exit; }
|
|||||||
|
|
||||||
$heroVisibility = e107::pref('hero', 'visibility', e_UC_NOBODY);
|
$heroVisibility = e107::pref('hero', 'visibility', e_UC_NOBODY);
|
||||||
|
|
||||||
if(USER_AREA && check_class($heroVisibility))
|
if(USER_AREA && deftrue('e_FRONTPAGE') && check_class($heroVisibility))
|
||||||
{
|
{
|
||||||
e107::library('load', 'animate.css');
|
e107::library('load', 'animate.css');
|
||||||
e107::css('hero', 'css/hero.css');
|
e107::css('hero', 'css/hero.css');
|
||||||
|
Reference in New Issue
Block a user