diff --git a/includes/class-wordpress-plugin-template-settings.php b/includes/class-wordpress-plugin-template-settings.php index 06e4a42..c04e46c 100644 --- a/includes/class-wordpress-plugin-template-settings.php +++ b/includes/class-wordpress-plugin-template-settings.php @@ -430,8 +430,8 @@ public function settings_page() { $tab_link = remove_query_arg( 'settings-updated', $tab_link ); } - // Output tab. - $html .= '' . esc_html( $data['title'] ) . '' . "\n"; + // Output tab + $html .= '' . ( !empty($data['logo']) ? '' : '' ) . wp_kses_normalize_entities($data['title']) . '' . "\n"; ++$c; } @@ -439,8 +439,6 @@ public function settings_page() { $html .= '' . "\n"; } - if( $this->settings[$tab]['fields'] ){ - $html .= '
' . "\n"; - } - - $html .= '' . "\n"; + if( $this->settings[$tab]['fields'] ){ + + $html .= '' . "\n"; + $html .= '' . "\n"; + $html .= '' . "\n"; + $html .= '
' . "\n"; + } + + $html .= '' . "\n"; + + $html .= '' . "\n"; echo wp_kses_normalize_entities($html); //phpcs:ignore }