PluginProbe ʕ •ᴥ•ʔ
XML Sitemap & Google News / trunk
XML Sitemap & Google News vtrunk
5.7.7 5.7.5 5.7.6 5.7.4 trunk 1.0 2.0 2.1 3.0 3.2 3.3 3.4 3.5 3.6.1 3.7.4 3.8.8 3.9.3 4.0.1 4.1.4 4.2.3 4.3.2 4.4.1 4.5.1 4.6.3 4.7.5 4.8.3 4.9.4 5.0.7 5.1.2 5.2.7 5.3.6 5.4.6 5.4.9 5.5.1 5.5.2 5.5.3 5.5.4 5.5.5 5.5.6 5.5.7 5.5.8 5.5.9 5.6 5.6.1 5.6.2 5.6.3 5.7 5.7.1 5.7.2 5.7.3
xml-sitemap-feed / views / admin / section-bwt-oauth-stage-2.php
xml-sitemap-feed / views / admin Last commit date
field-bulk-edit.php 9 months ago field-meta-box-news.php 9 months ago field-meta-box.php 7 months ago field-news-categories.php 9 months ago field-news-hierarchical.php 7 months ago field-news-keywords.php 7 months ago field-news-name.php 10 months ago field-news-notifier.php 6 months ago field-news-post-type.php 9 months ago field-news-stocktickers.php 7 months ago field-quick-edit.php 1 year ago field-robots.php 1 year ago field-sitemap-author-settings.php 7 months ago field-sitemap-authors.php 9 months ago field-sitemap-custom.php 1 year ago field-sitemap-disable.php 1 year ago field-sitemap-notifier.php 3 months ago field-sitemap-post-type-settings.php 3 months ago field-sitemap-post-types-limit.php 1 year ago field-sitemap-post-types.php 9 months ago field-sitemap-server.php 7 months ago field-sitemap-slug.php 9 months ago field-sitemap-taxonomies.php 9 months ago field-sitemap-taxonomy-settings.php 7 months ago field-sitemap-urls.php 1 year ago field-sitemaps.php 1 year ago help-tab-advanced.php 7 months ago help-tab-authors.php 7 months ago help-tab-news-categories.php 1 year ago help-tab-news-hierarchical.php 9 months ago help-tab-news-keywords.php 1 year ago help-tab-news-name.php 1 year ago help-tab-news-notifier.php 7 months ago help-tab-news-post-types.php 1 year ago help-tab-news-sidebar.php 1 year ago help-tab-news-stocktickers.php 1 year ago help-tab-news.php 1 year ago help-tab-post-types-general.php 1 year ago help-tab-post-types.php 7 months ago help-tab-robots.php 1 year ago help-tab-sidebar.php 1 year ago help-tab-sitemaps.php 1 year ago help-tab-support.php 7 months ago help-tab-taxonomies.php 7 months ago notice-xmlsf-advanced-news.php 1 year ago notice-xmlsf-advanced.php 1 year ago page-sitemap-news.php 7 months ago page-sitemap.php 9 months ago section-advanced-compat-message.php 10 months ago section-advanced-intro.php 1 year ago section-advanced-news-compat-message.php 10 months ago section-bwt-data.php 3 months ago section-bwt-oauth-intro.php 7 months ago section-bwt-oauth-stage-1.php 7 months ago section-bwt-oauth-stage-2.php 7 months ago section-gsc-data-news.php 4 months ago section-gsc-data.php 3 months ago section-gsc-oauth-intro.php 7 months ago section-gsc-oauth-stage-1-2.php 3 months ago section-gsc-oauth-stage-3.php 7 months ago section-ping-log.php 4 months ago sidebar-advanced-plug.php 3 months ago sidebar-bwt-connect.php 7 months ago sidebar-contribute.php 10 months ago sidebar-gsc-connect.php 7 months ago sidebar-help.php 7 months ago sidebar-links.php 7 months ago sidebar-news-advanced-plug.php 7 months ago sidebar-news-links.php 7 months ago sidebar-news-tools.php 9 months ago sidebar-priority-support.php 9 months ago sidebar-tools.php 9 months ago
section-bwt-oauth-stage-2.php
59 lines
1 <?php
2 /**
3 * BWT Oauth section stage 2
4 *
5 * @package XML Sitemap & Google News
6 */
7
8 $sitemap = xmlsf()->sitemap->get_sitemap_url();
9 $data = \XMLSF\BWT_Connect::get( $sitemap );
10
11 ?>
12 <h3><?php esc_html_e( 'Stage II. Test and activate the connection', 'xml-sitemap-feed' ); ?></h3>
13 <?php
14 if ( \is_wp_error( $data ) ) {
15 // Display error message.
16 ?>
17 <p>
18 <strong style="color:#d63638">
19 <?php esc_html_e( 'There was an error requesting sitemap data from Bing Webmaster Tools.', 'xml-sitemap-feed' ); ?>
20 </strong>
21 <br>
22 <a href="https://premium.status301.com/knowledge-base/xml-sitemap-google-news/connect-your-site-to-bing-webmaster-tools/#errors" target="_blank" rel="noopener noreferrer">
23 <?php echo esc_html( $data->get_error_message() ); ?>
24 </a>
25 </p>
26 <p>
27 <a href="" class="button button-primary"><?php echo esc_html( translate( 'Retry' ) ); // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction ?></a>
28 </p>
29 <p>
30 <?php printf( /* translators: %1$s API Key, %2$s Save Changes */ esc_html__( 'To restart the setup process, clear the %1$s field and %2$s.', 'xml-sitemap-feed' ), esc_html__( 'API Key', 'xml-sitemap-feed' ), esc_html( \translate( 'Save Changes' ) ) ); // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction ?>
31 </p>
32 <?php
33 } else {
34 // Update option with 'connected' status.
35 \update_option( self::$option_group, array( 'bing_api_key' => self::$pw_placeholder, 'connected' => true ) );
36
37 // Display success message and redirect.
38 $redirect_url = \add_query_arg( array( 'page' => 'xmlsf', 'settings-updated' => 'true' ), \admin_url( 'options-general.php' ) );
39 ?>
40 <p>
41 <strong style="color:#00a32a">
42 <?php esc_html_e( 'The connection test was successful and the connection was activated!', 'xml-sitemap-feed' ); ?>
43 </strong>
44 <br>
45 <a href="<?php echo esc_url( $redirect_url ); ?>">
46 <?php esc_html_e( 'You will now be redirected back to the plugin settings page.', 'xml-sitemap-feed' ); ?>
47 </a>
48 </p>
49 <meta http-equiv="refresh" content="3;url=<?php echo esc_url( $redirect_url ); ?>">
50 <style>
51 #submit {
52 display: none;
53 }
54 </style>
55 <?php
56 }
57 ?>
58 <hr>
59