2006-10-26 00:55:05 +02:00
< ? php
2008-08-14 08:30:38 +02:00
/**
2011-04-28 17:24:49 +02:00
* Privacy Options Settings Administration Screen .
2008-08-14 08:30:38 +02:00
*
* @ package WordPress
* @ subpackage Administration
*/
/** Load WordPress Administration Bootstrap */
2006-10-26 00:55:05 +02:00
require_once ( './admin.php' );
2006-11-18 08:31:29 +01:00
2010-03-18 18:46:25 +01:00
if ( ! current_user_can ( 'manage_options' ) )
wp_die ( __ ( 'You do not have sufficient permissions to manage options for this site.' ) );
2009-08-01 23:12:17 +02:00
2008-02-14 01:39:38 +01:00
$title = __ ( 'Privacy Settings' );
2006-11-18 08:31:29 +01:00
$parent_file = 'options-general.php' ;
2010-06-02 22:04:07 +02:00
add_contextual_help ( $current_screen ,
2010-05-27 21:05:59 +02:00
'<p>' . __ ( 'You can choose whether or not your site will be crawled by robots, ping services, and spiders. If you want those services to ignore your site, click the second option here. Note that your privacy is not complete; your site is still visible on the web.' ) . '</p>' .
2011-06-01 17:37:04 +02:00
'<p>' . __ ( 'When this setting is in effect a reminder is shown in the Right Now box of the Dashboard that says, “Search Engines Blocked,” to remind you that your site is not being crawled.' ) . '</p>' .
2010-05-27 21:05:59 +02:00
'<p>' . __ ( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>' .
'<p><strong>' . __ ( 'For more information:' ) . '</strong></p>' .
2011-04-28 17:24:49 +02:00
'<p>' . __ ( '<a href="http://codex.wordpress.org/Settings_Privacy_Screen" target="_blank">Documentation on Privacy Settings</a>' ) . '</p>' .
2010-06-03 23:00:39 +02:00
'<p>' . __ ( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
2010-05-27 21:05:59 +02:00
);
2006-10-26 00:55:05 +02:00
include ( './admin-header.php' );
?>
2006-11-19 08:56:05 +01:00
2006-10-26 00:55:05 +02:00
< div class = " wrap " >
2008-11-26 14:51:25 +01:00
< ? php screen_icon (); ?>
2009-05-18 17:11:07 +02:00
< h2 >< ? php echo esc_html ( $title ); ?> </h2>
2008-10-17 22:02:03 +02:00
2006-11-19 08:56:05 +01:00
< form method = " post " action = " options.php " >
2008-11-28 22:57:58 +01:00
< ? php settings_fields ( 'privacy' ); ?>
2008-10-14 03:18:52 +02:00
2008-02-24 05:33:10 +01:00
< table class = " form-table " >
2006-11-19 08:56:05 +01:00
< tr valign = " top " >
2011-08-16 08:53:19 +02:00
< th scope = " row " >< ? php _e ( 'Site Visibility' ); ?> </th>
< td >< fieldset >< legend class = " screen-reader-text " >< span >< ? php _e ( 'Site Visibility' ); ?> </span></legend>
2010-03-18 18:46:25 +01:00
< input id = " blog-public " type = " radio " name = " blog_public " value = " 1 " < ? php checked ( '1' , get_option ( 'blog_public' )); ?> />
2011-08-16 08:53:19 +02:00
< label for = " blog-public " >< ? php _e ( 'Allow search engines to index this site.' ); ?> </label><br/>
2010-03-18 18:46:25 +01:00
< input id = " blog-norobots " type = " radio " name = " blog_public " value = " 0 " < ? php checked ( '0' , get_option ( 'blog_public' )); ?> />
2011-08-16 08:53:19 +02:00
< label for = " blog-norobots " >< ? php _e ( 'Ask search engines not to index this site.' ); ?> </label>
< p class = " description " >< ? php _e ( 'Note: Neither of these options blocks access to your site — it is up to search engines to honor your request.' ); ?> </p>
2006-10-26 00:55:05 +02:00
< ? php do_action ( 'blog_privacy_selector' ); ?>
2008-05-04 12:37:06 +02:00
</ fieldset ></ td >
2006-10-26 00:55:05 +02:00
</ tr >
2008-09-10 00:31:22 +02:00
< ? php do_settings_fields ( 'privacy' , 'default' ); ?>
2006-11-19 08:56:05 +01:00
</ table >
2006-10-26 00:55:05 +02:00
2008-09-10 00:31:22 +02:00
< ? php do_settings_sections ( 'privacy' ); ?>
2010-10-14 21:58:06 +02:00
< ? php submit_button (); ?>
2006-10-26 00:55:05 +02:00
</ form >
2006-11-19 08:56:05 +01:00
</ div >
2006-10-26 00:55:05 +02:00
< ? php include ( './admin-footer.php' ) ?>