Definition:
function install_theme_search_form() {}
Display search form for searching themes.
Source code
function install_theme_search_form() { $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : ''; $term = isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : ''; ?> <p class="install-help"><?php _e('Search for themes by keyword, author, or tag.') ?></p> <form id="search-themes" method="get" action=""> <input type="hidden" name="tab" value="search" /> <select name="type" id="typeselector"> <option value="term" <?php selected('term', $type) ?>><?php _e('Term'); ?></option> <option value="author" <?php selected('author', $type) ?>><?php _e('Author'); ?></option> <option value="tag" <?php selected('tag', $type) ?>><?php _ex('Tag', 'Theme Installer'); ?></option> </select> <input type="text" name="s" size="30" value="<?php echo esc_attr($term) ?>" /> <?php submit_button( __( 'Search' ), 'button', 'search', false ); ?> </form> <?php }
2067
No comments yet... Be the first to leave a reply!