' . esc_html__( 'Open Elementor settings', 'reactwoo-atomic' ) . ''; } ); } } /** * Dependency warnings stay off unrelated admin screens. * * @return bool */ private static function notice_screen() { if ( class_exists( '\ReactWoo\Atomic\Admin\Menu' ) && \ReactWoo\Atomic\Admin\Menu::is_plugin_screen() ) { return true; } if ( ! function_exists( 'get_current_screen' ) ) { return false; } $screen = get_current_screen(); if ( ! $screen || empty( $screen->id ) ) { return false; } return in_array( (string) $screen->id, array( 'dashboard', 'plugins', 'plugins-network' ), true ); } /** * @param string $id Notice id. * @param callable $render Echoes the notice body. * @return void */ private static function notice( $id, $render ) { if ( class_exists( Admin_Notices::class ) && Admin_Notices::is_dismissed( $id ) ) { return; } echo '
'; call_user_func( $render ); echo '
'; if ( class_exists( Admin_Notices::class ) ) { echo ''; Admin_Notices::queue_script(); } echo '