Skip to:
Content

BuddyPress.org

Ticket #3245: comment-postmetadata-refinements.patch

File comment-postmetadata-refinements.patch, 1.8 KB (added by hnla, 13 years ago)

add enhancements to comment metadata text

  • 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                                                        <?php  ( get_comments_number() >= 1 ) ? $post_has_comments = true : $post_has_comments = false ?>
     33                                                       
     34                                                        <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 comments_popup_link( __( 'No Comments &#187;', 'buddypress' ), __( '1 Comment &#187;', 'buddypress' ), __( '% Comments &#187;', 'buddypress' ) ); ?><?php if(!comments_open() && $post_has_comments) ?> <?php _e('Comments are now closed', 'buddypress') ?> </span><?php  endif; ?></p>
    3235
    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 
    3536                                                <div class="alignleft"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'buddypress' ) . '</span> %title' ); ?></div>
    3637                                                <div class="alignright"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'buddypress' ) . '</span>' ); ?></div>
    3738                                        </div>