1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02: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

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');
}