admin_header( false, 'wpseo-gsc', false, 'yoast_wpseo_gsc_options' );
// GSC Error notification.
$gsc_profile = WPSEO_GSC_Settings::get_profile();
$gsc_url = 'https://search.google.com/search-console/index';
if ( $gsc_profile !== '' ) {
$gsc_url .= '?resource_id=' . rawurlencode( $gsc_profile );
}
$gsc_post_url = 'https://yoa.st/google-search-console-deprecated';
$gsc_style_alert = '
display: flex;
align-items: baseline;
position: relative;
padding: 16px;
border: 1px solid rgba(0, 0, 0, 0.2);
font-size: 14px;
font-weight: 400;
line-height: 1.5;
margin: 16px 0;
color: #450c11;
background: #f8d7da;
';
$gsc_style_alert_icon = 'display: block; margin-right: 8px;';
$gsc_style_alert_content = 'max-width: 600px;';
$gsc_style_alert_link = 'color: #004973;';
$gsc_notification = sprintf(
/* Translators: %1$s: expands to opening anchor tag, %2$s expands to closing anchor tag. */
__( 'Google has discontinued its Crawl Errors API. Therefore, any possible crawl errors you might have cannot be displayed here anymore. %1$sRead our statement on this for further information%2$s.', 'wordpress-seo' ),
'',
''
);
$gsc_notification .= '
';
$gsc_notification .= sprintf(
/* Translators: %1$s: expands to opening anchor tag, %2$s expands to closing anchor tag. */
__( 'To view your current crawl errors, %1$splease visit Google Search Console%2$s.', 'wordpress-seo' ),
'',
''
);
?>
'; printf( /* Translators: %s: expands to Yoast SEO. */ esc_html__( 'To allow %s to fetch your Google Search Console information, please enter your Google Authorization Code. Clicking the button below will open a new window.', 'wordpress-seo' ), 'Yoast SEO' ); echo "
\n"; echo ''; echo "\n"; echo '' . esc_html__( 'Enter your Google Authorization Code and press the Authenticate button.', 'wordpress-seo' ) . "
\n"; echo "\n"; } else { $reset_button = '' . esc_html__( 'Reauthenticate with Google', 'wordpress-seo' ) . ''; echo ''; echo $profile; echo '
'; echo ''; echo $reset_button; echo '
'; } else { echo "'; } } break; default: $form_action_url = add_query_arg( 'page', esc_attr( filter_input( INPUT_GET, 'page' ) ) ); $screen_reader_content = array( // There are no views links in this screen, so no need for the views heading. 'heading_views' => null, 'heading_pagination' => __( 'Crawl issues list navigation', 'wordpress-seo' ), 'heading_list' => __( 'Crawl issues list', 'wordpress-seo' ), ); get_current_screen()->set_screen_reader_content( $screen_reader_content ); // Open \n"; if ( ! WPSEO_Utils::is_yoast_seo_premium() ) { echo ''; } break; } ?> '; printf( /* translators: %1$s expands anchor to knowledge base article, %2$s expands to */ esc_html__( 'Please refer to %1$sour article about how to connect your website to Google Search Console%2$s if you need assistance.', 'wordpress-seo' ), '', '' ); echo ''; ?>