Merge branch '5144-IE-Edge-Login-Background' into 'develop'
Added control for MS Edge and Internet Explorer browsers for disallow linear gradient See merge request artica/pandorafms!2967
This commit is contained in:
commit
9d318a8612
|
@ -82,12 +82,18 @@ if (!empty($page) && !empty($sec)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$login_body_style = '';
|
$login_body_style = '';
|
||||||
|
$login_body_class = '';
|
||||||
// Overrides the default background with the defined by the user.
|
// Overrides the default background with the defined by the user.
|
||||||
if (!empty($config['login_background'])) {
|
if (!empty($config['login_background'])) {
|
||||||
$background_url = 'images/backgrounds/'.$config['login_background'];
|
$background_url = 'images/backgrounds/'.$config['login_background'];
|
||||||
$login_body_style = "style=\"background:linear-gradient(74deg, #02020255 36%, transparent 36%), url('".$background_url."');\"";
|
$login_body_style = "style=\"background:linear-gradient(74deg, #02020255 36%, transparent 36%), url('".$background_url."');\"";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Support for Internet Explorer and Microsoft Edge browsers
|
||||||
|
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'Edge') !== false) {
|
||||||
|
$login_body_class = "class='login_body_trident'";
|
||||||
|
}
|
||||||
|
|
||||||
// Get alternative custom in case of db fail.
|
// Get alternative custom in case of db fail.
|
||||||
$custom_fields = [
|
$custom_fields = [
|
||||||
'custom_logo_login',
|
'custom_logo_login',
|
||||||
|
@ -111,7 +117,7 @@ foreach ($custom_fields as $field) {
|
||||||
// Get the custom icons.
|
// Get the custom icons.
|
||||||
$docs_logo = ui_get_docs_logo();
|
$docs_logo = ui_get_docs_logo();
|
||||||
$support_logo = ui_get_support_logo();
|
$support_logo = ui_get_support_logo();
|
||||||
echo '<div id="login_body" '.$login_body_style.'>';
|
echo '<div id="login_body" '.$login_body_class.' '.$login_body_style.'>';
|
||||||
echo '<div id="header_login">';
|
echo '<div id="header_login">';
|
||||||
|
|
||||||
echo '<div id="list_icon_docs_support"><ul>';
|
echo '<div id="list_icon_docs_support"><ul>';
|
||||||
|
|
|
@ -33,6 +33,10 @@ div#error_buttons a {
|
||||||
background-repeat: repeat;
|
background-repeat: repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.login_body_trident {
|
||||||
|
background: url("../../images/backgrounds/background_pandora_console_keys.jpg") !important;
|
||||||
|
}
|
||||||
|
|
||||||
p.log_in {
|
p.log_in {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
padding: 0px 10px;
|
padding: 0px 10px;
|
||||||
|
|
Loading…
Reference in New Issue