Theme installer:

* Restore the feature filter.
 * Improve responsiveness.
 * Router updates, fixes.
 * Make "Upload Theme" button more consistent with the admin.
 * Avoid theme-count causing filters to jump.

props matveb.
see #27055.


git-svn-id: https://develop.svn.wordpress.org/trunk@27636 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2014-03-20 04:19:55 +00:00
parent 0963ea19a0
commit 3217fa545b
3 changed files with 139 additions and 26 deletions

View File

@@ -104,7 +104,8 @@ include(ABSPATH . 'wp-admin/admin-header.php');
<div class="wrap">
<h2>
<?php echo esc_html( $title ); ?>
<a class="upload button button-secondary"><?php esc_html_e( 'Upload Theme' ); ?></a>
<a class="upload add-new-h2"><?php esc_html_e( 'Upload Theme' ); ?></a>
<a class="browse-themes add-new-h2"><?php esc_html_e( 'Browse' ); ?></a>
</h2>
<div class="upload-theme">
@@ -117,12 +118,28 @@ include(ABSPATH . 'wp-admin/admin-header.php');
<span class="theme-section" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></span>
<span class="theme-section" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></span>
<div class="theme-top-filters">
<span class="theme-filter" data-filter="photoblogging">Photography</span>
<span class="theme-filter" data-filter="responsive-layout">Responsive</span>
<span class="theme-filter more-filters">More</span>
<!--<span class="theme-filter" data-filter="photoblogging">Photography</span>
<span class="theme-filter" data-filter="responsive-layout">Responsive</span>-->
<span class="more-filters"><?php _e( 'Feature Filter' ); ?></span>
</div>
<div class="more-filters-container">
Display more filters.
<?php
$feature_list = get_theme_feature_list();
foreach ( $feature_list as $feature_name => $features ) {
echo '<div class="filters-group">';
$feature_name = esc_html( $feature_name );
echo '<h4 class="feature-name">' . $feature_name . '</h4>';
echo '<ol class="feature-group">';
foreach ( $features as $feature => $feature_name ) {
$feature = esc_attr( $feature );
echo '<li><input type="checkbox" id="feature-id-' . $feature . '" value="' . $feature . '" /> ';
echo '<label for="feature-id-' . $feature . '">' . $feature_name . '</label></li>';
}
echo '</ol>';
echo '</div>';
}
?>
<br class="clear" />
</div>
</div>
<div class="theme-browser"></div>