', '' ); ?>

leadin_render_disconnected_banner(); } elseif ( self::should_show_review_notice() ) { $review_banner = new ReviewBanner(); $review_banner->leadin_render_review_banner(); } } } /** * Find if disconnected notice should be shown */ public function should_show_disconnected_notice() { $current_screen = get_current_screen(); return ! Connection::is_connected() && 'leadin' !== $current_screen->parent_base; } /** * Find if review notice should be shown */ public function should_show_review_notice() { $current_screen = get_current_screen(); $is_dashboard = 'index' === $current_screen->parent_base; $is_not_skipped = empty( User_Metadata::get_skip_review() ); return $is_dashboard && Connection::is_connected() && $is_not_skipped; } }