[ Index ]

PHP Cross Reference of Wordpress 2.7.1

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Reading settings administration panel.
   4   *
   5   * @package WordPress
   6   * @subpackage Administration
   7   */
   8  
   9  /** WordPress Administration Bootstrap */
  10  require_once ('admin.php');
  11  
  12  $title = __('Reading 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 wp_specialchars( $title ); ?></h2>
  21  
  22  <form name="form1" method="post" action="options.php">
  23  <?php settings_fields('reading'); ?>
  24  
  25  <table class="form-table">
  26  <?php if ( get_pages() ): ?>
  27  <tr valign="top">
  28  <th scope="row"><?php _e('Front page displays')?></th>
  29  <td><fieldset><legend class="hidden"><?php _e('Front page displays')?></legend>
  30      <p><label>
  31          <input name="show_on_front" type="radio" value="posts" class="tog" <?php checked('posts', get_option('show_on_front')); ?> />
  32          <?php _e('Your latest posts'); ?>
  33      </label>
  34      </p>
  35      <p><label>
  36          <input name="show_on_front" type="radio" value="page" class="tog" <?php checked('page', get_option('show_on_front')); ?> />
  37          <?php printf(__('A <a href="%s">static page</a> (select below)'), 'edit-pages.php'); ?>
  38      </label>
  39      </p>
  40  <ul>
  41      <li><?php printf("<label for='page_on_front'>".__('Front page: %s')."</label>", wp_dropdown_pages("name=page_on_front&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_on_front'))); ?></li>
  42      <li><?php printf("<label for='page_for_posts'>".__('Posts page: %s')."</label>", wp_dropdown_pages("name=page_for_posts&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_for_posts'))); ?></li>
  43  </ul>
  44  <?php if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') == get_option('page_on_front') ) : ?>
  45  <div id="front-page-warning" class="updated fade-ff0000">
  46      <p>
  47          <?php _e('<strong>Warning:</strong> these pages should not be the same!'); ?>
  48      </p>
  49  </div>
  50  <?php endif; ?>
  51  </fieldset></td>
  52  </tr>
  53  <?php endif; ?>
  54  <tr valign="top">
  55  <th scope="row"><label for="posts_per_page"><?php _e('Blog pages show at most') ?></label></th>
  56  <td>
  57  <input name="posts_per_page" type="text" id="posts_per_page" value="<?php form_option('posts_per_page'); ?>" class="small-text" /> <?php _e('posts') ?>
  58  </td>
  59  </tr>
  60  <tr valign="top">
  61  <th scope="row"><label for="posts_per_rss"><?php _e('Syndication feeds show the most recent') ?></label></th>
  62  <td><input name="posts_per_rss" type="text" id="posts_per_rss" value="<?php form_option('posts_per_rss'); ?>" class="small-text" /> <?php _e('posts') ?></td>
  63  </tr>
  64  <tr valign="top">
  65  <th scope="row"><?php _e('For each article in a feed, show') ?> </th>
  66  <td><fieldset><legend class="hidden"><?php _e('For each article in a feed, show') ?> </legend>
  67  <p><label><input name="rss_use_excerpt"  type="radio" value="0" <?php checked(0, get_option('rss_use_excerpt')); ?>    /> <?php _e('Full text') ?></label><br />
  68  <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked(1, get_option('rss_use_excerpt')); ?> /> <?php _e('Summary') ?></label></p>
  69  </fieldset></td>
  70  </tr>
  71  
  72  <tr valign="top">
  73  <th scope="row"><label for="blog_charset"><?php _e('Encoding for pages and feeds') ?></label></th>
  74  <td><input name="blog_charset" type="text" id="blog_charset" value="<?php form_option('blog_charset'); ?>" class="regular-text code" />
  75  <span class="setting-description"><?php _e('The character encoding you write your blog in (UTF-8 is <a href="http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html">recommended</a>)') ?></span></td>
  76  </tr>
  77  <?php do_settings_fields('reading', 'default'); ?>
  78  </table>
  79  
  80  <?php do_settings_sections('reading'); ?>
  81  
  82  <p class="submit">
  83      <input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
  84  </p>
  85  </form>
  86  </div>
  87  <?php include ('./admin-footer.php'); ?>


Generated: Mon Mar 23 16:23:02 2009 Cross-referenced by PHPXref 0.7