Ticket #14936: 14936.diff
File 14936.diff, 1.7 KB (added by , 14 years ago) |
---|
-
wp-admin/themes.php
142 142 143 143 <h3><?php _e('Available Themes'); ?></h3> 144 144 145 <?php if ( !empty( $_REQUEST['s'] ) || $wp_list_table->has_items() ) : ?>145 <?php if ( !empty( $_REQUEST['s']) || !empty( $_REQUEST['filter'] ) || !empty( $_REQUEST['features'] ) || $wp_list_table->has_items() ) : ?> 146 146 147 147 <form class="search-form filter-form" action="" method="get"> 148 148 … … 155 155 156 156 <br class="clear"/> 157 157 158 <div id="filter-box" style=" display: none;">158 <div id="filter-box" style="<?php if ( empty($_REQUEST['filter']) ) echo 'display: none;'; ?>"> 159 159 <?php $feature_list = get_theme_feature_list(); ?> 160 160 <div class="feature-filter"> 161 161 <p class="install-help"><?php _e('Theme filters') ?></p> 162 162 <input type="hidden" name="filter" value="1" /> 163 163 <?php foreach ( $feature_list as $feature_name => $features ) : 164 164 $feature_name = esc_html( $feature_name ); ?> 165 165 … … 184 184 <div class="feature-container"> 185 185 <?php submit_button( __( 'Apply Filters' ), 'button-secondary submitter', 'submit', false, array( 'style' => 'margin-left: 120px' ) ); ?> 186 186 187 <small><a id="mini-filter-click" href="<?php echo admin_url( 'themes.php'); ?>"><?php _e( 'Close filters' )?></a></small>187 <small><a id="mini-filter-click" href="<?php echo remove_query_arg( array('filter', 'features', 'submit') ); ?>"><?php _e( 'Close filters' )?></a></small> 188 188 </div> 189 189 <br/> 190 190 </div> 191 191 <br class="clear"/> 192 192 </div> 193 193 194 </form>195 194 <br class="clear" /> 196 195 197 196 <?php endif; ?> 198 197 199 198 <?php $wp_list_table->display(); ?> 200 199 200 </form> 201 201 <br class="clear" /> 202 202 203 203 <?php