field-bulk-edit.php
8 months ago
field-meta-box-news.php
7 months ago
field-meta-box.php
6 months ago
field-news-categories.php
7 months ago
field-news-hierarchical.php
6 months ago
field-news-keywords.php
6 months ago
field-news-name.php
9 months ago
field-news-notifier.php
5 months ago
field-news-post-type.php
8 months ago
field-news-stocktickers.php
6 months ago
field-quick-edit.php
11 months ago
field-robots.php
11 months ago
field-sitemap-author-settings.php
6 months ago
field-sitemap-authors.php
7 months ago
field-sitemap-custom.php
11 months ago
field-sitemap-disable.php
11 months ago
field-sitemap-notifier.php
2 months ago
field-sitemap-post-type-settings.php
2 months ago
field-sitemap-post-types-limit.php
11 months ago
field-sitemap-post-types.php
7 months ago
field-sitemap-server.php
6 months ago
field-sitemap-slug.php
8 months ago
field-sitemap-taxonomies.php
7 months ago
field-sitemap-taxonomy-settings.php
6 months ago
field-sitemap-urls.php
11 months ago
field-sitemaps.php
11 months ago
help-tab-advanced.php
6 months ago
help-tab-authors.php
6 months ago
help-tab-news-categories.php
11 months ago
help-tab-news-hierarchical.php
8 months ago
help-tab-news-keywords.php
11 months ago
help-tab-news-name.php
11 months ago
help-tab-news-notifier.php
6 months ago
help-tab-news-post-types.php
11 months ago
help-tab-news-sidebar.php
11 months ago
help-tab-news-stocktickers.php
11 months ago
help-tab-news.php
11 months ago
help-tab-post-types-general.php
11 months ago
help-tab-post-types.php
6 months ago
help-tab-robots.php
11 months ago
help-tab-sidebar.php
11 months ago
help-tab-sitemaps.php
11 months ago
help-tab-support.php
6 months ago
help-tab-taxonomies.php
6 months ago
notice-xmlsf-advanced-news.php
11 months ago
notice-xmlsf-advanced.php
11 months ago
page-sitemap-news.php
6 months ago
page-sitemap.php
7 months ago
section-advanced-compat-message.php
9 months ago
section-advanced-intro.php
11 months ago
section-advanced-news-compat-message.php
9 months ago
section-bwt-data.php
2 months ago
section-bwt-oauth-intro.php
6 months ago
section-bwt-oauth-stage-1.php
6 months ago
section-bwt-oauth-stage-2.php
6 months ago
section-gsc-data-news.php
3 months ago
section-gsc-data.php
2 months ago
section-gsc-oauth-intro.php
6 months ago
section-gsc-oauth-stage-1-2.php
2 months ago
section-gsc-oauth-stage-3.php
6 months ago
section-ping-log.php
3 months ago
sidebar-advanced-plug.php
2 months ago
sidebar-bwt-connect.php
6 months ago
sidebar-contribute.php
9 months ago
sidebar-gsc-connect.php
6 months ago
sidebar-help.php
6 months ago
sidebar-links.php
6 months ago
sidebar-news-advanced-plug.php
6 months ago
sidebar-news-links.php
6 months ago
sidebar-news-tools.php
7 months ago
sidebar-priority-support.php
7 months ago
sidebar-tools.php
7 months ago
section-ping-log.php
46 lines
| 1 | <?php |
| 2 | /** |
| 3 | * GSC log ection |
| 4 | * |
| 5 | * @package XML Sitemap & Google News - XML Sitemap Advanced |
| 6 | */ |
| 7 | |
| 8 | if ( empty( $log ) ) { |
| 9 | $log = array( |
| 10 | array ( |
| 11 | 'time' => time(), |
| 12 | 'message' => esc_html__( 'No log entries found.', 'xml-sitemap-feed' ), |
| 13 | 'status' => 'info' |
| 14 | ), |
| 15 | ); |
| 16 | } |
| 17 | |
| 18 | $format = get_option( 'date_format' ) . ' @ ' . get_option( 'time_format' ); |
| 19 | ?> |
| 20 | <p> |
| 21 | <?php esc_html_e( 'The 20 most recent sitemap notification request and related messages are logged here.', 'xml-sitemap-feed' ); ?> |
| 22 | <?php echo $advanced; ?> |
| 23 | </p> |
| 24 | <table class="widefat"> |
| 25 | <thead> |
| 26 | <tr> |
| 27 | <th><?php echo esc_html_x( 'Date', 'column name' ); ?></th> |
| 28 | <th><?php esc_html_e( 'Message', 'xml-sitemap-feed' ); ?></th> |
| 29 | </tr> |
| 30 | </thead> |
| 31 | <tbody> |
| 32 | <?php |
| 33 | foreach ( array_reverse( (array) $log ) as $entry ) : |
| 34 | if ( ! is_array( $entry ) ) { continue; } |
| 35 | |
| 36 | $date = ! empty( $entry['time'] ) ? wp_date( $format, $entry['time'] ) : ''; |
| 37 | $msg = ! empty( $entry['message'] ) ? $entry['message'] : ''; |
| 38 | ?> |
| 39 | <tr> |
| 40 | <td><?php echo esc_html( $date ); ?></td> |
| 41 | <td class="notice-<?php echo isset( $entry['status'] ) ? esc_attr( $entry['status'] ) : 'info'; ?>" style="border-left-width: 4px;border-left-style: solid"><?php echo esc_html( $msg ); ?></td> |
| 42 | </tr> |
| 43 | <?php endforeach; ?> |
| 44 | </tbody> |
| 45 | </table> |
| 46 |