Ticket #3245: #3245-comment-postmetadata-refinements-rev2.patch
File #3245-comment-postmetadata-refinements-rev2.patch, 2.2 KB (added by , 14 years ago) |
---|
-
bp-themes/bp-default/single.php
29 29 30 30 <?php wp_link_pages( array( 'before' => '<div class="page-link"><p>' . __( '<strong>Pages:</strong> ', 'buddypress' ), 'after' => '</p></div>', 'next_or_number' => 'number')); ?> 31 31 </div> 32 33 <?php 34 $comment_count = get_comments_number(); 35 ($comment_count >= 1 ) ? $post_has_comments = true : $post_has_comments = false; 36 ($comment_count == 1)? $print_count = __( $comment_count . ' Comment', 'buddypress') : $print_count = __( $comment_count . ' Comments ', 'buddypress'); 37 ?> 38 39 <p class="postmetadata"><span class="tags"><?php the_tags( __( 'Tags: ', 'buddypress' ), ', ', '<br />'); ?></span> <?php if( !$post_has_comments && !comments_open() && pings_open() ): ?> <span class="comments-off comments"><?php _e('Pingbacks Open, Comments Off', 'buddypress') ?></span><?php else: ?><span class="comments"><?php if( comments_open() ) comments_popup_link( __( 'No Comments »', 'buddypress' ), __( '1 Comment »', 'buddypress' ), __( '% Comments »', 'buddypress' ) ) ?><?php if( $post_has_comments && !comments_open() ) _e( $print_count . ' » Comments are now closed', 'buddypress') ?> </span><?php endif; ?></p> 32 40 33 <p class="postmetadata"><?php the_tags( '<span class="tags">' . __( 'Tags: ', 'buddypress' ), ', ', '</span>' ); ?> <span class="comments"><?php comments_popup_link( __( 'No Comments »', 'buddypress' ), __( '1 Comment »', 'buddypress' ), __( '% Comments »', 'buddypress' ) ); ?></span></p>34 35 41 <div class="alignleft"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'buddypress' ) . '</span> %title' ); ?></div> 36 42 <div class="alignright"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'buddypress' ) . '</span>' ); ?></div> 37 43 </div> … … 55 61 56 62 <?php get_sidebar() ?> 57 63 58 <?php get_footer() ?> 59 No newline at end of file 64 <?php get_footer() ?>