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 ); ?>

'; printf( esc_html__( 'You can find your XML Sitemap here: %sXML Sitemap%s', 'wordpress-seo' ), '', '' ); echo '
'; echo '
'; _e( 'You do not need to generate the XML sitemap, nor will it take up time to generate after publishing a post.', 'wordpress-seo' ); echo '

'; } else { echo '

', __( 'Save your settings to activate XML Sitemaps.', 'wordpress-seo' ), '

'; } ?>


textinput( 'entries-per-page', __( 'Max entries per sitemap', 'wordpress-seo' ) ); ?>
checkbox( 'disable_author_sitemap', __( 'Disable author/user sitemap', 'wordpress-seo' ), false ); ?>


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' ) . '

'; foreach ( $roles as $role_key => $role_name ) { $yform->checkbox( 'user_role-' . $role_key . '-not_in_sitemap', $role_name ); } } ?>
true ), 'objects' ) ); if ( is_array( $post_types ) && $post_types !== array() ) { echo '

' . __( '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 . ')' ); } } ?>
1,2,99,100' */ echo '

' , 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' ) , '

'; $yform->textinput( 'excluded-posts', __( 'Posts to exclude', 'wordpress-seo' ) ); ?>
true ), 'objects' ) ); if ( is_array( $taxonomies ) && $taxonomies !== array() ) { echo '

' . __( '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 . ')' ); } } } ?>
admin_footer();