2006-10-25 18:55:05 -04:00
< ? php
2008-08-14 02:30:38 -04:00
/**
* Privacy Options Settings Administration Panel .
*
* @ package WordPress
* @ subpackage Administration
*/
/** Load WordPress Administration Bootstrap */
2006-10-25 18:55:05 -04:00
require_once ( './admin.php' );
2006-11-18 02:31:29 -05:00
2009-08-01 17:12:17 -04:00
if ( ! current_user_can ( 'manage_options' ) )
wp_die ( __ ( 'You do not have sufficient permissions to manage options for this blog.' ));
2008-02-13 19:39:38 -05:00
$title = __ ( 'Privacy Settings' );
2006-11-18 02:31:29 -05:00
$parent_file = 'options-general.php' ;
2006-10-25 18:55:05 -04:00
include ( './admin-header.php' );
?>
2006-11-19 02:56:05 -05:00
2006-10-25 18:55:05 -04:00
< div class = " wrap " >
2008-11-26 08:51:25 -05:00
< ? php screen_icon (); ?>
2009-05-18 11:11:07 -04:00
< h2 >< ? php echo esc_html ( $title ); ?> </h2>
2008-10-17 16:02:03 -04:00
2006-11-19 02:56:05 -05:00
< form method = " post " action = " options.php " >
2008-11-28 16:57:58 -05:00
< ? php settings_fields ( 'privacy' ); ?>
2008-10-13 21:18:52 -04:00
2008-02-23 23:33:10 -05:00
< table class = " form-table " >
2006-11-19 02:56:05 -05:00
< tr valign = " top " >
2008-02-14 00:19:39 -05:00
< th scope = " row " >< ? php _e ( 'Blog Visibility' ) ?> </th>
2009-05-12 18:40:56 -04:00
< td >< fieldset >< legend class = " screen-reader-text " >< span >< ? php _e ( 'Blog Visibility' ) ?> </span></legend>
2006-10-25 18:55:05 -04:00
< p >< input id = " blog-public " type = " radio " name = " blog_public " value = " 1 " < ? php checked ( '1' , get_option ( 'blog_public' )); ?> />
2009-08-20 16:58:44 -04:00
< label for = " blog-public " >< ? php _e ( 'I would like my blog to be visible to everyone, including search engines (like Google, Bing, Technorati) and archivers' ); ?> </label></p>
2006-10-25 18:55:05 -04:00
< p >< input id = " blog-norobots " type = " radio " name = " blog_public " value = " 0 " < ? php checked ( '0' , get_option ( 'blog_public' )); ?> />
< label for = " blog-norobots " >< ? php _e ( 'I would like to block search engines, but allow normal visitors' ); ?> </label></p>
< ? php do_action ( 'blog_privacy_selector' ); ?>
2008-05-04 06:37:06 -04:00
</ fieldset ></ td >
2006-10-25 18:55:05 -04:00
</ tr >
2008-09-09 18:31:22 -04:00
< ? php do_settings_fields ( 'privacy' , 'default' ); ?>
2006-11-19 02:56:05 -05:00
</ table >
2006-10-25 18:55:05 -04:00
2008-09-09 18:31:22 -04:00
< ? php do_settings_sections ( 'privacy' ); ?>
2008-10-13 21:18:52 -04:00
< p class = " submit " >
2009-05-05 15:43:53 -04:00
< input type = " submit " name = " Submit " class = " button-primary " value = " <?php esc_attr_e('Save Changes') ?> " />
2006-10-25 18:55:05 -04:00
</ p >
</ form >
2006-11-19 02:56:05 -05:00
</ div >
2006-10-25 18:55:05 -04:00
< ? php include ( './admin-footer.php' ) ?>