Skip to:
Content

BuddyPress.org

Changeset 4744


Ignore:
Timestamp:
07/21/2011 07:58:13 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Add activity-time-since class to view links, and give them muted styling so they do not take emphasis away from activity action items.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-template.php

    r4689 r4744  
    712712        // Insert the permalink
    713713        if ( !bp_is_single_activity() )
    714             $content = apply_filters_ref_array( 'bp_activity_permalink', array( sprintf( '%1$s <a href="%2$s" class="view" title="%3$s">%4$s</a>', $content, bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity ), esc_attr__( 'View Discussion', 'buddypress' ), $time_since ), &$activities_template->activity ) );
     714            $content = apply_filters_ref_array( 'bp_activity_permalink', array( sprintf( '%1$s <a href="%2$s" class="view activity-time-since" title="%3$s">%4$s</a>', $content, bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity ), esc_attr__( 'View Discussion', 'buddypress' ), $time_since ), &$activities_template->activity ) );
    715715        else
    716716            $content .= str_pad( $time_since, strlen( $time_since ) + 2, ' ', STR_PAD_BOTH );
  • trunk/bp-themes/bp-default/_inc/css/default.css

    r4740 r4744  
    12871287    padding: 4px 8px;
    12881288}
     1289a.activity-time-since {
     1290    color: #888;
     1291    text-decoration: none;
     1292}
     1293a.activity-time-since:hover {
     1294    text-decoration: underline;
     1295}
    12891296a.bp-primary-action,
    12901297#reply-title small a {
  • trunk/bp-themes/bp-default/activity/comment.php

    r4668 r4744  
    2525        <?php
    2626        /* translators: 1: user profile link, 2: user name, 3: activity permalink, 3: activity timestamp */
    27         printf( __( '<a href="%1$s">%2$s</a> replied <a href="%3$s">%4$s</a>', 'buddypress' ), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_thread_permalink(), bp_get_activity_comment_date_recorded() );
     27        printf( __( '<a href="%1$s">%2$s</a> replied <a href="%3$s" class="activity-time-since"><span class="time-since">%4$s</span></a>', 'buddypress' ), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_thread_permalink(), bp_get_activity_comment_date_recorded() );
    2828        ?>
    2929    </div>
Note: See TracChangeset for help on using the changeset viewer.