whomever] check for other sitemap plugins which may conflict ?
* @todo - [JRF => whomever] check for existance of .xls rewrite rule in .htaccess from
* google-sitemaps-plugin/generator and remove as it will cause errors for our sitemaps
* (or inform the user and disallow enabling of sitemaps )
* @todo - [JRF => whomever] check if anything along these lines is already being done
*/
if ( ! defined( 'WPSEO_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
$yform = Yoast_Form::get_instance();
$yform->admin_header( true, 'wpseo_xml' );
$options = get_option( 'wpseo_xml' );
echo '
';
$yform->checkbox( 'enablexmlsitemap', __( 'Check this box to enable XML sitemap functionality.', 'wordpress-seo' ), false );
?>
', __( 'Save your settings to activate XML Sitemaps.', 'wordpress-seo' ), '
'; } ?>
checkbox( 'disable_author_noposts', __( 'Disable all users with zero posts', 'wordpress-seo' ), false );
$roles = WPSEO_Utils::get_roles();
if ( is_array( $roles ) && $roles !== array() ) {
echo '
' . __( 'Exclude user roles', 'wordpress-seo' ) . '
';
echo __( 'Please check the appropriate box below if there\'s a user role that you do NOT want to include in your sitemap:', 'wordpress-seo' ) . '
' . __( 'Please check the appropriate box below if there\'s a post type that you do NOT want to include in your sitemap:', 'wordpress-seo' ) . '
'; foreach ( $post_types as $pt ) { $yform->checkbox( 'post_types-' . $pt->name . '-not_in_sitemap', $pt->labels->name . ' (' . $pt->name . ')' );
}
}
?>
' , sprintf( __( 'You can exclude posts from the sitemap by entering a comma separated string with the Post ID\'s. The format will become something like: %1$s.', 'wordpress-seo' ), '1,2,99,100' ) , '
' . __( 'Please check the appropriate box below if there\'s a taxonomy that you do NOT want to include in your sitemap:', 'wordpress-seo' ) . '
'; foreach ( $taxonomies as $tax ) { if ( isset( $tax->labels->name ) && trim( $tax->labels->name ) != '' ) { $yform->checkbox( 'taxonomies-' . $tax->name . '-not_in_sitemap', $tax->labels->name . ' (' . $tax->name . ')' );
}
}
}
?>