Make WordPress Core


Ignore:
Timestamp:
03/20/2014 04:19:55 AM (10 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/theme-install.php

    r27620 r27636  
    105105    <h2>
    106106        <?php echo esc_html( $title ); ?>
    107         <a class="upload button button-secondary"><?php esc_html_e( 'Upload Theme' ); ?></a>
     107        <a class="upload add-new-h2"><?php esc_html_e( 'Upload Theme' ); ?></a>
     108        <a class="browse-themes add-new-h2"><?php esc_html_e( 'Browse' ); ?></a>
    108109    </h2>
    109110
     
    118119        <span class="theme-section" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></span>
    119120        <div class="theme-top-filters">
    120             <span class="theme-filter" data-filter="photoblogging">Photography</span>
    121             <span class="theme-filter" data-filter="responsive-layout">Responsive</span>
    122             <span class="theme-filter more-filters">More</span>
     121            <!--<span class="theme-filter" data-filter="photoblogging">Photography</span>
     122            <span class="theme-filter" data-filter="responsive-layout">Responsive</span>-->
     123            <span class="more-filters"><?php _e( 'Feature Filter' ); ?></span>
    123124        </div>
    124125        <div class="more-filters-container">
    125             Display more filters.
     126        <?php
     127        $feature_list = get_theme_feature_list();
     128        foreach ( $feature_list as $feature_name => $features ) {
     129            echo '<div class="filters-group">';
     130            $feature_name = esc_html( $feature_name );
     131            echo '<h4 class="feature-name">' . $feature_name . '</h4>';
     132            echo '<ol class="feature-group">';
     133            foreach ( $features as $feature => $feature_name ) {
     134                $feature = esc_attr( $feature );
     135                echo '<li><input type="checkbox" id="feature-id-' . $feature . '" value="' . $feature . '" /> ';
     136                echo '<label for="feature-id-' . $feature . '">' . $feature_name . '</label></li>';
     137            }
     138            echo '</ol>';
     139            echo '</div>';
     140        }
     141        ?>
     142            <br class="clear" />
    126143        </div>
    127144    </div>
Note: See TracChangeset for help on using the changeset viewer.