Switch language

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




wp_comment_reply [ WordPress Function ]

wp_comment_reply ( $position = '1', $checkbox = false, $mode = 'single', $table_row = true )
Parameters:
  • (unknown_type) $position
  • (unknown_type) $checkbox
  • (unknown_type) $mode
Defined at:



{@internal Missing Short Description}}

Source


<?php
function wp_comment_reply($position '1'$checkbox false$mode 'single'$table_row true) {
    
// allow plugin to replace the popup content
    
$content apply_filters'wp_comment_reply''', array('position' => $position'checkbox' => $checkbox'mode' => $mode) );

    if ( ! empty(
$content) ) {
        echo 
$content;
        return;
    }

    if ( 
$mode == 'single' ) {
        
$wp_list_table _get_list_table('WP_Post_Comments_List_Table');
    } else {
        
$wp_list_table _get_list_table('WP_Comments_List_Table');
    }

?>
<form method="get" action="">
<?php if ( $table_row ) : ?>
<table style="display:none;"><tbody id="com-reply"><tr id="replyrow" style="display:none;"><td colspan="<?php echo $wp_list_table->get_column_count(); ?>" class="colspanchange">
<?php else : ?>
<div id="com-reply" style="display:none;"><div id="replyrow" style="display:none;">
<?php endif; ?>
    <div id="replyhead" style="display:none;"><h5><?php _e'Reply to Comment' ); ?></h5></div>
    <div id="addhead" style="display:none;"><h5><?php _e('Add new Comment'); ?></h5></div>
    <div id="edithead" style="display:none;">
        <div class="inside">
        <label for="author"><?php _e('Name'?></label>
        <input type="text" name="newcomment_author" size="50" value="" tabindex="101" id="author" />
        </div>

        <div class="inside">
        <label for="author-email"><?php _e('E-mail'?></label>
        <input type="text" name="newcomment_author_email" size="50" value="" tabindex="102" id="author-email" />
        </div>

        <div class="inside">
        <label for="author-url"><?php _e('URL'?></label>
        <input type="text" id="author-url" name="newcomment_author_url" size="103" value="" tabindex="103" />
        </div>
        <div style="clear:both;"></div>
    </div>

    <div id="replycontainer">
    <?php
    $quicktags_settings 
= array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close' );
    
wp_editor'''replycontent', array( 'media_buttons' => false'tinymce' => false'quicktags' => $quicktags_settings'tabindex' => 104 ) );
    
?>
    </div>

    <p id="replysubmit" class="submit">
    <a href="#comments-form" class="cancel button-secondary alignleft" tabindex="106"><?php _e('Cancel'); ?></a>
    <a href="#comments-form" class="save button-primary alignright" tabindex="104">
    <span id="addbtn" style="display:none;"><?php _e('Add Comment'); ?></span>
    <span id="savebtn" style="display:none;"><?php _e('Update Comment'); ?></span>
    <span id="replybtn" style="display:none;"><?php _e('Submit Reply'); ?></span></a>
    <img class="waiting" style="display:none;" src="<?php echo esc_urladmin_url'images/wpspin_light.gif' ) ); ?>" alt="" />
    <span class="error" style="display:none;"></span>
    <br class="clear" />
    </p>

    <input type="hidden" name="user_ID" id="user_ID" value="<?php echo get_current_user_id(); ?>" />
    <input type="hidden" name="action" id="action" value="" />
    <input type="hidden" name="comment_ID" id="comment_ID" value="" />
    <input type="hidden" name="comment_post_ID" id="comment_post_ID" value="" />
    <input type="hidden" name="status" id="status" value="" />
    <input type="hidden" name="position" id="position" value="<?php echo $position?>" />
    <input type="hidden" name="checkbox" id="checkbox" value="<?php echo $checkbox 0?>" />
    <input type="hidden" name="mode" id="mode" value="<?php echo esc_attr($mode); ?>" />
    <?php
        wp_nonce_field
'replyto-comment''_ajax_nonce-replyto-comment'false );
        if ( 
current_user_can'unfiltered_html' ) )
            
wp_nonce_field'unfiltered-html-comment''_wp_unfiltered_html_comment'false );
    
?>
<?php 
if ( $table_row ) : ?>
</td></tr></tbody></table>
<?php else : ?>
</div></div>
<?php endif; ?>
</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