id ) ? (string) $screen->id : ''; $on_plugin = Branding::is_plugin_screen(); $on_other = in_array( $screen_id, array( 'dashboard', 'plugins' ), true ); if ( ! $on_plugin && ! $on_other ) { return; } $detector = new ConflictDetector(); $details = $detector->details(); if ( empty( $details ) ) { return; } $names = array_map( 'esc_html', array_keys( $details ) ); if ( OutputSettings::external_seo_handoff() ) { if ( $on_plugin ) { echo '
' . esc_html__( 'Ownership handoff is on.', 'publishrank' ) . ' ' . wp_kses( sprintf( /* translators: %s: plugin names. */ __( '%s is active, so PublishRank is not printing its overlapping title, meta and schema output.', 'publishrank' ), '' . implode( ', ', $names ) . '' ), array( 'strong' => array() ) ) . '
' . esc_html__( '⚠️ Warning: another SEO plugin is active.', 'publishrank' ) . '
'; echo '' . wp_kses( sprintf( /* translators: %s: plugin names. */ __( 'Detected: %s. Running two SEO plugins can print duplicate titles, meta descriptions, canonical tags, Open Graph tags, sitemaps and schema, which confuses search engines and can hurt how your pages appear. Use one plugin for SEO output.', 'publishrank' ), '' . implode( ', ', $names ) . '' ), array( 'strong' => array() ) ) . '
'; echo '' . esc_html__( 'Open Plugins to deactivate it', 'publishrank' ) . ' '; echo '' . esc_html__( 'Import its data first', 'publishrank' ) . ' '; echo '' . esc_html__( 'See what was detected', 'publishrank' ) . '