1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Fixed <body> tag when using Menu Manager. Stored HTML-theme true/false var for each theme.

This commit is contained in:
Cameron
2019-06-22 11:43:46 -07:00
parent 1cb3f934ea
commit a2c384c57f
3 changed files with 50 additions and 8 deletions

View File

@@ -489,11 +489,20 @@ e107Event.trigger('loaded', null, document);
e107::getJs()->renderJs('header_inline', 5);
echo "</head>
<body".$body_onload.">\n";
echo "</head>";
echo getModal();
echo getAlert();
if(deftrue('e_MENUMANAGER_ACTIVE') && defset('THEME_LAYOUT') && e_theme::loadLayout(THEME_LAYOUT)) // v2.2.2+ html layout is active which contains <body> tag.
{
echo "\n\n<!-- Start theme.html -->\n";
}
else
{
echo "
<body".$body_onload.">\n";
echo getModal();
echo getAlert();
}
function getModal()
{