diff --git a/includes/ComingSoon.php b/includes/ComingSoon.php index 906410a..05e591a 100644 --- a/includes/ComingSoon.php +++ b/includes/ComingSoon.php @@ -170,15 +170,12 @@ public function newfold_site_status( \WP_Admin_Bar $admin_bar ) { if ( current_user_can( 'manage_options' ) ) { $is_coming_soon = 'true' === get_option( 'nfd_coming_soon', 'false' ); - $current_state = $is_coming_soon ? 'true' : 'false'; + $current_state = $is_coming_soon ? true : false; $content = '
'; $content .= $this->args['admin_bar_label']; - $content .= ''; - $content .= $this->args['admin_bar_cs_active']; - $content .= ''; - $content .= ''; - $content .= $this->args['admin_bar_cs_inactive']; - $content .= ''; + $content .= $current_state + ? '' . $this->args['admin_bar_cs_active'] . '' + : '' . $this->args['admin_bar_cs_inactive'] . ''; $content .= '
'; $site_status_menu = array(