Changeset 1908
- Timestamp:
- 09/21/2009 07:43:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-templatetags.php
r1905 r1908 112 112 } 113 113 114 function bp_activity_get_list( $user_id, $title, $no_activity, $limit = false ) {115 global $bp_activity_user_id, $bp_activity_limit, $bp_activity_title, $bp_activity_no_activity;116 117 $bp_activity_user_id = $user_id;118 $bp_activity_limit = $limit;119 $bp_activity_title = $title;120 $bp_activity_no_activity = $no_activity;121 122 locate_template( array( '/activity/activity-list.php' ), true );123 }124 125 114 function bp_has_activities( $args = '' ) { 126 global $bp, $activities_template , $bp_activity_user_id, $bp_activity_limit;115 global $bp, $activities_template; 127 116 128 117 /* Note: any params used for filtering can be a single value, or multiple values comma seperated. */ … … 141 130 $r = wp_parse_args( $args, $defaults ); 142 131 extract( $r, EXTR_SKIP ); 143 144 // The following lines are for backwards template compatibility.145 if ( 'my-friends' == $bp->current_action && $bp->activity->slug == $bp->current_component )146 $type = 'friends';147 148 if ( $bp->displayed_user->id && $bp->activity->slug == $bp->current_component && ( !$bp->current_action || 'just-me' == $bp->current_action ) )149 $type = 'personal';150 151 if ( $bp->displayed_user->id && $bp->profile->slug == $bp->current_component )152 $type = 'personal';153 154 if ( $bp_activity_limit )155 $max = $bp_activity_limit;156 157 // END backwards compatibility ---158 132 159 133 if ( ( 'personal' == $type || 'friends' == $type ) && !$user_id )
Note: See TracChangeset
for help on using the changeset viewer.