mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 13:11:52 +02:00
Include body layout class when menu-manager active.
This commit is contained in:
parent
dfea8f3896
commit
95edb68e60
@ -445,6 +445,12 @@ if (defined('THEME_ONLOAD')) $js_body_onload[] = THEME_ONLOAD;
|
||||
$body_onload='';
|
||||
if (count($js_body_onload)) $body_onload = " onload=\"".implode(" ",$js_body_onload)."\"";
|
||||
|
||||
|
||||
if(deftrue('e_MENUMANAGER_ACTIVE'))
|
||||
{
|
||||
$body_onload .= " id=\"layout-".e107::getForm()->name2id(THEME_LAYOUT)."\" ";
|
||||
}
|
||||
|
||||
//
|
||||
// J: Send end of <head> and start of <body>
|
||||
//
|
||||
|
@ -206,7 +206,7 @@ class e_menuManager {
|
||||
// $cnt = $sql->select("menus", "*", "menu_location > 0 AND menu_layout = '$curLayout' ORDER BY menu_name "); // calculate height to remove vertical scroll-bar.
|
||||
|
||||
// $text = "<object class='well' type='text/html' id='menu_iframe' data='".$url."' width='100%' style='overflow:auto;width: 100%; height: ".(($cnt*90)+600)."px; border: 0px' ></object>";
|
||||
$text = "<iframe class='well' id='menu_iframe' name='e-mm-iframe' src='".$url."' width='100' style='width: 100%; height: 90vh; border-width: 3px; padding:0' ></iframe>";
|
||||
$text = "<iframe class='well' id='menu_iframe' name='e-mm-iframe' src='".$url."' width='100' style='overflow-x:hidden; width: 100%; height: 90vh; border-width: 3px; padding:0' ></iframe>";
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user