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 / field-sitemap-post-type-settings.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 7 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
field-sitemap-post-type-settings.php
71 lines
1 <?php
2 /**
3 * Post type options fields
4 *
5 * @package XML Sitemap & Google News
6 */
7
8 ?>
9 <fieldset id="xmlsf_post_type_<?php echo esc_attr( $obj->name ); ?>_settings">
10 <legend class="screen-reader-text">
11 <?php echo esc_html( $obj->label ); ?>
12 </legend>
13
14 <?php
15 if ( empty( $obj->hierarchical ) && 'plugin' === \xmlsf()->sitemap->server_type ) {
16 $archive = isset( $options[ $obj->name ]['archive'] ) ? $options[ $obj->name ]['archive'] :( $obj->hierarchical ? 'yearly' : '' );
17 ?>
18 <p>
19 <label><?php esc_html_e( 'Split by', 'xml-sitemap-feed' ); ?>
20 <select name="xmlsf_post_type_settings[<?php echo esc_attr( $obj->name ); ?>][archive]" id="xmlsf_post_type_settings_'<?php echo esc_attr( $obj->name ); ?>_archive">
21 <option value="">
22 <?php esc_html_e( 'None' ); ?>
23 </option>
24 <option value="yearly"<?php echo selected( 'yearly' === $archive, true, false ); ?>>
25 <?php esc_html_e( 'Year', 'xml-sitemap-feed' ); ?>
26 </option>
27 <option value="monthly"<?php echo selected( 'monthly' === $archive, true, false ); ?>>
28 <?php esc_html_e( 'Month', 'xml-sitemap-feed' ); ?>
29 </option>
30 <?php do_action( 'xmlsf_posttype_archive_field_options', $obj, $archive ); ?>
31 </select>
32 </label>
33 <span class="description"><?php apply_filters( 'xmlsf_advanced_enabled', false ) || printf( /* Translators: XML Sitemap Advanced */ esc_html__( 'More options available in %s.', 'xml-sitemap-feed' ), '<a href="https://premium.status301.com/downloads/xml-sitemap-advanced/" target="_blank">' . esc_html__( 'XML Sitemap Advanced', 'xml-sitemap-feed' ) . '</a>' ); ?></span>
34 </p>
35 <?php
36 }
37
38 $image = isset( $options[ $obj->name ]['tags']['image'] ) ? $options[ $obj->name ]['tags']['image'] : 'attached';
39 ?>
40
41 <p>
42 <label>
43 <input type="checkbox" name="xmlsf_post_type_settings[<?php echo esc_attr( $obj->name ); ?>][update_lastmod_on_comments]" id="xmlsf_post_type_<?php echo esc_attr( $obj->name ); ?>_update_lastmod_on_comments" value="1"<?php echo checked( ! empty( $options[ $obj->name ]['update_lastmod_on_comments'] ), true, false ); ?> />
44 <?php esc_html_e( 'Update the Last Modified date on each new comment.', 'xml-sitemap-feed' ); ?>
45 </label>
46 </p>
47
48 <?php
49 if ( 'plugin' === \xmlsf()->sitemap->server_type ) {
50 ?>
51 <p>
52 <label>
53 <?php esc_html_e( 'Add image tags for', 'xml-sitemap-feed' ); ?>
54 <select name="xmlsf_post_type_settings[<?php echo esc_attr( $obj->name ); ?>][tags][image]" id="xmlsf_post_type_<?php echo esc_attr( $obj->name ); ?>_tags_image">
55 <option value="">
56 <?php esc_html_e( 'None' ); ?>
57 </option>
58 <option value="featured"<?php echo selected( 'featured' === $image, true, false ); ?>>
59 <?php echo ( 'page' === $obj->name ) ? esc_html_x( 'Featured image', 'page' ) : esc_html_x( 'Featured image', 'post' ); ?>
60 </option>
61 <option value="attached"<?php echo selected( 'attached' === $image, true, false ); ?>>
62 <?php esc_html_e( 'Attached images', 'xml-sitemap-feed' ); ?>
63 </option>
64 </select>
65 </label>
66 </p>
67 <?php
68 }
69 ?>
70 </fieldset>
71