[ Index ]

PHP Cross Reference of Wordpress 2.9.1

title

Body

[close]

/wp-admin/ -> options-privacy.php (source)

   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  if ( ! current_user_can('manage_options') )
  13      wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
  14  
  15  $title = __('Privacy Settings');
  16  $parent_file = 'options-general.php';
  17  
  18  include ('./admin-header.php');
  19  ?>
  20  
  21  <div class="wrap">
  22  <?php screen_icon(); ?>
  23  <h2><?php echo esc_html( $title ); ?></h2>
  24  
  25  <form method="post" action="options.php">
  26  <?php settings_fields('privacy'); ?>
  27  
  28  <table class="form-table">
  29  <tr valign="top">
  30  <th scope="row"><?php _e('Blog Visibility') ?> </th>
  31  <td><fieldset><legend class="screen-reader-text"><span><?php _e('Blog Visibility') ?> </span></legend>
  32  <p><input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> />
  33  <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>
  34  <p><input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> />
  35  <label for="blog-norobots"><?php _e('I would like to block search engines, but allow normal visitors'); ?></label></p>
  36  <?php do_action('blog_privacy_selector'); ?>
  37  </fieldset></td>
  38  </tr>
  39  <?php do_settings_fields('privacy', 'default'); ?>
  40  </table>
  41  
  42  <?php do_settings_sections('privacy'); ?>
  43  
  44  <p class="submit">
  45      <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
  46  </p>
  47  </form>
  48  
  49  </div>
  50  
  51  <?php include ('./admin-footer.php') ?>


Generated: Fri Jan 8 00:19:48 2010 Cross-referenced by PHPXref 0.7