Switch language

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




find_posts_div [ WordPress Function ]

find_posts_div ( $found_action = '' )
Parameters:
  • (unknown_type) $found_action
Defined at:



{@internal Missing Short Description}}

Source


<?php
function find_posts_div($found_action '') {
?>
    <div id="find-posts" class="find-box" style="display:none;">
        <div id="find-posts-head" class="find-box-head"><?php _e('Find Posts or Pages'); ?></div>
        <div class="find-box-inside">
            <div class="find-box-search">
                <?php if ( $found_action ) { ?>
                    <input type="hidden" name="found_action" value="<?php echo esc_attr($found_action); ?>" />
                <?php ?>

                <input type="hidden" name="affected" id="affected" value="" />
                <?php wp_nonce_field'find-posts''_ajax_nonce'false ); ?>
                <label class="screen-reader-text" for="find-posts-input"><?php _e'Search' ); ?></label>
                <input type="text" id="find-posts-input" name="ps" value="" />
                <input type="button" id="find-posts-search" value="<?php esc_attr_e'Search' ); ?>" class="button" /><br />

                <?php
                $post_types 
get_post_types( array('public' => true), 'objects' );
                foreach ( 
$post_types as $post ) {
                    if ( 
'attachment' == $post->name )
                        continue;
                
?>
                <input type="radio" name="find-posts-what" id="find-posts-<?php echo esc_attr($post->name); ?>" value="<?php echo esc_attr($post->name); ?><?php checked($post->name'post'); ?> />
                <label for="find-posts-<?php echo esc_attr($post->name); ?>"><?php echo $post->label?></label>
                <?php
                
?>
            </div>
            <div id="find-posts-response"></div>
        </div>
        <div class="find-box-buttons">
            <input id="find-posts-close" type="button" class="button alignleft" value="<?php esc_attr_e('Close'); ?>" />
            <?php submit_button__'Select' ), 'button-primary alignright''find-posts-submit'false ); ?>
        </div>
    </div>
<?php
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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