Changeset 10148 for trunk/src/bp-groups/bp-groups-screens.php
- Timestamp:
- 09/27/2015 05:25:02 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-screens.php
r10081 r10148 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Groups Screen Functions … … 12 11 */ 13 12 14 // Exit if accessed directly 13 // Exit if accessed directly. 15 14 defined( 'ABSPATH' ) || exit; 16 15 … … 25 24 * Fires before the loading of the Groups directory index. 26 25 * 27 * @since BuddyPress (1.1.0)26 * @since 1.1.0 28 27 */ 29 28 do_action( 'groups_directory_groups_setup' ); … … 32 31 * Filters the template to load for the Groups directory index. 33 32 * 34 * @since BuddyPress (1.0.0)33 * @since 1.0.0 35 34 * 36 35 * @param string $value Path to the groups directory index template to load. … … 49 48 * Fires before the loading of the My Groups page. 50 49 * 51 * @since BuddyPress (1.1.0)50 * @since 1.1.0 52 51 */ 53 52 do_action( 'groups_screen_my_groups' ); … … 56 55 * Filters the template to load for the My Groups page. 57 56 * 58 * @since BuddyPress (1.0.0)57 * @since 1.0.0 59 58 * 60 59 * @param string $value Path to the My Groups page template to load. … … 119 118 * Fires before the loading of a users Groups > Invites template. 120 119 * 121 * @since BuddyPress (1.0.0)120 * @since 1.0.0 122 121 * 123 122 * @param int $group_id ID of the group being displayed … … 128 127 * Filters the template to load for a users Groups > Invites page. 129 128 * 130 * @since BuddyPress (1.0.0)129 * @since 1.0.0 131 130 * 132 131 * @param string $value Path to a users Groups > Invites page template. … … 147 146 * Fires before the loading of a single group's page. 148 147 * 149 * @since BuddyPress (1.0.0)148 * @since 1.0.0 150 149 */ 151 150 do_action( 'groups_screen_group_home' ); … … 154 153 * Filters the template to load for a single group's page. 155 154 * 156 * @since BuddyPress (1.0.0)155 * @since 1.0.0 157 156 * 158 157 * @param string $value Path to a single group's template to load. … … 243 242 * Fires after a group forum topic has been stickied. 244 243 * 245 * @since BuddyPress (1.1.0)244 * @since 1.1.0 246 245 * 247 246 * @param int $topic_id ID of the topic being stickied. … … 265 264 * Fires after a group forum topic has been un-stickied. 266 265 * 267 * @since BuddyPress (1.1.0)266 * @since 1.1.0 268 267 * 269 268 * @param int $topic_id ID of the topic being un-stickied. … … 287 286 * Fires after a group forum topic has been closed. 288 287 * 289 * @since BuddyPress (1.1.0)288 * @since 1.1.0 290 289 * 291 290 * @param int $topic_id ID of the topic being closed. … … 309 308 * Fires after a group forum topic has been opened. 310 309 * 311 * @since BuddyPress (1.1.0)310 * @since 1.1.0 312 311 * 313 312 * @param int $topic_id ID of the topic being opened. … … 333 332 * Fires before a group forum topic is deleted. 334 333 * 335 * @since BuddyPress (1.5.0)334 * @since 1.5.0 336 335 * 337 336 * @param int $topic_id ID of the topic being deleted. … … 348 347 * Fires after a group forum topic has been deleted. 349 348 * 350 * @since BuddyPress (1.5.0)349 * @since 1.5.0 351 350 * 352 351 * @param int $topic_id ID of the topic being deleted. … … 381 380 * Fires after a group forum topic has been edited. 382 381 * 383 * @since BuddyPress (1.1.0)382 * @since 1.1.0 384 383 * 385 384 * @param int $topic_id ID of the topic being edited. … … 392 391 * Filters the template to load for a topic edit page. 393 392 * 394 * @since BuddyPress (1.1.0)393 * @since 1.1.0 395 394 * 396 395 * @param string $value Path to a topic edit template. … … 414 413 * Fires before the deletion of a group forum post. 415 414 * 416 * @since BuddyPress (1.5.0)415 * @since 1.5.0 417 416 * 418 417 * @param int $post_id ID of the forum post being deleted. … … 429 428 * Fires after the deletion of a group forum post. 430 429 * 431 * @since BuddyPress (1.1.0)430 * @since 1.1.0 432 431 * 433 432 * @param int $post_id ID of the forum post being deleted. … … 466 465 * Fires after the editing of a group forum post. 467 466 * 468 * @since BuddyPress (1.1.0)467 * @since 1.1.0 469 468 * 470 469 * @param int $post_id ID of the forum post being edited. … … 486 485 * Filters the template to load for a topic page. 487 486 * 488 * @since BuddyPress (1.1.0)487 * @since 1.1.0 489 488 * 490 489 * @param string $value Path to a topic template. … … 542 541 * Fires at the end of the group forum screen loading process. 543 542 * 544 * @since BuddyPress (1.0.0)543 * @since 1.0.0 545 544 * 546 545 * @param int $topic_id ID of the topic being displayed. … … 552 551 * Filters the template to load for a group forum page. 553 552 * 554 * @since BuddyPress (1.0.0)553 * @since 1.0.0 555 554 * 556 555 * @param string $value Path to a group forum template. … … 576 575 * Fires before the loading of a group's Members page. 577 576 * 578 * @since BuddyPress (1.0.0)577 * @since 1.0.0 579 578 * 580 579 * @param int $id ID of the group whose members are being displayed. … … 585 584 * Filters the template to load for a group's Members page. 586 585 * 587 * @since BuddyPress (1.0.0)586 * @since 1.0.0 588 587 * 589 588 * @param string $value Path to a group's Members template. … … 620 619 * Fires after the sending of a group invite inside the group's Send Invites page. 621 620 * 622 * @since BuddyPress (1.0.0)621 * @since 1.0.0 623 622 * 624 623 * @param int $id ID of the group whose members are being displayed. … … 632 631 * Filters the template to load for a group's Send Invites page. 633 632 * 634 * @since BuddyPress (1.0.0)633 * @since 1.0.0 635 634 * 636 635 * @param string $value Path to a group's Send Invites template. … … 649 648 * Remove Invite removes the invitation via AJAX. 650 649 * 651 * @since BuddyPress (2.0.0)650 * @since 2.0.0 652 651 */ 653 652 function groups_remove_group_invite() { … … 726 725 * Fires before the loading of a group's Request Memebership page. 727 726 * 728 * @since BuddyPress (1.0.0)727 * @since 1.0.0 729 728 * 730 729 * @param int $id ID of the group currently being displayed. … … 735 734 * Filters the template to load for a group's Request Membership page. 736 735 * 737 * @since BuddyPress (1.0.0)736 * @since 1.0.0 738 737 * 739 738 * @param string $value Path to a group's Request Membership template. … … 799 798 * Fires before the redirect if a group details has been edited and saved. 800 799 * 801 * @since BuddyPress (1.0.0)800 * @since 1.0.0 802 801 * 803 802 * @param int $id ID of the group that was edited. … … 811 810 * Fires before the loading of the group admin/edit-details page template. 812 811 * 813 * @since BuddyPress (1.0.0)812 * @since 1.0.0 814 813 * 815 814 * @param int $id ID of the group that is being displayed. … … 820 819 * Filters the template to load for a group's admin/edit-details page. 821 820 * 822 * @since BuddyPress (1.0.0)821 * @since 1.0.0 823 822 * 824 823 * @param string $value Path to a group's admin/edit-details template. … … 869 868 * Fires before the redirect if a group settings has been edited and saved. 870 869 * 871 * @since BuddyPress (1.0.0)870 * @since 1.0.0 872 871 * 873 872 * @param int $id ID of the group that was edited. … … 881 880 * Fires before the loading of the group admin/group-settings page template. 882 881 * 883 * @since BuddyPress (1.0.0)882 * @since 1.0.0 884 883 * 885 884 * @param int $id ID of the group that is being displayed. … … 890 889 * Filters the template to load for a group's admin/group-settings page. 891 890 * 892 * @since BuddyPress (1.0.0)891 * @since 1.0.0 893 892 * 894 893 * @param string $value Path to a group's admin/group-settings template. … … 973 972 * Fires before the loading of the group Change Avatar page template. 974 973 * 975 * @since BuddyPress (1.0.0)974 * @since 1.0.0 976 975 * 977 976 * @param int $id ID of the group that is being displayed. … … 982 981 * Filters the template to load for a group's Change Avatar page. 983 982 * 984 * @since BuddyPress (1.0.0)983 * @since 1.0.0 985 984 * 986 985 * @param string $value Path to a group's Change Avatar template. … … 1021 1020 * Fires before the redirect after a group member has been promoted. 1022 1021 * 1023 * @since BuddyPress (1.0.0)1022 * @since 1.0.0 1024 1023 * 1025 1024 * @param int $user_id ID of the user being promoted. … … 1054 1053 * Fires before the redirect after a group member has been demoted. 1055 1054 * 1056 * @since BuddyPress (1.0.0)1055 * @since 1.0.0 1057 1056 * 1058 1057 * @param int $user_id ID of the user being demoted. … … 1080 1079 * Fires before the redirect after a group member has been banned. 1081 1080 * 1082 * @since BuddyPress (1.0.0)1081 * @since 1.0.0 1083 1082 * 1084 1083 * @param int $user_id ID of the user being banned. … … 1106 1105 * Fires before the redirect after a group member has been unbanned. 1107 1106 * 1108 * @since BuddyPress (1.0.0)1107 * @since 1.0.0 1109 1108 * 1110 1109 * @param int $user_id ID of the user being unbanned. … … 1132 1131 * Fires before the redirect after a group member has been removed. 1133 1132 * 1134 * @since BuddyPress (1.2.6)1133 * @since 1.2.6 1135 1134 * 1136 1135 * @param int $user_id ID of the user being removed. … … 1146 1145 * Fires before the loading of a group's manage members template. 1147 1146 * 1148 * @since BuddyPress (1.0.0)1147 * @since 1.0.0 1149 1148 * 1150 1149 * @param int $id ID of the group whose manage members page is being displayed. … … 1155 1154 * Filters the template to load for a group's manage members page. 1156 1155 * 1157 * @since BuddyPress (1.0.0)1156 * @since 1.0.0 1158 1157 * 1159 1158 * @param string $value Path to a group's manage members template. … … 1208 1207 * Fires before the redirect if a group membership request has been handled. 1209 1208 * 1210 * @since BuddyPress (1.0.0)1209 * @since 1.0.0 1211 1210 * 1212 1211 * @param int $id ID of the group that was edited. … … 1221 1220 * Fires before the loading of the group membership request page template. 1222 1221 * 1223 * @since BuddyPress (1.0.0)1222 * @since 1.0.0 1224 1223 * 1225 1224 * @param int $id ID of the group that is being displayed. … … 1230 1229 * Filters the template to load for a group's membership request page. 1231 1230 * 1232 * @since BuddyPress (1.0.0)1231 * @since 1.0.0 1233 1232 * 1234 1233 * @param string $value Path to a group's membership request template. … … 1261 1260 * Fires before the deletion of a group from the Delete Group page. 1262 1261 * 1263 * @since BuddyPress (1.5.0)1262 * @since 1.5.0 1264 1263 * 1265 1264 * @param int $id ID of the group being deleted. … … 1276 1275 * Fires after the deletion of a group from the Delete Group page. 1277 1276 * 1278 * @since BuddyPress (1.0.0)1277 * @since 1.0.0 1279 1278 * 1280 1279 * @param int $id ID of the group being deleted. … … 1291 1290 * Fires before the loading of the Delete Group page template. 1292 1291 * 1293 * @since BuddyPress (1.0.0)1292 * @since 1.0.0 1294 1293 * 1295 1294 * @param int $id ID of the group that is being displayed. … … 1300 1299 * Filters the template to load for the Delete Group page. 1301 1300 * 1302 * @since BuddyPress (1.0.0)1301 * @since 1.0.0 1303 1302 * 1304 1303 * @param string $value Path to the Delete Group template. … … 1366 1365 * Fires at the end of the available group settings fields on Notification Settings page. 1367 1366 * 1368 * @since BuddyPress (1.0.0)1367 * @since 1.0.0 1369 1368 */ 1370 1369 do_action( 'groups_screen_notification_settings' ); ?> … … 1385 1384 * group template parts to the_title and the_content areas of a theme. 1386 1385 * 1387 * @since BuddyPress (1.7.0)1386 * @since 1.7.0 1388 1387 */ 1389 1388 class BP_Groups_Theme_Compat { … … 1392 1391 * Set up theme compatibility for the Groups component. 1393 1392 * 1394 * @since BuddyPress (1.7.0)1393 * @since 1.7.0 1395 1394 */ 1396 1395 public function __construct() { … … 1401 1400 * Are we looking at something that needs group theme compatibility? 1402 1401 * 1403 * @since BuddyPress (1.7.0)1402 * @since 1.7.0 1404 1403 */ 1405 1404 public function is_group() { … … 1416 1415 * Fires at the start of the group theme compatibility setup. 1417 1416 * 1418 * @since BuddyPress (1.1.0)1417 * @since 1.1.0 1419 1418 */ 1420 1419 do_action( 'groups_directory_groups_setup' ); … … 1447 1446 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 1448 1447 * 1449 * @since BuddyPress (1.8.0)1448 * @since 1.8.0 1450 1449 * 1451 1450 * @param string $templates The templates from bp_get_theme_compat_templates(). … … 1457 1456 * Filters the Groups directory page template hierarchy based on priority. 1458 1457 * 1459 * @since BuddyPress (1.8.0)1458 * @since 1.8.0 1460 1459 * 1461 1460 * @param array $value Array of default template files to use. … … 1475 1474 * Update the global $post with directory data. 1476 1475 * 1477 * @since BuddyPress (1.7.0)1476 * @since 1.7.0 1478 1477 */ 1479 1478 public function directory_dummy_post() { … … 1494 1493 * Filter the_content with the groups index template part. 1495 1494 * 1496 * @since BuddyPress (1.7.0)1495 * @since 1.7.0 1497 1496 */ 1498 1497 public function directory_content() { … … 1508 1507 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 1509 1508 * 1510 * @since BuddyPress (1.8.0)1509 * @since 1.8.0 1511 1510 * 1512 1511 * @param string $templates The templates from bp_get_theme_compat_templates(). … … 1519 1518 * Filters the Groups create page template hierarchy based on priority. 1520 1519 * 1521 * @since BuddyPress (1.8.0)1520 * @since 1.8.0 1522 1521 * 1523 1522 * @param array $value Array of default template files to use. … … 1537 1536 * Update the global $post with create screen data. 1538 1537 * 1539 * @since BuddyPress (1.7.0)1538 * @since 1.7.0 1540 1539 */ 1541 1540 public function create_dummy_post() { … … 1559 1558 * Filter the_content with the create screen template part. 1560 1559 * 1561 * @since BuddyPress (1.7.0)1560 * @since 1.7.0 1562 1561 */ 1563 1562 public function create_content() { … … 1573 1572 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 1574 1573 * 1575 * @since BuddyPress (1.8.0)1574 * @since 1.8.0 1576 1575 * 1577 1576 * @param string $templates The templates from bp_get_theme_compat_templates(). … … 1585 1584 * Filters the Groups single pages template hierarchy based on priority. 1586 1585 * 1587 * @since BuddyPress (1.8.0)1586 * @since 1.8.0 1588 1587 * 1589 1588 * @param array $value Array of default template files to use. … … 1607 1606 * Update the global $post with single group data. 1608 1607 * 1609 * @since BuddyPress (1.7.0)1608 * @since 1.7.0 1610 1609 */ 1611 1610 public function single_dummy_post() { … … 1626 1625 * Filter the_content with the single group template part. 1627 1626 * 1628 * @since BuddyPress (1.7.0)1627 * @since 1.7.0 1629 1628 */ 1630 1629 public function single_content() {
Note: See TracChangeset
for help on using the changeset viewer.