Skip to:
Content

BuddyPress.org

Changeset 4836


Ignore:
Timestamp:
07/24/2011 06:44:27 PM (13 years ago)
Author:
djpaul
Message:

Move sticky post styling to author-box. See #3241

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

Legend:

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

    r4835 r4836  
    9289285.5 - Posts
    929929--------------------------------------------------------------*/
    930 .sticky .date {
    931     background: #fff9db;
    932     border-top: 1px solid #ffe8c4;
    933     border-bottom: 1px solid #ffe8c4;
    934     color: #ffa200;
    935     padding: 5px;
    936 }
    937930div.page,
    938931div.post,
     
    10291022.tags {
    10301023    float: left;
     1024}
     1025span.sticky-post {
     1026    font-style: normal;
    10311027}
    10321028
  • trunk/bp-themes/bp-default/index.php

    r4528 r4836  
    2323                            <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
    2424                            <p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
     25
     26                            <?php if ( is_sticky() ) : ?>
     27                                <span class="activity sticky-post"><?php echo _x( 'Featured', 'Sticky post', 'buddypress' ); ?></span>
     28                            <?php endif; ?>
    2529                        </div>
    2630
Note: See TracChangeset for help on using the changeset viewer.