mp-wp_genesis 1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * Reading settings administration panel.
mp-wp_genesis 4 *
mp-wp_genesis 5 * @package WordPress
mp-wp_genesis 6 * @subpackage Administration
mp-wp_genesis 7 */
mp-wp_genesis 8
mp-wp_genesis 9 /** WordPress Administration Bootstrap */
mp-wp_genesis 10 require_once('admin.php');
mp-wp_genesis 11
mp-wp_genesis 12 $title = __('Reading Settings');
mp-wp_genesis 13 $parent_file = 'options-general.php';
mp-wp_genesis 14
mp-wp_genesis 15 include('admin-header.php');
mp-wp_genesis 16 ?>
mp-wp_genesis 17
mp-wp_genesis 18 <div class="wrap">
mp-wp_genesis 19 <?php screen_icon(); ?>
mp-wp_genesis 20 <h2><?php echo wp_specialchars( $title ); ?></h2>
mp-wp_genesis 21
mp-wp_genesis 22 <form name="form1" method="post" action="options.php">
mp-wp_genesis 23 <?php settings_fields('reading'); ?>
mp-wp_genesis 24
mp-wp_genesis 25 <table class="form-table">
mp-wp_genesis 26 <?php if ( get_pages() ): ?>
mp-wp_genesis 27 <tr valign="top">
mp-wp_genesis 28 <th scope="row"><?php _e('Front page displays')?></th>
mp-wp_genesis 29 <td><fieldset><legend class="hidden"><?php _e('Front page displays')?></legend>
mp-wp_genesis 30 <p><label>
mp-wp_genesis 31 <input name="show_on_front" type="radio" value="posts" class="tog" <?php checked('posts', get_option('show_on_front')); ?> />
mp-wp_genesis 32 <?php _e('Your latest posts'); ?>
mp-wp_genesis 33 </label>
mp-wp_genesis 34 </p>
mp-wp_genesis 35 <p><label>
mp-wp_genesis 36 <input name="show_on_front" type="radio" value="page" class="tog" <?php checked('page', get_option('show_on_front')); ?> />
mp-wp_genesis 37 <?php printf(__('A <a href="%s">static page</a> (select below)'), 'edit-pages.php'); ?>
mp-wp_genesis 38 </label>
mp-wp_genesis 39 </p>
mp-wp_genesis 40 <ul>
mp-wp_genesis 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>
mp-wp_genesis 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>
mp-wp_genesis 43 </ul>
mp-wp_genesis 44 <?php if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') == get_option('page_on_front') ) : ?>
mp-wp_genesis 45 <div id="front-page-warning" class="updated fade-ff0000">
mp-wp_genesis 46 <p>
mp-wp_genesis 47 <?php _e('<strong>Warning:</strong> these pages should not be the same!'); ?>
mp-wp_genesis 48 </p>
mp-wp_genesis 49 </div>
mp-wp_genesis 50 <?php endif; ?>
mp-wp_genesis 51 </fieldset></td>
mp-wp_genesis 52 </tr>
mp-wp_genesis 53 <?php endif; ?>
mp-wp_genesis 54 <tr valign="top">
mp-wp_genesis 55 <th scope="row"><label for="posts_per_page"><?php _e('Blog pages show at most') ?></label></th>
mp-wp_genesis 56 <td>
mp-wp_genesis 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') ?>
mp-wp_genesis 58 </td>
mp-wp_genesis 59 </tr>
mp-wp_genesis 60 <tr valign="top">
mp-wp_genesis 61 <th scope="row"><label for="posts_per_rss"><?php _e('Syndication feeds show the most recent') ?></label></th>
mp-wp_genesis 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>
mp-wp_genesis 63 </tr>
mp-wp_genesis 64 <tr valign="top">
mp-wp_genesis 65 <th scope="row"><?php _e('For each article in a feed, show') ?> </th>
mp-wp_genesis 66 <td><fieldset><legend class="hidden"><?php _e('For each article in a feed, show') ?> </legend>
mp-wp_genesis 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 />
mp-wp_genesis 68 <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked(1, get_option('rss_use_excerpt')); ?> /> <?php _e('Summary') ?></label></p>
mp-wp_genesis 69 </fieldset></td>
mp-wp_genesis 70 </tr>
mp-wp_genesis 71
mp-wp_genesis 72 <tr valign="top">
mp-wp_genesis 73 <th scope="row"><label for="blog_charset"><?php _e('Encoding for pages and feeds') ?></label></th>
mp-wp_genesis 74 <td><input name="blog_charset" type="text" id="blog_charset" value="<?php form_option('blog_charset'); ?>" class="regular-text code" />
mp-wp_genesis 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>
mp-wp_genesis 76 </tr>
mp-wp_genesis 77 <?php do_settings_fields('reading', 'default'); ?>
mp-wp_genesis 78 </table>
mp-wp_genesis 79
mp-wp_genesis 80 <?php do_settings_sections('reading'); ?>
mp-wp_genesis 81
mp-wp_genesis 82 <p class="submit">
mp-wp_genesis 83 <input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
mp-wp_genesis 84 </p>
mp-wp_genesis 85 </form>
mp-wp_genesis 86 </div>
mp-wp_genesis 87 <?php include('./admin-footer.php'); ?>