PHP Cross Reference of WordPress Subversion HEAD

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]

title

Body

[close]

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

   1  <?php
   2  require_once ('admin.php');
   3  
   4  $title = __('Discussion Options');
   5  $parent_file = 'options-general.php';
   6  
   7  include ('admin-header.php');
   8  ?>
   9  
  10  <div class="wrap">
  11  <h2><?php _e('Discussion Options') ?></h2>
  12  <form method="post" action="options.php">
  13  <?php wp_nonce_field('update-options') ?>
  14  <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p>
  15  <fieldset class="options">
  16  <legend><?php echo __('Usual settings for an article:').'<br /><small><em>('.__('These settings may be overridden for individual articles.').')</em></small>'; ?></legend>
  17  <ul>
  18  <li>
  19  <label for="default_pingback_flag">
  20  <input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_option('default_pingback_flag')); ?> />
  21  <?php _e('Attempt to notify any blogs linked to from the article (slows down posting.)') ?></label>
  22  </li>
  23  <li>
  24  <label for="default_ping_status">
  25  <input name="default_ping_status" type="checkbox" id="default_ping_status" value="open" <?php checked('open', get_option('default_ping_status')); ?> />
  26  <?php _e('Allow link notifications from other blogs (pingbacks and trackbacks.)') ?></label>
  27  </li>
  28  <li>
  29  <label for="default_comment_status">
  30  <input name="default_comment_status" type="checkbox" id="default_comment_status" value="open" <?php checked('open', get_option('default_comment_status')); ?> />
  31  <?php _e('Allow people to post comments on the article') ?></label>
  32  </li>
  33  </ul>
  34  </fieldset>
  35  <fieldset class="options">
  36  <legend><?php _e('E-mail me whenever:') ?></legend>
  37  <ul>
  38  <li>
  39  <label for="comments_notify">
  40  <input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked('1', get_option('comments_notify')); ?> />
  41  <?php _e('Anyone posts a comment') ?> </label>
  42  </li>
  43  <li>
  44  <label for="moderation_notify">
  45  <input name="moderation_notify" type="checkbox" id="moderation_notify" value="1" <?php checked('1', get_option('moderation_notify')); ?> />
  46  <?php _e('A comment is held for moderation') ?> </label>
  47  </li>
  48  </ul>
  49  </fieldset>
  50  <fieldset class="options">
  51  <legend><?php _e('Before a comment appears:') ?></legend>
  52  <ul>
  53  <li>
  54  <label for="comment_moderation">
  55  <input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked('1', get_option('comment_moderation')); ?> />
  56  <?php _e('An administrator must always approve the comment') ?> </label>
  57  </li>
  58  <li><label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_option('require_name_email')); ?> /> <?php _e('Comment author must fill out name and e-mail') ?></label></li>
  59  <li><label for="comment_whitelist"><input type="checkbox" name="comment_whitelist" id="comment_whitelist" value="1" <?php checked('1', get_option('comment_whitelist')); ?> /> <?php _e('Comment author must have a previously approved comment') ?></label></li>
  60  </ul>
  61  </fieldset>
  62  <fieldset class="options">
  63  <legend><?php _e('Comment Moderation') ?></legend>
  64  <p><?php printf(__('Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="text" id="comment_max_links" size="3" value="' . get_option('comment_max_links'). '" />' ) ?></p>
  65  
  66  <p><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the <a href="moderation.php">moderation queue</a>. One word or IP per line. It will match inside words, so "press" will match "WordPress".') ?></p>
  67  <p>
  68  <textarea name="moderation_keys" cols="60" rows="4" id="moderation_keys" style="width: 98%; font-size: 12px;" class="code"><?php form_option('moderation_keys'); ?></textarea>
  69  </p>
  70  </fieldset>
  71  <fieldset class="options">
  72  <legend><?php _e('Comment Blacklist') ?></legend>
  73  <p><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so "press" will match "WordPress".') ?></p>
  74  <p>
  75  <textarea name="blacklist_keys" cols="60" rows="4" id="blacklist_keys" style="width: 98%; font-size: 12px;" class="code"><?php form_option('blacklist_keys'); ?></textarea>
  76  </p>
  77  </fieldset>
  78  <p class="submit">
  79  <input type="hidden" name="action" value="update" />
  80  <input type="hidden" name="page_options" value="default_pingback_flag,default_ping_status,default_comment_status,comments_notify,moderation_notify,comment_moderation,require_name_email,comment_whitelist,comment_max_links,moderation_keys,blacklist_keys" />
  81  <input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />
  82  </p>
  83  </form>
  84  </div>
  85  
  86  <?php include ('./admin-footer.php'); ?>


Generated Thu Dec 6 06:47:08 2007 for RedAlt XRefs Cross-referenced by PHPXref 0.6 and RedAlt