Add indent to front page drop-downs in options-reading, to better indicate they are dependent on the radio button above them. fixes #12266

git-svn-id: https://develop.svn.wordpress.org/trunk@13971 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-04-03 12:53:46 +00:00
parent 9ca65d19a3
commit 5136414342
3 changed files with 5 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -2020,6 +2020,8 @@ input#link_url {
margin: 0;
}
#front-page-warning,
#front-static-pages ul,
.inline-editor ul.cat-checklist ul,
.categorydiv ul.categorychecklist ul,
#linkcategorydiv ul.categorychecklist ul {

View File

@ -29,7 +29,7 @@ include( 'admin-header.php' );
<?php if ( get_pages() ): ?>
<tr valign="top">
<th scope="row"><?php _e( 'Front page displays' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Front page displays' ); ?></span></legend>
<td id="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Front page displays' ); ?></span></legend>
<p><label>
<input name="show_on_front" type="radio" value="posts" class="tog" <?php checked( 'posts', get_option( 'show_on_front' ) ); ?> />
<?php _e( 'Your latest posts' ); ?>
@ -45,11 +45,7 @@ include( 'admin-header.php' );
<li><label for="page_for_posts"><?php printf( __( 'Posts page: %s' ), wp_dropdown_pages( array( 'name' => 'page_for_posts', 'echo' => 0, 'show_option_none' => __( '&mdash; Select &mdash;' ), 'selected' => get_option( 'page_for_posts' ) ) ) ); ?></label></li>
</ul>
<?php if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) == get_option( 'page_on_front' ) ) : ?>
<div id="front-page-warning" class="updated">
<p>
<?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?>
</p>
</div>
<div id="front-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?></p></div>
<?php endif; ?>
</fieldset></td>
</tr>