| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Bing Instant Indexing Console page contents. |
| 5 |
* |
| 6 |
* @package Bing Instant Indexing |
| 7 |
*/ |
| 8 |
?> |
| 9 |
|
| 10 |
<?php if (!$this->get_setting('api_key')) { ?> |
| 11 |
<div class="dashboard-card"> |
| 12 |
<h2>Configuration Required</h2> |
| 13 |
<p class="description" style="color: var(--dashboard-text-secondary); font-size: 16px; line-height: 1.6;"> |
| 14 |
<?php |
| 15 |
echo wp_kses_post( |
| 16 |
sprintf( |
| 17 |
'Please goto the %s page to configure the Bing Instant Indexing (IndexNow API).', |
| 18 |
'<a href="' . esc_url(admin_url('admin.php?page=' . Metasync_Admin::$page_slug . '-seo-controls')) . '" style="color: var(--dashboard-accent);">Indexation Control</a>' |
| 19 |
) |
| 20 |
); |
| 21 |
?> |
| 22 |
</p> |
| 23 |
</div> |
| 24 |
<?php return; |
| 25 |
} ?> |
| 26 |
|
| 27 |
<?php |
| 28 |
$urls = home_url('/'); |
| 29 |
if (isset($_GET['posturl'])) { |
| 30 |
$urls = esc_url_raw(wp_unslash($_GET['posturl'])); |
| 31 |
} |
| 32 |
|
| 33 |
?> |
| 34 |
<form id="metasync-bing-form" class="wpform" method="post"> |
| 35 |
<div class="dashboard-card"> |
| 36 |
<h2>URL Configuration</h2> |
| 37 |
<p style="color: var(--dashboard-text-secondary); margin-bottom: 20px;">Enter the URLs you want to submit to Bing and other search engines via IndexNow.</p> |
| 38 |
|
| 39 |
<table class="form-table"> |
| 40 |
<tr valign="top"> |
| 41 |
<th scope="row"> |
| 42 |
URLs for Indexing: |
| 43 |
</th> |
| 44 |
<td> |
| 45 |
<textarea name="metasync_bing_url" id="metasync-bing-url" class="wide-text" rows="4"><?php echo esc_textarea($urls); ?></textarea> |
| 46 |
<br> |
| 47 |
<p class="description" style="color: var(--dashboard-text-secondary);"> |
| 48 |
Submit up to 10,000 URLs per request (one per line). |
| 49 |
IndexNow supports batch submissions to notify multiple search engines at once. |
| 50 |
</p> |
| 51 |
</td> |
| 52 |
</tr> |
| 53 |
</table> |
| 54 |
|
| 55 |
<div style="margin-top: 20px;"> |
| 56 |
<button type="button" id="metasync-bing-btn-send" name="metasync-bing-btn-send" class="button button-primary"> |
| 57 |
<span class="dashicons dashicons-upload" style="margin-top:3px;font-size:15px;width:15px;height:15px;"></span> Submit to IndexNow |
| 58 |
</button> |
| 59 |
</div> |
| 60 |
</div> |
| 61 |
|
| 62 |
<div class="dashboard-card" id="metasync-bing-response" style="display: none;"> |
| 63 |
<h2>Submission Response</h2> |
| 64 |
<div class="result-wrapper" style="background: rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 20px; margin-top: 16px;"> |
| 65 |
<code class="result-urls" style="color: var(--dashboard-accent); font-weight: 600; display: block; margin-bottom: 12px;"></code> |
| 66 |
<h4 class="result-status-code" style="color: var(--dashboard-text-primary); margin: 12px 0;"></h4> |
| 67 |
<p class="result-message" style="color: var(--dashboard-text-secondary);"></p> |
| 68 |
</div> |
| 69 |
</div> |
| 70 |
|
| 71 |
<div class="dashboard-card"> |
| 72 |
<h2>About IndexNow Submission</h2> |
| 73 |
<p style="color: var(--dashboard-text-secondary); margin-bottom: 15px;"> |
| 74 |
IndexNow is a simple protocol that notifies search engines when your content has been created, updated, or deleted. |
| 75 |
</p> |
| 76 |
<ul style="color: var(--dashboard-text-secondary); margin-left: 20px; margin-bottom: 15px;"> |
| 77 |
<li>✓ Submit URLs to Bing, Yandex, Naver, and other participating search engines</li> |
| 78 |
<li>✓ Instant notification (no waiting for crawlers)</li> |
| 79 |
<li>✓ No status checking required - submission is fire-and-forget</li> |
| 80 |
<li>✓ No quotas for typical usage</li> |
| 81 |
</ul> |
| 82 |
</div> |
| 83 |
|
| 84 |
<div class="dashboard-card"> |
| 85 |
<h2>Bing Webmaster Tools</h2> |
| 86 |
<p style="color: var(--dashboard-text-secondary); margin-bottom: 15px;"> |
| 87 |
Monitor your IndexNow submissions and track your site's performance in Bing search results. |
| 88 |
</p> |
| 89 |
<p style="color: var(--dashboard-text-secondary); margin-bottom: 15px;"> |
| 90 |
After submitting URLs via IndexNow, you can view submission history, indexing status, and detailed analytics in Bing Webmaster Tools. |
| 91 |
</p> |
| 92 |
<a href="https://www.bing.com/webmasters" target="_blank" rel="noopener noreferrer" class="button button-secondary" style="margin-bottom: 10px;"> |
| 93 |
<span class="dashicons dashicons-external" style="margin-top:3px;font-size:15px;width:15px;height:15px;"></span> Open Bing Webmaster Tools |
| 94 |
</a> |
| 95 |
<p class="description" style="color: var(--dashboard-text-secondary); margin-top: 15px;"> |
| 96 |
<strong>Note:</strong> Make sure your site is verified in Bing Webmaster Tools to see submission analytics and indexing reports. |
| 97 |
</p> |
| 98 |
</div> |
| 99 |
</form> |
| 100 |
|
| 101 |
|