admin_header( false, 'wpseo-gsc', false, 'yoast_wpseo_gsc_options' ); ?> service->get_client()->getAccessToken() ) { $tab_video_url = 'https://yoa.st/screencast-search-console'; include WPSEO_PATH . 'admin/views/partial-settings-tab-video.php'; } else { $tab_video_url = 'https://yoa.st/screencast-connect-search-console'; include WPSEO_PATH . 'admin/views/partial-settings-tab-video.php'; } switch ( $platform_tabs->current_tab() ) { case 'settings' : // Check if there is an access token. if ( null === $this->service->get_client()->getAccessToken() ) { // Print auth screen. echo '

'; /* Translators: %1$s: expands to 'Yoast SEO', %2$s expands to Google Search Console. */ echo sprintf( __( 'To allow %1$s to fetch your %2$s information, please enter your Google Authorization Code. Clicking the button below will open a new window.', 'wordpress-seo' ), 'Yoast SEO', 'Google Search Console' ); echo "

\n"; echo ''; echo "\n"; echo '

' . __( 'Enter your Google Authorization Code and press the Authenticate button.', 'wordpress-seo' ) . "

\n"; echo "
\n"; echo ""; echo ""; echo ""; echo "
\n"; } else { $reset_button = '' . __( 'Reauthenticate with Google ', 'wordpress-seo' ) . ''; echo '

', __( 'Current profile', 'wordpress-seo' ), '

'; if ( ($profile = WPSEO_GSC_Settings::get_profile() ) !== '' ) { echo '

'; echo $profile; echo '

'; echo '

'; echo $reset_button; echo '

'; } else { echo "
"; settings_fields( 'yoast_wpseo_gsc_options' ); Yoast_Form::get_instance()->set_option( 'wpseo-gsc' ); echo '

'; if ( $profiles = $this->service->get_sites() ) { $show_save = true; echo Yoast_Form::get_instance()->select( 'profile', __( 'Profile', 'wordpress-seo' ), $profiles ); } else { $show_save = false; echo __( 'There were no profiles found', 'wordpress-seo' ); } echo '

'; echo '

'; if ( $show_save ) { echo ' ' . __( 'or', 'wordpress-seo' ) , ' '; } echo $reset_button; echo '

'; echo '
'; } } break; default : $form_action_url = add_query_arg( 'page', esc_attr( filter_input( INPUT_GET, 'page' ) ) ); get_current_screen()->set_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' ), 'heading_list' => __( 'Crawl issues list' ), ) ); // Open
. echo "\n"; // AJAX nonce. echo "\n"; $this->display_table(); // Close . echo "
\n"; break; } ?>
admin_footer( false );