1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Only load hero CSS when active.

This commit is contained in:
Cameron
2020-12-17 05:06:48 -08:00
parent cf1eaf5d3c
commit 8c0e2c0392

View File

@@ -13,15 +13,14 @@
if (!defined('e107_INIT')) { exit; }
$heroVisibility = e107::pref('hero', 'visibility', e_UC_NOBODY);
if(USER_AREA) // prevents inclusion of JS/CSS/meta in the admin area.
if(USER_AREA && check_class($heroVisibility))
{
// @todo add check for the hero_menu being active.
e107::library('load', 'animate.css');
e107::css('hero', 'css/hero.css');
}
unset($heroVisibility);