Skip to:
Content

BuddyPress.org

Changeset 3493


Ignore:
Timestamp:
11/28/2010 05:36:59 PM (14 years ago)
Author:
boonebgorges
Message:

Removes redundant 'View' link from activity permalink page. Fixes #2037

File:
1 edited

Legend:

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

    r3491 r3493  
    600600        global $activities_template, $bp;
    601601
    602         /* Strip any legacy time since placeholders -- TODO: Remove this in 1.3 */
     602        // Strip any legacy time since placeholders -- TODO: Remove this in 1.3
    603603        $content = str_replace( '<span class="time-since">%s</span>', '', $content );
    604604
    605         /* Insert the time since. */
     605        // Insert the time since.
    606606        $content .= ' ' . apply_filters( 'bp_activity_time_since', '<span class="time-since">' . sprintf( __( '&nbsp; %s ago', 'buddypress' ), bp_core_time_since( $activities_template->activity->date_recorded ) ) . '</span>', &$activities_template->activity );
    607607
    608         /* Insert the permalink */
    609         $content .= apply_filters( 'bp_activity_permalink', ' &middot; <a href="' . bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity ) . '" class="view" title="' . __( 'View Thread / Permalink', 'buddypress' ) . '">' . __( 'View', 'buddypress' ) . '</a>', &$activities_template->activity );
    610 
    611         /* Add the delete link if the user has permission on this item */
     608        // Insert the permalink
     609        if ( !bp_is_activity_permalink() )
     610            $content .= apply_filters( 'bp_activity_permalink', ' &middot; <a href="' . bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity ) . '" class="view" title="' . __( 'View Thread / Permalink', 'buddypress' ) . '">' . __( 'View', 'buddypress' ) . '</a>', &$activities_template->activity );
     611
     612        // Add the delete link if the user has permission on this item
    612613        if ( ( is_user_logged_in() && $activities_template->activity->user_id == $bp->loggedin_user->id ) || $bp->is_item_admin || $bp->loggedin_user->is_super_admin )
    613614             $content .= apply_filters( 'bp_activity_delete_link', ' &middot; ' . bp_get_activity_delete_link(), $activities_template->activity );
Note: See TracChangeset for help on using the changeset viewer.