From 063865e1792972de3791c759744899d58e45a172 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Thu, 24 May 2018 12:50:24 +0200 Subject: [PATCH] [Rebranding] Refactorized logos preview in nodo --- .../godmode/setup/setup_visuals.php | 342 +++--------------- pandora_console/include/javascript/pandora.js | 51 +++ 2 files changed, 106 insertions(+), 287 deletions(-) diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php index 1a57c376b8..c885b1f2cc 100755 --- a/pandora_console/godmode/setup/setup_visuals.php +++ b/pandora_console/godmode/setup/setup_visuals.php @@ -163,7 +163,7 @@ $iconsets["color_text"] = __('Colors and text'); $table_styles->data[$row][1] = html_print_select($iconsets, 'status_images_set', $config["status_images_set"], '', '', '', true); $table_styles->data[$row][1] .= " " . - html_print_button(__("View"), 'status_set_preview', false, '', '', true); + html_print_button(__("View"), 'status_set_preview', false, '', 'class="sub camera logo_preview"', true); $row++; $table_styles->data[$row][0] = __('Login background') . @@ -183,7 +183,7 @@ $table_styles->data[$row][1] = html_print_select ($backgrounds_list, 'login_background', $config["login_background"], '', __('Default'), '', true,false,true,'',false,'width:240px'); $table_styles->data[$row][1] .= " " . - html_print_button(__("View"), 'login_background_preview', false, '', 'class="sub camera"', true); + html_print_button(__("View"), 'login_background_preview', false, '', 'class="sub camera logo_preview"', true); $row++; $table_styles->data[$row][0] = __('Custom logo (header)') . ui_print_help_icon("custom_logo", true); @@ -202,7 +202,7 @@ else{ $config["custom_logo"], '', '', '',true,false,true,'',$open,'width:240px'); } - $table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_logo_preview', $open, '', 'class="sub camera"', true,false,$open,'visualmodal'); + $table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_logo_preview', $open, '', 'class="sub camera logo_preview"', true,false,$open,'visualmodal'); $row++; $table_styles->data[$row][0] = __('Custom logo (login)') . ui_print_help_icon("custom_logo", true); @@ -218,7 +218,7 @@ else { $config["custom_logo_login"], '', '', '',true,false,true,'',$open,'width:240px'); } -$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_logo_login_preview', $open, '', 'class="sub camera"', true,false,$open,'visualmodal'); +$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_logo_login_preview', $open, '', 'class="sub camera logo_preview"', true,false,$open,'visualmodal'); $row++; //Splash login @@ -229,7 +229,7 @@ if(enterprise_installed()) { list_files('enterprise/images/custom_splash_login', "png", 1, 0), 'custom_splash_login', $config["custom_splash_login"], '', '', '',true,false,true,'',$open,'width:240px'); - $table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_splash_login_preview', $open, '', 'class="sub camera"', true,false,$open,'visualmodal'); + $table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_splash_login_preview', $open, '', 'class="sub camera logo_preview"', true,false,$open,'visualmodal'); $row++; } @@ -256,7 +256,7 @@ if(enterprise_installed()){ false, 'width:240px' ); - $table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_docs_logo_preview', $open, '', 'class="sub camera"', true,false,$open,'visualmodal'); + $table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_docs_logo_preview', $open, '', 'class="sub camera logo_preview"', true,false,$open,'visualmodal'); $row++; // Custom support icon @@ -276,7 +276,7 @@ if(enterprise_installed()){ false, 'width:240px' ); - $table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_support_logo_preview', $open, '', 'class="sub camera"', true,false,$open,'visualmodal'); + $table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_support_logo_preview', $open, '', 'class="sub camera logo_preview"', true,false,$open,'visualmodal'); $row++; // Custom center networkmap icon @@ -296,7 +296,7 @@ if(enterprise_installed()){ false, 'width:240px' ); - $table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_network_center_logo_preview', $open, '', 'class="sub camera"', true,false,$open,'visualmodal'); + $table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_network_center_logo_preview', $open, '', 'class="sub camera logo_preview"', true,false,$open,'visualmodal'); $row++; } @@ -414,7 +414,7 @@ $table_gis->data[$row][1] = html_print_select($arraySelectIcon, "gis_default_icon", $config["gis_default_icon"], "", __('Agent icon group'), '', true); $table_gis->data[$row][1] .= " " . - html_print_button(__("View"), 'gis_icon_preview', false, '', '', true); +html_print_button(__("View"), 'gis_icon_preview', false, '', 'class="sub camera logo_preview"', true); $row++; echo "
"; @@ -952,6 +952,7 @@ function load_fonts() { } ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/'); +ui_require_javascript_file('pandora'); ?>