Changeset 7402 for trunk/bp-activity/bp-activity-screens.php
- Timestamp:
- 10/08/2013 08:58:22 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-screens.php
r7386 r7402 2 2 3 3 /** 4 * BuddyPress Activity Screens 4 * BuddyPress Activity Screens. 5 * 6 * The functions in this file detect, with each page load, whether an Activity 7 * component page is being requested. If so, it parses any necessary data from 8 * the URL, and tells BuddyPress to load the appropriate template. 5 9 * 6 10 * @package BuddyPress … … 12 16 13 17 /** 14 * Activity screen index18 * Load the Activity directory. 15 19 * 16 20 * @since BuddyPress (1.5) … … 20 24 * @uses bp_current_action() 21 25 * @uses bp_update_is_directory() 22 * @uses do_action() To call the 'bp_activity_screen_index' hook 23 * @uses bp_core_load_template() 24 * @uses apply_filters() To call the 'bp_activity_screen_index' hook 26 * @uses do_action() To call the 'bp_activity_screen_index' hook. 27 * @uses bp_core_load_template() 28 * @uses apply_filters() To call the 'bp_activity_screen_index' hook. 25 29 */ 26 30 function bp_activity_screen_index() { … … 36 40 37 41 /** 38 * Activity screen 'my activity' index42 * Load the 'My Activity' page. 39 43 * 40 44 * @since BuddyPress (1.0) 41 45 * 42 * @uses do_action() To call the 'bp_activity_screen_my_activity' hook 43 * @uses bp_core_load_template() 44 * @uses apply_filters() To call the 'bp_activity_template_my_activity' hook 46 * @uses do_action() To call the 'bp_activity_screen_my_activity' hook. 47 * @uses bp_core_load_template() 48 * @uses apply_filters() To call the 'bp_activity_template_my_activity' hook. 45 49 */ 46 50 function bp_activity_screen_my_activity() { … … 50 54 51 55 /** 52 * Activity screen 'friends' index56 * Load the 'My Friends' activity page. 53 57 * 54 58 * @since BuddyPress (1.0) … … 57 61 * @uses bp_update_is_item_admin() 58 62 * @uses bp_current_user_can() 59 * @uses do_action() To call the 'bp_activity_screen_friends' hook 60 * @uses bp_core_load_template() 61 * @uses apply_filters() To call the 'bp_activity_template_friends_activity' hook 63 * @uses do_action() To call the 'bp_activity_screen_friends' hook. 64 * @uses bp_core_load_template() 65 * @uses apply_filters() To call the 'bp_activity_template_friends_activity' hook. 62 66 */ 63 67 function bp_activity_screen_friends() { … … 71 75 72 76 /** 73 * Activity screen 'groups' index77 * Load the 'My Groups' activity page. 74 78 * 75 79 * @since BuddyPress (1.2) … … 92 96 93 97 /** 94 * Activity screen 'favorites' index98 * Load the 'Favorites' activity page. 95 99 * 96 100 * @since BuddyPress (1.2) … … 109 113 110 114 /** 111 * Activity screen 'mentions' index115 * Load the 'Mentions' activity page. 112 116 * 113 117 * @since BuddyPress (1.2) … … 126 130 127 131 /** 128 * Removes activity notifications from the notification menu when a user clicks on them and 129 * is taken to a specific screen. 132 * Remove activity notifications when a user clicks on them. 130 133 * 131 134 * @since BuddyPress (1.5) … … 144 147 145 148 /** 146 * Reset the logged-in user's new mentions data when he visits his mentions screen 149 * Reset the logged-in user's new mentions data when he visits his mentions screen. 147 150 * 148 151 * @since BuddyPress (1.5) … … 159 162 160 163 /** 161 * Reset the logged-in user's new mentions data when he visits his mentions screen164 * Load the page for a single activity item. 162 165 * 163 166 * @since BuddyPress (1.2) … … 256 259 257 260 /** 258 * Add activity notifications settings to the notifications settings page 261 * Add activity notifications settings to the notifications settings page. 259 262 * 260 263 * @since BuddyPress (1.2) … … 262 265 * @uses bp_get_user_meta() 263 266 * @uses bp_core_get_username() 264 * @uses do_action() To call the 'bp_activity_screen_notification_settings' hook 267 * @uses do_action() To call the 'bp_activity_screen_notification_settings' hook. 265 268 */ 266 269 function bp_activity_screen_notification_settings() { … … 316 319 317 320 /** 318 * The main theme compat class for BuddyPress Activity 321 * The main theme compat class for BuddyPress Activity. 319 322 * 320 323 * This class sets up the necessary theme compatability actions to safely output … … 326 329 327 330 /** 328 * Set up the activity component theme compatibility331 * Set up the activity component theme compatibility. 329 332 * 330 333 * @since BuddyPress (1.7) … … 335 338 336 339 /** 337 * Are we looking at something that needs activity theme compatability?340 * Set up the theme compatibility hooks, if we're looking at an activity page. 338 341 * 339 342 * @since BuddyPress (1.7) … … 372 375 * @since BuddyPress (1.8) 373 376 * 374 * @param string $templates The templates from bp_get_theme_compat_templates() 377 * @param string $templates The templates from bp_get_theme_compat_templates(). 375 378 * @return array $templates Array of custom templates to look for. 376 379 */ … … 389 392 390 393 /** 391 * Update the global $post with directory data 394 * Update the global $post with directory data. 392 395 * 393 396 * @since BuddyPress (1.7) … … 408 411 409 412 /** 410 * Filter the_content with the groups index template part 413 * Filter the_content with the groups index template part. 411 414 * 412 415 * @since BuddyPress (1.7) … … 425 428 * @since BuddyPress (1.8) 426 429 * 427 * @param string $templates The templates from bp_get_theme_compat_templates() 430 * @param string $templates The templates from bp_get_theme_compat_templates(). 428 431 * @return array $templates Array of custom templates to look for. 429 432 */ … … 442 445 443 446 /** 444 * Update the global $post with the displayed user's data 447 * Update the global $post with the displayed user's data. 445 448 * 446 449 * @since BuddyPress (1.7) … … 461 464 462 465 /** 463 * Filter the_content with the members' activity permalink template part 466 * Filter the_content with the members' activity permalink template part. 464 467 * 465 468 * @since BuddyPress (1.7)
Note: See TracChangeset
for help on using the changeset viewer.