Fix logon_page in Elastic (and Elastic-based) skins (Bifrost#T168440)
This commit is contained in:
parent
56a4693914
commit
618fbe9b35
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue