Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/21/2011 09:26:34 PM (13 years ago)
Author:
djpaul
Message:

Improve alignment of "edit this entry" link when viewing a post. Also improves i18n. Fixes #3163

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/single.php

    r4185 r4223  
    1414                    <div class="author-box">
    1515                        <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
    16                         <p><?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
     16                        <p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
    1717                    </div>
    1818
     
    2020                        <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    2121
    22                         <p class="date"><?php echo get_the_date() ?> <em><?php _e( 'in', 'buddypress' ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></em> <?php edit_post_link( __( 'Edit this entry', 'buddypress' ), '<em class="edit-link">', '</em>' ); ?></p>
     22                        <p class="date">
     23                            <?php printf( __( '%1$s <span>in %2$s by %3$s</span>', 'buddypress' ), get_the_date(), get_the_category_list( ', ' ), bp_core_get_userlink( $post->post_author ) ); ?>
     24                            <span class="post-utility alignright"><?php edit_post_link( __( 'Edit this entry', 'buddypress' ) ); ?></span>
     25                        </p>
    2326
    2427                        <div class="entry">
Note: See TracChangeset for help on using the changeset viewer.