diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index 5e9278a854..cec619f446 100755 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -25,6 +25,24 @@ include_once($homedir . 'include/functions_ui.php'); include_once($homedir . 'include/functions.php'); include_once($homedir . 'include/functions_html.php'); + +if($config['visual_animation']){ + echo + ''; +} + + if (!isset($login_screen)) { $login_screen = 'login'; } diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php index d5c1ceb8e7..867503bce2 100755 --- a/pandora_console/godmode/setup/setup_visuals.php +++ b/pandora_console/godmode/setup/setup_visuals.php @@ -281,6 +281,13 @@ $table_styles->data[$row][1] .= __('No') . ' ' . $table_styles->data['autohidden'][0] = __('Autohidden menu'); $table_styles->data['autohidden'][1] = html_print_checkbox('autohidden_menu', 1, $config['autohidden_menu'], true); + +$table_styles->data[$row][0] = __('Visual effects and animation'); +$table_styles->data[$row][1] = __('Yes') . ' ' . + html_print_radio_button ('visual_animation', 1, '', $config["visual_animation"], true) . + '  '; +$table_styles->data[$row][1] .= __('No') . ' ' . + html_print_radio_button ('visual_animation', 0, '', $config["visual_animation"], true); echo "
"; echo "" . __('Style configuration') . ""; diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index b9d40cf896..02cc6ec005 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -555,6 +555,8 @@ function config_update_config () { $error_update[] = __('Default icon in GIS'); if (!config_update_value ('autohidden_menu', get_parameter('autohidden_menu'))) $error_update[] = __('Autohidden menu'); + if (!config_update_value ('visual_animation', get_parameter('visual_animation'))) + $error_update[] = __('visual_animation'); if (!config_update_value ('fixed_graph', get_parameter('fixed_graph'))) $error_update[] = __('Fixed graph'); if (!config_update_value ('fixed_header', get_parameter('fixed_header'))) @@ -1819,6 +1821,10 @@ function config_process_config () { config_update_value ('autohidden_menu', 0); } + if (!isset($config['visual_animation'])) { + config_update_value ('visual_animation', 1); + } + if (!isset($config['networkmap_max_width'])) { config_update_value ('networkmap_max_width', 900); } diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 12a6623cb7..04f11bf691 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -3899,8 +3899,8 @@ li#li_margin_left{ div.container_login{ margin-top: 10%; - margin-left: 5%; - margin-right: 5%; + margin-left: 5%; + margin-right: 5%; } @@ -3928,16 +3928,7 @@ div.login_logo_icon img{ width: 150px; } -@keyframes login_move { - from {margin-left: 10%;margin-right: 10%;opacity:0.1} - to {margin-left: 5%;margin-right: 5%;opacity:1} -} - -div.container_login{ - animation-name: login_move; - animation-duration: 3s; -} div.login_double_auth_code, div.login_nick, div.login_pass {