[44] | 1 | <?php
|
---|
| 2 | /**
|
---|
| 3 | * Privacy Options Settings Administration Panel.
|
---|
| 4 | *
|
---|
| 5 | * @package WordPress
|
---|
| 6 | * @subpackage Administration
|
---|
| 7 | */
|
---|
| 8 |
|
---|
| 9 | /** Load WordPress Administration Bootstrap */
|
---|
| 10 | require_once('./admin.php');
|
---|
| 11 |
|
---|
| 12 | $title = __('Privacy Settings');
|
---|
| 13 | $parent_file = 'options-general.php';
|
---|
| 14 |
|
---|
| 15 | include('./admin-header.php');
|
---|
| 16 | ?>
|
---|
| 17 |
|
---|
| 18 | <div class="wrap">
|
---|
| 19 | <?php screen_icon(); ?>
|
---|
| 20 | <h2><?php echo esc_html( $title ); ?></h2>
|
---|
| 21 |
|
---|
| 22 | <form method="post" action="options.php">
|
---|
| 23 | <?php settings_fields('privacy'); ?>
|
---|
| 24 |
|
---|
| 25 | <table class="form-table">
|
---|
| 26 | <tr valign="top">
|
---|
| 27 | <th scope="row"><?php _e('Blog Visibility') ?> </th>
|
---|
| 28 | <td><fieldset><legend class="screen-reader-text"><span><?php _e('Blog Visibility') ?> </span></legend>
|
---|
| 29 | <p><input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> />
|
---|
| 30 | <label for="blog-public"><?php _e('I would like my blog to be visible to everyone, including search engines (like Google, Sphere, Technorati) and archivers');?></label></p>
|
---|
| 31 | <p><input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> />
|
---|
| 32 | <label for="blog-norobots"><?php _e('I would like to block search engines, but allow normal visitors'); ?></label></p>
|
---|
| 33 | <?php do_action('blog_privacy_selector'); ?>
|
---|
| 34 | </fieldset></td>
|
---|
| 35 | </tr>
|
---|
| 36 | <?php do_settings_fields('privacy', 'default'); ?>
|
---|
| 37 | </table>
|
---|
| 38 |
|
---|
| 39 | <?php do_settings_sections('privacy'); ?>
|
---|
| 40 |
|
---|
| 41 | <p class="submit">
|
---|
| 42 | <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
---|
| 43 | </p>
|
---|
| 44 | </form>
|
---|
| 45 |
|
---|
| 46 | </div>
|
---|
| 47 |
|
---|
| 48 | <?php include('./admin-footer.php') ?>
|
---|