Make WordPress Core


Ignore:
Timestamp:
03/01/2006 07:08:04 AM (21 years ago)
Author:
ryan
Message:

What's up front? #2515

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-reading.php

    r3541 r3581  
    1010<div class="wrap">
    1111<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
     14<?php if ( get_pages() ): ?>
     15<fieldset class="options">
     16<legend><?php _e('Front Page') ?></legend>
     17<table width="100%" cellspacing="2" cellpadding="5" class="editform">
     18<tr valign="top">
     19<th width="33%" scope="row"></th>
     20<td>
     21<p>
     22        <label>
     23                <input name="show_on_front" type="radio" value="posts" class="tog" <?php checked('posts', get_option('show_on_front')); ?> />
     24                <?php _e('Show the latest posts on the front page'); ?>
     25        </label>
     26</p>
     27<p>
     28        <label>
     29                <input name="show_on_front" type="radio" value="page" class="tog" <?php checked('page', get_option('show_on_front')); ?> />
     30                <?php printf(__('Show another <a href="%s">page</a> on the front page (Select below)'), 'edit-pages.php'); ?>
     31        </label>
     32</p>
     33<p>
     34        <?php printf(__('Show this page on the front page: %s'), wp_dropdown_pages("name=page_on_front&echo=0&selected=" . get_option('page_on_front'))); ?><br />
     35        <?php printf(__('Show the latest posts on this page: %s'), wp_dropdown_pages("name=page_for_posts&echo=0&selected=" . get_option('page_for_posts'))); ?>
     36</p>
     37</td>
     38</tr>
     39</table>
     40</fieldset>
     41<?php endif; ?>
     42
    1343<fieldset class="options">
    1444<legend><?php _e('Blog Pages') ?></legend>
    … …  
    5686<p class="submit">
    5787<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" />
     88<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" />
    5989<input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />
    6090</p>
Note: See TracChangeset for help on using the changeset viewer.