comment_form_title [ WordPress Function ]
comment_form_title ( $noreplytext = false, $replytext = false, $linktoparent = true )
| Parameters: |
|
| Defined at: |
|
Soorgelijke functies: comment_form, comment_time, comment_author_ip, comment_author_url, comment_date
Display text based on comment reply status. Only affects users with Javascript disabled.
Source
<?php
function comment_form_title( $noreplytext = false, $replytext = false, $linktoparent = true ) {
global $comment;
if ( false === $noreplytext ) $noreplytext = __( 'Leave a Reply' );
if ( false === $replytext ) $replytext = __( 'Leave a Reply to %s' );
$replytoid = isset($_GET['replytocom']) ? (int) $_GET['replytocom'] : 0;
if ( 0 == $replytoid )
echo $noreplytext;
else {
$comment = get_comment($replytoid);
$author = ( $linktoparent ) ? '<a href="#comment-' . get_comment_ID() . '">' . get_comment_author() . '</a>' : get_comment_author();
printf( $replytext, $author );
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/comment form title « WordPress Codex
Description. Displays text based on comment reply status. This only affects users with Javascript disabled or pages without the comment-reply.js JavaScript ...
codex.wordpress.org - comment_form_title not workign with threaded comments - WordPress
comment_form_title not workign with threaded comments (12 posts). chaz7979 ... <?php comment_form_title( 'Leave a Comment', 'Leave a Reply to %s' ); ?> ...
wordpress.org - WordPress › Support » comment_form_title doesn't work
Just upgraded to 3.1 and I was hoping that the comment_form_title() function would work already. Still doesn't. Specifically, it doesn't follow the 2nd parameter ...
wordpress.org - [SOLVED] Leave A Comment title instead of Leave A Reply Title.
<h3 class="reply"><?php comment_form_title($noreplytext = __('Leave a Reply',' atahualpa'),. To: Code: <h3 class="reply"><?php ...
forum.bytesforall.com