<?php
/**
 * Sitemap author setting view
 *
 * @package XML Sitemap & Google News
 */

?>
<fieldset id="xmlsf_author_settings">
	<legend class="screen-reader-text">
		<?php echo esc_html_e( translate( 'General' ) ); ?>
	</legend>
	<p>
		<label>
			<?php esc_html_e( 'Priority', 'xml-sitemap-feed' ); ?>
			<input type="number" step="0.1" min="0.1" max="0.9" name="xmlsf_author_settings[priority]" id="xmlsf_author_priority" value="<?php echo ( isset( $author_settings['priority'] ) ? esc_attr( $author_settings['priority'] ) : '' ); ?>" class="small-text" />
		</label>
		<span class="description">
			<?php esc_html_e( 'The default priority value must be between 0 and 1. To disable priority, leave this field empty.', 'xml-sitemap-feed' ); ?>
		</span>
	</p>
	<p>
		<label>
			<input type="checkbox" name="xmlsf_author_settings[include_empty]" id="xmlsf_author_include_empty" value="1"<?php checked( ! empty( $author_settings['include_empty'] ), true ); ?><?php disabled( apply_filters( 'xmlsf_advanced_enabled', false ), false ); ?> />
			<?php esc_html_e( 'Include empty author archives.', 'xml-sitemap-feed' ); ?>
			<?php apply_filters( 'xmlsf_advanced_enabled', false ) || printf( /* Translators: XML Sitemap Advanced */ esc_html__( '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>' ); ?>
		</label>
	</p>
	<p>
		<label>
			<?php esc_html_e( 'Maximum authors per sitemap', 'xml-sitemap-feed' ); ?>
			<input type="number" step="100" min="0" max="50000" placeholder="2000" name="xmlsf_author_settings[limit]" id="xmlsf_author_limit" value="<?php echo ( isset( $author_settings['limit'] ) ? esc_attr( $author_settings['limit'] ) : '' ); ?>" class="medium-text" />
		</label>
	</p>
</fieldset>
