Changeset 2919 for trunk/bp-activity/bp-activity-templatetags.php
- Timestamp:
- 04/13/2010 04:01:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-templatetags.php
r2910 r2919 494 494 global $activities_template, $bp; 495 495 496 /* Strip any legacy time since placeholders -- TODO: Remove this in 1.3 */ 497 $content = str_replace( '<span class="time-since">%s</span>', '', $content ); 496 $meta = '<span class="activity-actions">'; 498 497 499 498 /* Insert the time since. */ 500 $ 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 );499 $meta .= 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 ); 501 500 502 501 /* Insert the permalink */ 503 $ 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 );502 $meta .= 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 ); 504 503 505 504 /* Add the delete link if the user has permission on this item */ 506 505 if ( ( is_user_logged_in() && $activities_template->activity->user_id == $bp->loggedin_user->id ) || $bp->is_item_admin || $bp->loggedin_user->is_site_admin ) 507 $content .= apply_filters( 'bp_activity_delete_link', ' · ' . bp_get_activity_delete_link(), &$activities_template->activity ); 508 509 return apply_filters( 'bp_insert_activity_meta', $content ); 506 $meta .= apply_filters( 'bp_activity_delete_link', ' · ' . bp_get_activity_delete_link(), &$activities_template->activity ); 507 508 $meta .= '</span>'; 509 510 return apply_filters( 'bp_insert_activity_meta', $content . ' ' . $meta, $content, $meta ); 510 511 } 511 512
Note: See TracChangeset
for help on using the changeset viewer.