install_theme_search_form [ WordPress Function ]
install_theme_search_form ( $type_selector = true )
| Defined at: |
|
Soorgelijke functies: install_search_form, install_theme_information, install_themes_upload, install_themes_feature_list, install_themes_dashboard
Display search form for searching themes.
Source
<?php
function install_theme_search_form( $type_selector = true ) {
$type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : 'term';
$term = isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : '';
if ( ! $type_selector )
echo '<p class="install-help">' . __( 'Search for themes by keyword.' ) . '</p>';
?>
<form id="search-themes" method="get" action="">
<input type="hidden" name="tab" value="search" />
<?php if ( $type_selector ) : ?>
<select name="type" id="typeselector">
<option value="term" <?php selected('term', $type) ?>><?php _e('Keyword'); ?></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>
<?php endif; ?>
<input type="search" name="s" size="30" value="<?php echo esc_attr($term) ?>" />
<?php submit_button( __( 'Search' ), 'button', 'search', false ); ?>
</form>
<?php
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- PHPXRef 0.7 : WordPress : Detail view of theme-install.php
install_theme_search_form() install_themes_dashboard() install_themes_upload () display_theme() display_themes() install_theme_information(). Functions ...
phpxref.ftwr.co.uk - wp-admin/includes/theme-install.php source
49 * 50 * @since 2.8.0 51 */ 52 function install_theme_search_form( $ type_selector = true ) { 53 $type = isset( $_REQUEST['type'] ) ? stripslashes( ...
phpxref.ftwr.co.uk - <?php /** * WordPress Theme Install Administration API ...
@since 2.8.0 */ function install_theme_search_form( $type_selector = true ) { $ type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : 'term'; ...
core.svn.wordpress.org - wp-admin/includes/class-wp-theme-install-list-table.php source
Jun 1, 2011... 76 } 77 78 add_action( 'install_themes_table_header', ' install_theme_search_form' ); 79 break; 80 81 case 'featured': 82 //case 'popular': 83 ...
xref.yoast.com