1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 09:39:55 +02:00

Hero cleanup for Bootstrap5. Switched to placeholder images. Admin-ui type 'image' now loads remote URLs correctly.

This commit is contained in:
Cameron
2021-02-26 10:13:07 -08:00
parent d5a4ef57d1
commit cb95b4b243
16 changed files with 80 additions and 53 deletions

View File

@@ -13,15 +13,8 @@
if (!defined('e107_INIT')) { exit; }
e107::lan('hero',true, true);
// e107::lan('hero','menu', true);
$text = e107::getParser()->parseTemplate("{HERO}");
e107::getRender()->tablerender(null, $text, 'hero-menu');
if(deftrue('e_FRONTPAGE'))
{
$text = e107::getParser()->parseTemplate("{HERO}", true);
e107::getRender()->tablerender(null, $text, 'hero-menu');
}
elseif(ADMIN)
{
$text = "<div class='alert alert-danger'>".LAN_HERO_MENU_001."</div>";
e107::getRender()->tablerender(null, $text,'hero-menu');
}