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>


	<input type="text" name="s" size="30" value="<?php echo esc_attr($term) ?>" />

	<?php submit_button( __( 'Search' ), 'button', 'search', false ); ?>





No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: