render_widget(); } /** * Render client overview Info. */ public function render_widget() { $sites_count = MainWP_DB::instance()->get_websites_count(); ?>

render_widget_content(); } else { MainWP_UI::render_empty_element_placeholder( __( 'No Connection Status Data', 'mainwp' ), '' . __( 'Start connecting your sites now', 'mainwp' ) . '', '' ); } ?>
get_websites_stats_count( array( 'count_disconnected' => true, 'count_suspended' => true, ) ); if ( ! is_array( $wp_stats ) ) { $wp_stats = array(); } $total = ! empty( $wp_stats['count_all'] ) ? intval( $wp_stats['count_all'] ) : 0; $disconnected = ! empty( $wp_stats['count_disconnected'] ) ? intval( $wp_stats['count_disconnected'] ) : 0; $suspended = ! empty( $wp_stats['count_suspended'] ) ? intval( $wp_stats['count_suspended'] ) : 0; $connected = $total - $disconnected - $suspended; ?>