settings->get_option( 'onboarding_completed' ) ) { wp_add_dashboard_widget( 'wpconsent_onboarding_reminder', esc_html__( 'WPConsent Setup', 'wpconsent-cookies-banner-privacy-suite' ), array( $this, 'render_onboarding_widget' ), null, null, 'normal', 'high' ); } } /** * Render the onboarding reminder widget */ public function render_onboarding_widget() { ?>
settings->get_option( 'onboarding_completed' ) ) { return; } // Don't show on our pages. if ( isset( $_GET['page'] ) && 'wpconsent-cookies' === $_GET['page'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended return; } $banner_visible = wpconsent()->settings->get_option( 'enable_consent_banner' ); if ( ! $banner_visible ) { WPConsent_Notice::info( sprintf( // translators: %1$s and %2$s are the opening and closing tags, %3$s is the link to the WPConsent settings page. esc_html__( 'Your website is not privacy compliant. We highly recommend that you %1$senable displaying the WPConsent privacy compliance banner%2$s.', 'wpconsent-cookies-banner-privacy-suite' ), '', '' ), array( 'dismiss' => WPConsent_Notice::DISMISS_GLOBAL, 'slug' => 'banner-not-visible', ) ); } } }