Themes: Display Activated/Deleted messages below the H2, before the Themes. See #26305

git-svn-id: https://develop.svn.wordpress.org/trunk@26461 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2013-11-29 02:39:15 +00:00
parent cda0502917
commit 503b0e73c4
3 changed files with 6 additions and 8 deletions

View File

@ -340,11 +340,10 @@
/* /*
* The search form * The search form
*/ */
.theme-browser .theme-search { .themes-php .theme-search {
float: left;
position: relative; position: relative;
top: 7px; top: -2px;
left: 10px; left: 20px;
font-size: 16px; font-size: 16px;
font-weight: 300; font-weight: 300;
line-height: 1.5; line-height: 1.5;

View File

@ -73,7 +73,7 @@ themes.view.Appearance = wp.Backbone.View.extend({
// Render and append after screen title // Render and append after screen title
view.render(); view.render();
self.$el.append( view.el ); $('#wpbody h2:first').append( view.el );
}, },
// Checks when the user gets close to the bottom // Checks when the user gets close to the bottom

View File

@ -119,9 +119,6 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
<a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="add-new-h2"><?php echo esc_html( _x( 'Add New', 'Add new theme' ) ); ?></a> <a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="add-new-h2"><?php echo esc_html( _x( 'Add New', 'Add new theme' ) ); ?></a>
<?php endif; ?> <?php endif; ?>
</h2> </h2>
<div class="theme-browser"></div>
<?php <?php
if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?> if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?>
<div id="message1" class="updated"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div> <div id="message1" class="updated"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>
@ -180,6 +177,8 @@ if ( ! $ct->errors() || ( 1 == count( $ct->errors()->get_error_codes() )
*/ */
?> ?>
<div class="theme-browser"></div>
<?php <?php
// List broken themes, if any. // List broken themes, if any.
if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_get_themes( array( 'errors' => true ) ) ) { if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_get_themes( array( 'errors' => true ) ) ) {