1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-13 17:09:46 +01:00

Update hero_menu.php

This commit is contained in:
Gábor 2021-01-30 13:14:32 +01:00 committed by GitHub
parent 277f2a915e
commit e4fd537588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,8 @@
if (!defined('e107_INIT')) { exit; }
e107::lan('hero',true, true);
if(deftrue('e_FRONTPAGE'))
{
$text = e107::getParser()->parseTemplate("{HERO}", true);
@ -20,6 +22,6 @@ if(deftrue('e_FRONTPAGE'))
}
elseif(ADMIN)
{
$text = "<div class='alert alert-danger'>Hero only runs on the frontpage of your site.</div>";
$text = "<div class='alert alert-danger'>".LAN_HERO_ALERT_DANGER."</div>";
e107::getRender()->tablerender(null, $text,'hero-menu');
}