mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Make filter bar CSS less verbose and redundant.
Also removes an unused handler in the theme feature filter. see #28794. git-svn-id: https://develop.svn.wordpress.org/trunk@29596 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -135,20 +135,22 @@ include(ABSPATH . 'wp-admin/admin-header.php');
|
||||
</div>
|
||||
|
||||
<div class="wp-filter">
|
||||
<div class="wp-filter-count">
|
||||
<div class="filter-count">
|
||||
<span class="count theme-count"></span>
|
||||
</div>
|
||||
|
||||
<ul class="wp-filter-links">
|
||||
<li><a class="wp-filter-link" href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a></li>
|
||||
<li><a class="wp-filter-link" href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li>
|
||||
<li><a class="wp-filter-link" href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li>
|
||||
<ul class="filter-links">
|
||||
<li><a href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a></li>
|
||||
<li><a href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li>
|
||||
<li><a href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li>
|
||||
</ul>
|
||||
|
||||
<a class="wp-filter-drawer-toggle" href="#"><?php _e( 'Feature Filter' ); ?></a>
|
||||
<a class="drawer-toggle" href="#"><?php _e( 'Feature Filter' ); ?></a>
|
||||
|
||||
<div class="wp-filter-drawer">
|
||||
<div class="wp-filter-drawer-buttons">
|
||||
<div class="search-form"></div>
|
||||
|
||||
<div class="filter-drawer">
|
||||
<div class="buttons">
|
||||
<a class="apply-filters button button-secondary" href="#"><?php _e( 'Apply Filters' ); ?><span></span></a>
|
||||
<a class="clear-filters button button-secondary" href="#"><?php _e( 'Clear' ); ?></a>
|
||||
</div>
|
||||
@@ -156,12 +158,12 @@ include(ABSPATH . 'wp-admin/admin-header.php');
|
||||
$feature_list = get_theme_feature_list();
|
||||
foreach ( $feature_list as $feature_name => $features ) {
|
||||
if ( $feature_name === 'Features' || $feature_name === __( 'Features' ) ) { // hack hack hack
|
||||
echo '<div class="wp-filter-group wp-filter-group-wide">';
|
||||
echo '<div class="filter-group wide">';
|
||||
} else {
|
||||
echo '<div class="wp-filter-group">';
|
||||
echo '<div class="filter-group">';
|
||||
}
|
||||
$feature_name = esc_html( $feature_name );
|
||||
echo '<h4 class="wp-filter-group-title">' . $feature_name . '</h4>';
|
||||
echo '<h4>' . $feature_name . '</h4>';
|
||||
echo '<ol class="feature-group">';
|
||||
foreach ( $features as $feature => $feature_name ) {
|
||||
$feature = esc_attr( $feature );
|
||||
@@ -172,14 +174,14 @@ include(ABSPATH . 'wp-admin/admin-header.php');
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
<div class="wp-filter-by">
|
||||
<div class="filtered-by">
|
||||
<span><?php _e( 'Filtering by:' ); ?></span>
|
||||
<div class="tags"></div>
|
||||
<a href="#"><?php _e( 'Edit' ); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="theme-browser wp-filter-content"></div>
|
||||
<div class="theme-browser content-filterable"></div>
|
||||
<div class="theme-install-overlay wp-full-overlay expanded"></div>
|
||||
|
||||
<p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
|
||||
|
||||
Reference in New Issue
Block a user