Fix logon_page in Elastic (and Elastic-based) skins (Bifrost#T168440)

This commit is contained in:
Aleksander Machniak 2018-12-28 13:08:17 +01:00
parent 56a4693914
commit 618fbe9b35

View file

@ -51,6 +51,7 @@ class logon_page extends rcube_plugin
if (file_exists($file)) {
$html = file_get_contents($file);
$html = trim(str_replace('<!-- Put HTML content here -->', '', $html));
}
if ($html) {
@ -63,6 +64,9 @@ class logon_page extends rcube_plugin
// so it can be styled by skins
$html = '<div id="logon_page">' . $html . '</div>';
// In Elastic we have to move the element to more apropriate place
$html .= "<script>\$('#login-footer').append(\$('#logon_page'));</script>";
// Add the content at the end of the BODY
$rcmail->output->add_footer($html);
}