Skip to:
Content

BuddyPress.org

Ticket #3245: #3245-comment-postmetadata-refinements-rev2.patch

File #3245-comment-postmetadata-refinements-rev2.patch, 2.2 KB (added by hnla, 14 years ago)

Revision to original patch

  • bp-themes/bp-default/single.php

     
    2929
    3030                                                        <?php wp_link_pages( array( 'before' => '<div class="page-link"><p>' . __( '<strong>Pages:</strong> ', 'buddypress' ), 'after' => '</p></div>', 'next_or_number' => 'number')); ?>
    3131                                                </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 &#187;', 'buddypress' ), __( '1 Comment &#187;', 'buddypress' ), __( '% Comments &#187;', 'buddypress' ) )  ?><?php if( $post_has_comments && !comments_open() )    _e( $print_count . ' &#187; Comments are now closed', 'buddypress') ?> </span><?php endif; ?></p>
    3240
    33                                                 <p class="postmetadata"><?php the_tags( '<span class="tags">' . __( 'Tags: ', 'buddypress' ), ', ', '</span>' ); ?> <span class="comments"><?php comments_popup_link( __( 'No Comments &#187;', 'buddypress' ), __( '1 Comment &#187;', 'buddypress' ), __( '% Comments &#187;', 'buddypress' ) ); ?></span></p>
    34 
    3541                                                <div class="alignleft"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'buddypress' ) . '</span> %title' ); ?></div>
    3642                                                <div class="alignright"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'buddypress' ) . '</span>' ); ?></div>
    3743                                        </div>
     
    5561
    5662        <?php get_sidebar() ?>
    5763
    58 <?php get_footer() ?>
    59  No newline at end of file
     64<?php get_footer() ?>