Changeset 3493
- Timestamp:
- 11/28/2010 05:36:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-templatetags.php
r3491 r3493 600 600 global $activities_template, $bp; 601 601 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 603 603 $content = str_replace( '<span class="time-since">%s</span>', '', $content ); 604 604 605 / * Insert the time since. */605 // Insert the time since. 606 606 $content .= ' ' . apply_filters( 'bp_activity_time_since', '<span class="time-since">' . sprintf( __( ' %s ago', 'buddypress' ), bp_core_time_since( $activities_template->activity->date_recorded ) ) . '</span>', &$activities_template->activity ); 607 607 608 /* Insert the permalink */ 609 $content .= apply_filters( 'bp_activity_permalink', ' · <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', ' · <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 612 613 if ( ( is_user_logged_in() && $activities_template->activity->user_id == $bp->loggedin_user->id ) || $bp->is_item_admin || $bp->loggedin_user->is_super_admin ) 613 614 $content .= apply_filters( 'bp_activity_delete_link', ' · ' . bp_get_activity_delete_link(), $activities_template->activity );
Note: See TracChangeset
for help on using the changeset viewer.