1
0
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:
Cameron
2020-12-17 06:02:57 -08:00
parent 42f0e902d4
commit bbfd593165

View File

@@ -15,7 +15,7 @@ if (!defined('e107_INIT')) { exit; }
$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::css('hero', 'css/hero.css');