install_themes_dashboard

Display tags filter for themes.

Description

install_themes_dashboard(); 

Usage

  1. if ( !function_exists( 'install_themes_dashboard' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/theme-install.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = install_themes_dashboard(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/theme-install.php  
  1. function install_themes_dashboard() { 
  2. ?> 
  3. <h4><?php _e('Feature Filter') ?></h4> 
  4. <p class="install-help"><?php _e( 'Find a theme based on specific features.' ); ?></p> 
  5.  
  6. <form method="get"> 
  7. <input type="hidden" name="tab" value="search" /> 
  8. <?php 
  9. $feature_list = get_theme_feature_list(); 
  10. echo '<div class="feature-filter">'; 
  11.  
  12. foreach ( (array) $feature_list as $feature_name => $features ) { 
  13. $feature_name = esc_html( $feature_name ); 
  14. echo '<div class="feature-name">' . $feature_name . '</div>'; 
  15.  
  16. echo '<ol class="feature-group">'; 
  17. foreach ( $features as $feature => $feature_name ) { 
  18. $feature_name = esc_html( $feature_name ); 
  19. $feature = esc_attr($feature); 
  20. ?> 
  21.  
  22. <li> 
  23. <input type="checkbox" name="features[]" id="feature-id-<?php echo $feature; ?>" value="<?php echo $feature; ?>" /> 
  24. <label for="feature-id-<?php echo $feature; ?>"><?php echo $feature_name; ?></label> 
  25. </li> 
  26.  
  27. <?php } ?> 
  28. </ol> 
  29. <br class="clear" /> 
  30. <?php 
  31. } ?> 
  32.  
  33. </div> 
  34. <br class="clear" /> 
  35. <?php submit_button( __( 'Find Themes' ), '', 'search' ); ?> 
  36. </form> 
  37. <?php