+<h3><?php _e('Available Themes'); ?></h3>
+
+<?php if ( !empty( $_REQUEST['s'] ) || !empty( $_REQUEST['filter'] ) || $wp_list_table->has_items() ) : ?>
+
+<form class="search-form filter-form" action="" method="get">
+
+<p class="search-box">
+ <label class="screen-reader-text" for="theme-search-input"><?php _e('Search Themes'); ?>:</label>
+ <input type="text" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" />
+ <?php submit_button( __( 'Search Themes' ), 'button', 'submit', false ); ?>
+ <a id="filter-click" href="?filter=1"><?php _e( 'Feature Filter' ); ?></a>
+</p>
+
+<br class="clear"/>
+
+<div id="filter-box" style="<?php if ( empty($_REQUEST['filter']) ) echo 'display: none;'; ?>">
+<?php $feature_list = get_theme_feature_list(); ?>
+ <div class="feature-filter">
+ <p class="install-help"><?php _e('Theme filters') ?></p>
+ <?php if ( !empty( $_REQUEST['filter'] ) ) : ?>
+ <input type="hidden" name="filter" value="1" />
+ <?php endif; ?>
+ <?php foreach ( $feature_list as $feature_name => $features ) :
+ $feature_name = esc_html( $feature_name ); ?>
+
+ <div class="feature-container">
+ <div class="feature-name"><?php echo $feature_name ?></div>
+
+ <ol class="feature-group">
+ <?php foreach ( $features as $key => $feature ) :
+ $feature_name = $feature;
+ $feature_name = esc_html( $feature_name );
+ $feature = esc_attr( $feature );
+ ?>
+ <li>
+ <input type="checkbox" name="features[]" id="feature-id-<?php echo $key; ?>" value="<?php echo $key; ?>" <?php checked( in_array( $key, $wp_list_table->features ) ); ?>/>
+ <label for="feature-id-<?php echo $key; ?>"><?php echo $feature_name; ?></label>
+ </li>
+ <?php endforeach; ?>
+ </ol>
+ </div>
+ <?php endforeach; ?>
+
+ <div class="feature-container">
+ <?php submit_button( __( 'Apply Filters' ), 'button-secondary submitter', 'submit', false, array( 'style' => 'margin-left: 120px' ) ); ?>
+
+ <small><a id="mini-filter-click" href="<?php echo esc_url( remove_query_arg( array('filter', 'features', 'submit') ) ); ?>"><?php _e( 'Close filters' )?></a></small>
+ </div>
+ <br/>
+ </div>
+ <br class="clear"/>
+</div>