Skip to:
Content

BuddyPress.org

Ticket #1646: 1646.patch.diff

File 1646.patch.diff, 1.5 KB (added by hempsworth, 16 years ago)

Adds a link in single.php, and style in default.css

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

     
    2626                                        <div class="post-content">
    2727                                                <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
    2828
    29                                                 <p class="date"><?php the_time('F j, Y') ?> <em><?php _e( 'in', 'buddypress' ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></em></p>
     29                                                <p class="date"><?php the_time('F j, Y') ?> <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>
    3030
    3131                                                <div class="entry">
    3232                                                        <?php the_content( __( 'Read the rest of this entry &rarr;', 'buddypress' ) ); ?>
  • bp-themes/bp-default/_inc/css/default.css

     
    15331533                border-bottom: 1px solid #e4e4e4;
    15341534                border-top: 1px solid #e4e4e4;
    15351535        }
     1536       
     1537                div.post p.date em.edit-link {
     1538                        float: right;
     1539                }
    15361540
    15371541        div.post p.postmetadata {
    15381542                margin-top: 15px;