Changeset 3300 for trunk/bp-themes/bp-default/comments.php
- Timestamp:
- 10/24/2010 09:22:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/comments.php
r3232 r3300 15 15 16 16 <?php 17 $numTrackBacks = 0; $numComments = 0; 18 foreach ( (array)$comments as $comment ) if ( get_comment_type() != "comment") $numTrackBacks++; else $numComments++; 17 // Only include comments 18 $numTrackBacks = 0; $numComments = 0; 19 foreach ( (array)$comments as $comment ) 20 if ( 'comment' != get_comment_type() ) 21 $numTrackBacks++; 22 else 23 $numComments++; 19 24 ?> 20 25 21 <span class="title"><?php the_title() ?></span> 22 <h3 id="comments"><?php comments_number( 'No Comments', 'One Comment', $numComments . ' Comments' );?></h3> 26 <h3 id="comments"> 27 <?php 28 printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', $numComments, 'buddypress' ), 29 number_format_i18n( $numComments ), '<em>' . get_the_title() . '</em>' ); 30 ?> 31 </h3> 23 32 24 33 <?php do_action( 'bp_before_blog_comment_list' ) ?> … … 96 105 <?php do_action( 'bp_before_blog_comment_form' ) ?> 97 106 98 <form action="<?php echo get_option( 'siteurl' ); ?>/wp-comments-post.php" method="post" id="commentform" class="standard-form">107 <form action="<?php echo site_url( 'wp-comments-post.php' ) ?>" method="post" id="commentform" class="standard-form"> 99 108 100 109 <?php if ( $user_ID ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.