Changes in trunk/wp-admin/options-reading.php [3112:4196]
- File:
-
- 1 edited
-
trunk/wp-admin/options-reading.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-reading.php
r3112 r4196 10 10 <div class="wrap"> 11 11 <h2><?php _e('Reading Options') ?></h2> 12 <form name="form1" method="post" action="options.php"> 12 <form name="form1" 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 »') ?>" /></p> 15 <?php if ( get_pages() ): ?> 16 <fieldset class="options"> 17 <legend><?php _e('Front Page') ?></legend> 18 <table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform"> 19 <tr valign="top"> 20 <th width="33%" scope="row"><?php _e('Front page displays:')?></th> 21 <td> 22 <p><label> 23 <input name="show_on_front" type="radio" value="posts" class="tog" <?php checked('posts', get_option('show_on_front')); ?> /> 24 <?php _e('Your latest posts'); ?> 25 </label> 26 </p> 27 <p><label> 28 <input name="show_on_front" type="radio" value="page" class="tog" <?php checked('page', get_option('show_on_front')); ?> /> 29 <?php printf(__('A <a href="%s">static page</a> (select below)'), 'edit-pages.php'); ?> 30 </label> 31 </p> 32 <ul> 33 <li><?php printf(__('Front page: %s'), wp_dropdown_pages("name=page_on_front&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_on_front'))); ?></li> 34 <li><?php printf(__('Posts page: %s'), wp_dropdown_pages("name=page_for_posts&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_for_posts'))); ?></li> 35 </ul> 36 <?php if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') == get_option('page_on_front') ) : ?> 37 <div id="front-page-warning" class="updated fade-ff0000"> 38 <p> 39 <?php _e('<strong>Warning:</strong> these pages should not be the same!'); ?> 40 </p> 41 </div> 42 <?php endif; ?> 43 </fieldset> 44 </td> 45 </tr> 46 </table> 47 </fieldset> 48 <?php endif; ?> 49 13 50 <fieldset class="options"> 14 51 <legend><?php _e('Blog Pages') ?></legend> 15 <table width="100%" cellspacing="2" cellpadding="5" class=" editform">52 <table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform"> 16 53 <tr valign="top"> 17 54 <th width="33%" scope="row"><?php _e('Show at most:') ?></th> … … 19 56 <input name="posts_per_page" type="text" id="posts_per_page" value="<?php form_option('posts_per_page'); ?>" size="3" /> 20 57 <select name="what_to_show" id="what_to_show" > 21 <option value="days" <?php selected('days', get_ settings('what_to_show')); ?>><?php _e('days') ?></option>22 <option value="posts" <?php selected('posts', get_ settings('what_to_show')); ?>><?php _e('posts') ?></option>58 <option value="days" <?php selected('days', get_option('what_to_show')); ?>><?php _e('days') ?></option> 59 <option value="posts" <?php selected('posts', get_option('what_to_show')); ?>><?php _e('posts') ?></option> 23 60 </select> 24 61 </td> … … 29 66 <fieldset class="options"> 30 67 <legend><?php _e('Syndication Feeds') ?></legend> 31 <table width="100%" cellspacing="2" cellpadding="5" class=" editform">68 <table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform"> 32 69 <tr valign="top"> 33 70 <th width="33%" scope="row"><?php _e('Show the most recent:') ?></th> … … 37 74 <th scope="row"><?php _e('For each article, show:') ?> </th> 38 75 <td> 39 <label><input name="rss_use_excerpt" type="radio" value="0" <?php checked(0, get_settings('rss_use_excerpt')); ?> /> <?php _e('Full text') ?></label><br /> 40 <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked(1, get_settings('rss_use_excerpt')); ?> /> <?php _e('Summary') ?></label> 76 <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 /> 77 <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked(1, get_option('rss_use_excerpt')); ?> /> <?php _e('Summary') ?></label></p> 78 <p><?php _e('Note: If you use the <code><--more--></code> feature, it will cut off posts in RSS feeds.'); ?></p> 41 79 </td> 42 80 </tr> 43 81 </table> 44 82 </fieldset> 45 <table width="100%" cellspacing="2" cellpadding="5" class=" editform">83 <table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform"> 46 84 <tr valign="top"> 47 85 <th width="33%" scope="row"><?php _e('Encoding for pages and feeds:') ?></th> … … 51 89 </table> 52 90 <p> 53 <label><input type="checkbox" name="gzipcompression" value="1" <?php checked('1', get_ settings('gzipcompression')); ?> />91 <label><input type="checkbox" name="gzipcompression" value="1" <?php checked('1', get_option('gzipcompression')); ?> /> 54 92 <?php _e('WordPress should compress articles (gzip) if browsers ask for them') ?></label> 55 93 </p> 56 94 <p class="submit"> 57 95 <input type="hidden" name="action" value="update" /> 58 <input type="hidden" name="page_options" value="posts_per_page,what_to_show,posts_per_rss,rss_use_excerpt,blog_charset,gzipcompression " />59 <input type="submit" name="Submit" value="<?php _e('Update Options ') ?> »" />96 <input type="hidden" name="page_options" value="posts_per_page,what_to_show,posts_per_rss,rss_use_excerpt,blog_charset,gzipcompression,show_on_front,page_on_front,page_for_posts" /> 97 <input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /> 60 98 </p> 61 99 </form>
Note: See TracChangeset
for help on using the changeset viewer.