Changeset 8335 for trunk/bp-members/bp-members-screens.php
- Timestamp:
- 05/01/2014 01:58:27 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-screens.php
r8119 r8335 4 4 * BuddyPress Member Screens 5 5 * 6 * Handlers for member screens that aren't handled elsewhere 6 * Handlers for member screens that aren't handled elsewhere. 7 7 * 8 8 * @package BuddyPress … … 14 14 15 15 /** 16 * Handles the display of the profile page by loading the correct template file. 17 * 18 * @package BuddyPress Members 19 * @uses bp_core_load_template() Looks for and loads a template file within the current member theme (folder/filename) 16 * Handle the display of the profile page by loading the correct template file. 20 17 */ 21 18 function bp_members_screen_display_profile() { … … 25 22 26 23 /** 27 * Handles the display of the members directory index 28 * 29 * @global object $bp 30 * 31 * @uses bp_is_user() 32 * @uses bp_is_current_component() 33 * @uses do_action() 34 * @uses bp_core_load_template() 35 * @uses apply_filters() 24 * Handle the display of the members directory index. 36 25 */ 37 26 function bp_members_screen_index() { … … 46 35 add_action( 'bp_screens', 'bp_members_screen_index' ); 47 36 48 37 /** 38 * Handle the loading of the signup screen. 39 */ 49 40 function bp_core_screen_signup() { 50 41 global $bp; … … 221 212 add_action( 'bp_screens', 'bp_core_screen_signup' ); 222 213 214 /** 215 * Handle the loading of the Activate screen. 216 */ 223 217 function bp_core_screen_activation() { 224 218 global $bp; … … 268 262 add_action( 'bp_screens', 'bp_core_screen_activation' ); 269 263 270 /** Theme Compat ability *******************************************************/264 /** Theme Compatibility *******************************************************/ 271 265 272 266 /** 273 267 * The main theme compat class for BuddyPress Members. 274 268 * 275 * This class sets up the necessary theme compat ability actions to safely output269 * This class sets up the necessary theme compatibility actions to safely output 276 270 * member template parts to the_title and the_content areas of a theme. 277 271 * 278 * @since BuddyPress (1.7 )272 * @since BuddyPress (1.7.0) 279 273 */ 280 274 class BP_Members_Theme_Compat { 281 275 282 276 /** 283 * Set up the members component theme compatibility284 * 285 * @since BuddyPress (1.7 )277 * Set up the members component theme compatibility. 278 * 279 * @since BuddyPress (1.7.0) 286 280 */ 287 281 public function __construct() { … … 290 284 291 285 /** 292 * Are we looking at something that needs members theme compat ability?293 * 294 * @since BuddyPress (1.7 )286 * Are we looking at something that needs members theme compatibility? 287 * 288 * @since BuddyPress (1.7.0) 295 289 */ 296 290 public function is_members() { … … 331 325 * Add template hierarchy to theme compat for the members directory page. 332 326 * 333 * This is to mirror how WordPress has {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 334 * 335 * @since BuddyPress (1.8) 336 * 337 * @param string $templates The templates from bp_get_theme_compat_templates() 327 * This is to mirror how WordPress has 328 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 329 * 330 * @since BuddyPress (1.8.0) 331 * 332 * @param string $templates The templates from bp_get_theme_compat_templates(). 338 333 * @return array $templates Array of custom templates to look for. 339 334 */ … … 353 348 354 349 /** 355 * Update the global $post with directory data 356 * 357 * @since BuddyPress (1.7 )350 * Update the global $post with directory data. 351 * 352 * @since BuddyPress (1.7.0) 358 353 */ 359 354 public function directory_dummy_post() { … … 372 367 373 368 /** 374 * Filter the_content with the members index template part 375 * 376 * @since BuddyPress (1.7 )369 * Filter the_content with the members index template part. 370 * 371 * @since BuddyPress (1.7.0) 377 372 */ 378 373 public function directory_content() { … … 385 380 * Add custom template hierarchy to theme compat for member pages. 386 381 * 387 * This is to mirror how WordPress has {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 388 * 389 * @since BuddyPress (1.8) 390 * 391 * @param string $templates The templates from bp_get_theme_compat_templates() 382 * This is to mirror how WordPress has 383 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 384 * 385 * @since BuddyPress (1.8.0) 386 * 387 * @param string $templates The templates from 388 * bp_get_theme_compat_templates(). 392 389 * @return array $templates Array of custom templates to look for. 393 390 */ … … 413 410 414 411 /** 415 * Update the global $post with the displayed user's data 416 * 417 * @since BuddyPress (1.7 )412 * Update the global $post with the displayed user's data. 413 * 414 * @since BuddyPress (1.7.0) 418 415 */ 419 416 public function single_dummy_post() { … … 432 429 433 430 /** 434 * Filter the_content with the members' single home template part 435 * 436 * @since BuddyPress (1.7 )431 * Filter the_content with the members' single home template part. 432 * 433 * @since BuddyPress (1.7.0) 437 434 */ 438 435 public function single_dummy_content() { … … 448 445 * registration template parts to the_title and the_content areas of a theme. 449 446 * 450 * @since BuddyPress (1.7 )447 * @since BuddyPress (1.7.0) 451 448 */ 452 449 class BP_Registration_Theme_Compat { … … 455 452 * Setup the groups component theme compatibility 456 453 * 457 * @since BuddyPress (1.7 )454 * @since BuddyPress (1.7.0) 458 455 */ 459 456 public function __construct() { … … 464 461 * Are we looking at either the registration or activation pages? 465 462 * 466 * @since BuddyPress (1.7 )463 * @since BuddyPress (1.7.0) 467 464 */ 468 465 public function is_registration() { … … 485 482 486 483 /** 487 * Add template hierarchy to theme compat for registration / activation pages. 488 * 489 * This is to mirror how WordPress has {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 490 * 491 * @since BuddyPress (1.8) 492 * 493 * @param string $templates The templates from bp_get_theme_compat_templates() 484 * Add template hierarchy to theme compat for registration/activation pages. 485 * 486 * This is to mirror how WordPress has 487 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 488 * 489 * @since BuddyPress (1.8.0) 490 * 491 * @param string $templates The templates from bp_get_theme_compat_templates(). 494 492 * @return array $templates Array of custom templates to look for. 495 493 */ … … 510 508 511 509 /** 512 * Update the global $post with dummy data 513 * 514 * @since BuddyPress (1.7 )510 * Update the global $post with dummy data. 511 * 512 * @since BuddyPress (1.7.0) 515 513 */ 516 514 public function dummy_post() { … … 550 548 * Filter the_content with either the register or activate templates. 551 549 * 552 * @since BuddyPress (1.7 )550 * @since BuddyPress (1.7.0) 553 551 */ 554 552 public function dummy_content() {
Note: See TracChangeset
for help on using the changeset viewer.