Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




install_search_form [ WordPress Function ]

install_search_form ( $type_selector = true )
Defined at:



Display search form for searching plugins.

Source


<?php
function install_search_form$type_selector true ) {
    
$type = isset($_REQUEST['type']) ? stripslashes$_REQUEST['type'] ) : 'term';
    
$term = isset($_REQUEST['s']) ? stripslashes$_REQUEST['s'] ) : '';

    
?><form id="search-plugins" 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''Plugin Installer'); ?></option>
        </select>
        <?php endif; ?>
        <input type="search" name="s" value="<?php echo esc_attr($term?>" />
        <label class="screen-reader-text" for="plugin-search-input"><?php _e('Search Plugins'); ?></label>
        <?php submit_button__'Search Plugins' ), 'button''plugin-search-input'false ); ?>
    </form><?php
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics