Skip to:
Content

BuddyPress.org

Changeset 4223


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

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

Location:
trunk/bp-themes/bp-default
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/css/default.css

    r4213 r4223  
    21272127}
    21282128
     2129p.date span,
     2130.post-utility {
     2131    font-style: italic;
     2132}
     2133
    21292134p.date,
    21302135p.postmetadata {
  • trunk/bp-themes/bp-default/archive.php

    r4126 r4223  
    2727                        <div class="author-box">
    2828                            <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
    29                             <p><?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
     29                            <p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
    3030                        </div>
    3131
     
    3333                            <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>
    3434
    35                             <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></p>
     35                            <p class="date"><?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 ) ); ?></p>
    3636
    3737                            <div class="entry">
  • trunk/bp-themes/bp-default/index.php

    r4126 r4223  
    1818                        <div class="author-box">
    1919                            <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
    20                             <p><?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
     20                            <p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
    2121                        </div>
    2222
     
    2424                            <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>
    2525
    26                             <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></p>
     26                            <p class="date"><?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 ) ); ?></p>
    2727
    2828                            <div class="entry">
  • trunk/bp-themes/bp-default/search.php

    r4126 r4223  
    2727                        <div class="author-box">
    2828                            <?php echo get_avatar( get_the_author_meta( 'email' ), '50' ); ?>
    29                             <p><?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
     29                            <p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
    3030                        </div>
    3131
     
    3333                            <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>
    3434
    35                             <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></p>
     35                            <p class="date"><?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 ) ); ?></p>
    3636
    3737                            <div class="entry">
  • 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.