WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/25/2014 03:57:34 PM (6 years ago)
Author:
helen
Message:

Make filter bar CSS less verbose and redundant.

Also removes an unused handler in the theme feature filter.

see #28794.

File:
1 edited

Legend:

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

    r29217 r29596  
    136136
    137137    <div class="wp-filter">
    138         <div class="wp-filter-count">
     138        <div class="filter-count">
    139139            <span class="count theme-count"></span>
    140140        </div>
    141141
    142         <ul class="wp-filter-links">
    143             <li><a class="wp-filter-link" href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a></li>
    144             <li><a class="wp-filter-link" href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li>
    145             <li><a class="wp-filter-link" href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li>
     142        <ul class="filter-links">
     143            <li><a href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a></li>
     144            <li><a href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li>
     145            <li><a href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li>
    146146        </ul>
    147147
    148         <a class="wp-filter-drawer-toggle" href="#"><?php _e( 'Feature Filter' ); ?></a>
    149 
    150         <div class="wp-filter-drawer">
    151             <div class="wp-filter-drawer-buttons">
     148        <a class="drawer-toggle" href="#"><?php _e( 'Feature Filter' ); ?></a>
     149
     150        <div class="search-form"></div>
     151
     152        <div class="filter-drawer">
     153            <div class="buttons">
    152154                <a class="apply-filters button button-secondary" href="#"><?php _e( 'Apply Filters' ); ?><span></span></a>
    153155                <a class="clear-filters button button-secondary" href="#"><?php _e( 'Clear' ); ?></a>
     
    157159        foreach ( $feature_list as $feature_name => $features ) {
    158160            if ( $feature_name === 'Features' || $feature_name === __( 'Features' ) ) { // hack hack hack
    159                 echo '<div class="wp-filter-group wp-filter-group-wide">';
     161                echo '<div class="filter-group wide">';
    160162            } else {
    161                 echo '<div class="wp-filter-group">';
     163                echo '<div class="filter-group">';
    162164            }
    163165            $feature_name = esc_html( $feature_name );
    164             echo '<h4 class="wp-filter-group-title">' . $feature_name . '</h4>';
     166            echo '<h4>' . $feature_name . '</h4>';
    165167            echo '<ol class="feature-group">';
    166168            foreach ( $features as $feature => $feature_name ) {
     
    173175        }
    174176        ?>
    175             <div class="wp-filter-by">
     177            <div class="filtered-by">
    176178                <span><?php _e( 'Filtering by:' ); ?></span>
    177179                <div class="tags"></div>
     
    180182        </div>
    181183    </div>
    182     <div class="theme-browser wp-filter-content"></div>
     184    <div class="theme-browser content-filterable"></div>
    183185    <div class="theme-install-overlay wp-full-overlay expanded"></div>
    184186
Note: See TracChangeset for help on using the changeset viewer.