Changeset 10077 for trunk/src/bp-activity/bp-activity-screens.php
- Timestamp:
- 08/31/2015 06:51:35 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-screens.php
r9834 r10077 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Activity Screens. … … 18 17 * Load the Activity directory. 19 18 * 20 * @since BuddyPress (1.5.0)19 * @since 1.5.0 21 20 * 22 21 * @uses bp_displayed_user_id() … … 35 34 * Fires right before the loading of the Activity directory screen template file. 36 35 * 37 * @since BuddyPress (1.5.0)36 * @since 1.5.0 38 37 */ 39 38 do_action( 'bp_activity_screen_index' ); … … 42 41 * Filters the template to load for the Activity directory screen. 43 42 * 44 * @since BuddyPress (1.5.0)43 * @since 1.5.0 45 44 * 46 45 * @param string $template Path to the activity template to load. … … 54 53 * Load the 'My Activity' page. 55 54 * 56 * @since BuddyPress (1.0.0)55 * @since 1.0.0 57 56 * 58 57 * @uses do_action() To call the 'bp_activity_screen_my_activity' hook. … … 65 64 * Fires right before the loading of the "My Activity" screen template file. 66 65 * 67 * @since BuddyPress (1.0.0)66 * @since 1.0.0 68 67 */ 69 68 do_action( 'bp_activity_screen_my_activity' ); … … 72 71 * Filters the template to load for the "My Activity" screen. 73 72 * 74 * @since BuddyPress (1.0.0)73 * @since 1.0.0 75 74 * 76 75 * @param string $template Path to the activity template to load. … … 82 81 * Load the 'My Friends' activity page. 83 82 * 84 * @since BuddyPress (1.0.0)83 * @since 1.0.0 85 84 * 86 85 * @uses bp_is_active() … … 100 99 * Fires right before the loading of the "My Friends" screen template file. 101 100 * 102 * @since BuddyPress (1.2.0)101 * @since 1.2.0 103 102 */ 104 103 do_action( 'bp_activity_screen_friends' ); … … 107 106 * Filters the template to load for the "My Friends" screen. 108 107 * 109 * @since BuddyPress (1.0.0)108 * @since 1.0.0 110 109 * 111 110 * @param string $template Path to the activity template to load. … … 117 116 * Load the 'My Groups' activity page. 118 117 * 119 * @since BuddyPress (1.2.0)118 * @since 1.2.0 120 119 * 121 120 * @uses bp_is_active() … … 135 134 * Fires right before the loading of the "My Groups" screen template file. 136 135 * 137 * @since BuddyPress (1.2.0)136 * @since 1.2.0 138 137 */ 139 138 do_action( 'bp_activity_screen_groups' ); … … 142 141 * Filters the template to load for the "My Groups" screen. 143 142 * 144 * @since BuddyPress (1.2.0)143 * @since 1.2.0 145 144 * 146 145 * @param string $template Path to the activity template to load. … … 152 151 * Load the 'Favorites' activity page. 153 152 * 154 * @since BuddyPress (1.2.0)153 * @since 1.2.0 155 154 * 156 155 * @uses bp_update_is_item_admin() … … 166 165 * Fires right before the loading of the "Favorites" screen template file. 167 166 * 168 * @since BuddyPress (1.2.0)167 * @since 1.2.0 169 168 */ 170 169 do_action( 'bp_activity_screen_favorites' ); … … 173 172 * Filters the template to load for the "Favorites" screen. 174 173 * 175 * @since BuddyPress (1.2.0)174 * @since 1.2.0 176 175 * 177 176 * @param string $template Path to the activity template to load. … … 183 182 * Load the 'Mentions' activity page. 184 183 * 185 * @since BuddyPress (1.2.0)184 * @since 1.2.0 186 185 * 187 186 * @uses bp_update_is_item_admin() … … 197 196 * Fires right before the loading of the "Mentions" screen template file. 198 197 * 199 * @since BuddyPress (1.2.0)198 * @since 1.2.0 200 199 */ 201 200 do_action( 'bp_activity_screen_mentions' ); … … 204 203 * Filters the template to load for the "Mentions" screen. 205 204 * 206 * @since BuddyPress (1.2.0)205 * @since 1.2.0 207 206 * 208 207 * @param string $template Path to the activity template to load. … … 214 213 * Reset the logged-in user's new mentions data when he visits his mentions screen. 215 214 * 216 * @since BuddyPress (1.5.0)215 * @since 1.5.0 217 216 * 218 217 * @uses bp_is_my_profile() … … 229 228 * Load the page for a single activity item. 230 229 * 231 * @since BuddyPress (1.2.0)230 * @since 1.2.0 232 231 * 233 232 * @uses bp_is_activity_component() … … 303 302 * Filters the access permission for a single activity view. 304 303 * 305 * @since BuddyPress (1.2.0)304 * @since 1.2.0 306 305 * 307 306 * @param array $access Array holding the current $has_access value and current activity item instance. … … 312 311 * Fires before the loading of a single activity template file. 313 312 * 314 * @since BuddyPress (1.2.0)313 * @since 1.2.0 315 314 * 316 315 * @param BP_Activity_Activity $activity Object representing the current activity item being displayed. … … 342 341 * Filters the template to load for a single activity screen. 343 342 * 344 * @since BuddyPress (1.0.0)343 * @since 1.0.0 345 344 * 346 345 * @param string $template Path to the activity template to load. … … 353 352 * Add activity notifications settings to the notifications settings page. 354 353 * 355 * @since BuddyPress (1.2.0)354 * @since 1.2.0 356 355 * 357 356 * @uses bp_get_user_meta() … … 405 404 * Fires inside the closing </tbody> tag for activity screen notification settings. 406 405 * 407 * @since BuddyPress (1.2.0)406 * @since 1.2.0 408 407 */ 409 408 do_action( 'bp_activity_screen_notification_settings' ) ?> … … 423 422 * activity template parts to the_title and the_content areas of a theme. 424 423 * 425 * @since BuddyPress (1.7.0)424 * @since 1.7.0 426 425 */ 427 426 class BP_Activity_Theme_Compat { … … 430 429 * Set up the activity component theme compatibility. 431 430 * 432 * @since BuddyPress (1.7.0)431 * @since 1.7.0 433 432 */ 434 433 public function __construct() { … … 439 438 * Set up the theme compatibility hooks, if we're looking at an activity page. 440 439 * 441 * @since BuddyPress (1.7.0)440 * @since 1.7.0 442 441 */ 443 442 public function is_activity() { … … 473 472 * This is to mirror how WordPress has {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 474 473 * 475 * @since BuddyPress (1.8.0)474 * @since 1.8.0 476 475 * 477 476 * @param string $templates The templates from bp_get_theme_compat_templates(). … … 484 483 * Filters the template hierarchy for the activity directory page. 485 484 * 486 * @since BuddyPress (1.8.0)485 * @since 1.8.0 487 486 * 488 487 * @param array $index-directory Array holding template names to be merged into template list. … … 502 501 * Update the global $post with directory data. 503 502 * 504 * @since BuddyPress (1.7.0)503 * @since 1.7.0 505 504 */ 506 505 public function directory_dummy_post() { … … 521 520 * Filter the_content with the groups index template part. 522 521 * 523 * @since BuddyPress (1.7.0)522 * @since 1.7.0 524 523 */ 525 524 public function directory_content() { … … 534 533 * This is to mirror how WordPress has {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 535 534 * 536 * @since BuddyPress (1.8.0)535 * @since 1.8.0 537 536 * 538 537 * @param string $templates The templates from bp_get_theme_compat_templates(). … … 545 544 * Filters the template hierarchy for the activity permalink pages. 546 545 * 547 * @since BuddyPress (1.8.0)546 * @since 1.8.0 548 547 * 549 548 * @param array $index Array holding template names to be merged into template list. … … 563 562 * Update the global $post with the displayed user's data. 564 563 * 565 * @since BuddyPress (1.7.0)564 * @since 1.7.0 566 565 */ 567 566 public function single_dummy_post() { … … 582 581 * Filter the_content with the members' activity permalink template part. 583 582 * 584 * @since BuddyPress (1.7.0)583 * @since 1.7.0 585 584 */ 586 585 public function single_dummy_content() {
Note: See TracChangeset
for help on using the changeset viewer.