Skip to:
Content

BuddyPress.org

Changeset 2476


Ignore:
Timestamp:
01/29/2010 02:56:12 PM (17 years ago)
Author:
apeatling
Message:

Adding more prominent @username display.

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

Legend:

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

    r2460 r2476  
    309309        }
    310310
    311         div#item-header span.activity {
    312                 margin: 0 0 5px 4px;
    313                 vertical-align: bottom;
     311        div#item-header h2 { margin-bottom: 5px; }
     312
     313        div#item-header span.activity, div#item-header h2 span.highlight {
     314                vertical-align: middle;
    314315                font-size: 11px;
    315316                font-weight: normal;
    316317                line-height: 170%;
    317318        }
    318                 .groups div#item-header span.activity { margin-bottom: -2px; }
     319
     320        div#item-header h2 span.highlight { font-size: 16px; }
     321        div#item-header h2 span.highlight span {
     322                position: relative;
     323                top: -2px;
     324                right: -2px;
     325                font-weight: bold;
     326                font-size: 11px;
     327                background: #a1dcfa;
     328                color: #fff;
     329                padding: 1px 4px;
     330                margin-bottom: 2px;
     331                -moz-border-radius: 3px;
     332                -webkit-border-radius: 3px;
     333                vertical-align: middle;
     334                cursor: pointer;
     335                display: none;
     336        }
    319337
    320338        div#item-header div#item-meta {
     
    359377                float: left;
    360378                margin: 10px 10px 0 0;
     379        }
     380
     381        div#item-header div#message.info {
     382                margin-left: 170px;
     383                line-height: 80%;
    361384        }
    362385
     
    525548        border-right: 1px solid #FFE8C4;
    526549        color: #ffa200;
    527         padding: 2px 8px;
    528         margin-top: 8px;
     550        padding: 1px 8px;
     551        margin-top: 6px;
    529552        text-decoration: none;
    530553        -moz-border-radius: 3px;
  • trunk/bp-themes/bp-default/_inc/global.js

    r2473 r2476  
    3434        }
    3535
    36         /* @message Compose Scrolling */
     36        /* @mention Compose Scrolling */
    3737        if ( j.query.get('r') ) {
    3838                if ( j('textarea#whats-new').length ) {
     
    4141                }
    4242        }
     43
     44        /* @mention username help button display */
     45        if ( j( 'span.highlight span' ).length )
     46                j( 'span.highlight span' ).toggle();
    4347
    4448        /**** Activity Posting ********************************************************/
     
    445449                }
    446450        });
     451
     452        /**** @mention username help tooltip **************************************/
     453
     454        j('span.highlight span').click( function() {
     455                j('div.help').remove();
     456                j(this).parent().after( '<div id="message" class="info help"><p>' + bp_mention_explain + '</p></div>' );
     457                j('div.help').hide().slideDown(200);
     458        })
    447459
    448460        /**** Directory Search ****************************************************/
  • trunk/bp-themes/bp-default/functions.php

    r2373 r2476  
    210210        var bp_terms_show_all = '<?php _e( "Show all", "buddypress" ) ?>';
    211211        var bp_terms_comments = '<?php _e( "comments", "buddypress" ) ?>';
     212        var bp_mention_explain = '<?php printf( __( "%s is a unique identifier for %s that you can type into any message on this site. %s will be sent a notification and a link to your message any time you use it.", "buddypress" ), '@' . bp_get_displayed_user_username(), bp_dtheme_firstname(bp_get_displayed_user_fullname()), bp_dtheme_firstname(bp_get_displayed_user_fullname()) ); ?>';
    212213        </script>
    213214<?php
  • trunk/bp-themes/bp-default/members/single/member-header.php

    r2461 r2476  
    33<?php bp_displayed_user_avatar( 'type=full' ) ?>
    44
    5 <h2 class="fn"><a href="<?php bp_user_link() ?>"><?php bp_displayed_user_fullname() ?></a> <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ) ?></span></h2>
     5<h2 class="fn"><a href="<?php bp_user_link() ?>"><?php bp_displayed_user_fullname() ?></a> <span class="highlight">@<?php bp_displayed_user_username() ?> <span>?</span></h2>
     6<span class="activity"><?php bp_last_activity( bp_displayed_user_id() ) ?></span>
    67
    78<?php do_action( 'bp_before_member_header_meta' ) ?>
Note: See TracChangeset for help on using the changeset viewer.