Changeset 9027 for trunk/src/bp-groups/bp-groups-screens.php
- Timestamp:
- 09/17/2014 01:49:22 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-groups/bp-groups-screens.php (modified) (30 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-screens.php
r8737 r9027 4 4 * BuddyPress Groups Screen Functions 5 5 * 6 * Screen functions are the controllers of BuddyPress. They will execute when their7 * specific URL is caught. They will first save or manipulate data using business8 * functions, then pass on the user to a template file.6 * Screen functions are the controllers of BuddyPress. They will execute when 7 * their specific URL is caught. They will first save or manipulate data using 8 * business functions, then pass on the user to a template file. 9 9 * 10 10 * @package BuddyPress … … 15 15 if ( !defined( 'ABSPATH' ) ) exit; 16 16 17 /** 18 * Handle the display of the Groups directory index. 19 */ 17 20 function groups_directory_groups_setup() { 18 21 if ( bp_is_groups_directory() ) { … … 26 29 add_action( 'bp_screens', 'groups_directory_groups_setup', 2 ); 27 30 31 /** 32 * Handle the loading of the My Groups page. 33 */ 28 34 function groups_screen_my_groups() { 29 35 … … 33 39 } 34 40 41 /** 42 * Handle the loading of a user's Groups > Invites page. 43 */ 35 44 function groups_screen_group_invites() { 36 45 $group_id = (int)bp_action_variable( 1 ); … … 88 97 } 89 98 99 /** 100 * Handle the loading of a single group's page. 101 */ 90 102 function groups_screen_group_home() { 91 103 … … 100 112 101 113 /** 102 * This screen function handles actions related to group forums 103 * 104 * @package BuddyPress 114 * This screen function handles actions related to group forums. 105 115 */ 106 116 function groups_screen_group_forum() { … … 400 410 } 401 411 412 /** 413 * Handle the display of a group's Members page. 414 */ 402 415 function groups_screen_group_members() { 403 416 … … 414 427 } 415 428 429 /** 430 * Handle the display of a group's Send Invites page. 431 */ 416 432 function groups_screen_group_invite() { 417 433 … … 490 506 add_action( 'bp_screens', 'groups_remove_group_invite' ); 491 507 508 /** 509 * Handle the display of a group's Request Membership page. 510 */ 492 511 function groups_screen_group_request_membership() { 493 512 global $bp; … … 530 549 } 531 550 551 /** 552 * Handle the display of a single group activity item. 553 */ 532 554 function groups_screen_group_activity_permalink() { 533 555 … … 541 563 add_action( 'bp_screens', 'groups_screen_group_activity_permalink' ); 542 564 565 /** 566 * Handle the display of a group's Admin pages. 567 */ 543 568 function groups_screen_group_admin() { 544 569 if ( !bp_is_groups_component() || !bp_is_current_action( 'admin' ) ) … … 551 576 } 552 577 578 /** 579 * Handle the display of a group's admin/edit-details page. 580 */ 553 581 function groups_screen_group_admin_edit_details() { 554 582 … … 586 614 add_action( 'bp_screens', 'groups_screen_group_admin_edit_details' ); 587 615 616 /** 617 * Handle the display of a group's admin/group-settings page. 618 */ 588 619 function groups_screen_group_admin_settings() { 589 620 … … 629 660 add_action( 'bp_screens', 'groups_screen_group_admin_settings' ); 630 661 662 /** 663 * Handle the display of a group's Change Avatar page. 664 */ 631 665 function groups_screen_group_admin_avatar() { 632 666 … … 706 740 /** 707 741 * This function handles actions related to member management on the group admin. 708 *709 * @package BuddyPress710 742 */ 711 743 function groups_screen_group_admin_manage_members() { … … 825 857 add_action( 'bp_screens', 'groups_screen_group_admin_manage_members' ); 826 858 859 /** 860 * Handle the display of Admin > Membership Requests. 861 */ 827 862 function groups_screen_group_admin_requests() { 828 863 $bp = buddypress(); … … 873 908 add_action( 'bp_screens', 'groups_screen_group_admin_requests' ); 874 909 910 /** 911 * Handle the display of the Delete Group page. 912 */ 875 913 function groups_screen_group_admin_delete_group() { 876 914 global $bp; … … 912 950 913 951 /** 914 * Renders the group settings fields on the Notification Settings page 915 * 916 * @package BuddyPress 952 * Render the group settings fields on the Notification Settings page. 917 953 */ 918 954 function groups_screen_notification_settings() { … … 934 970 <tr> 935 971 <th class="icon"></th> 936 <th class="title"><?php _ex( 'Groups', 'Group settings on notification settings page', 'buddypress' ) ?></th> 972 <th class="title"><?php _ex( 'Groups', 'Group settings on notification settings page', 'buddypress' ) ?></th> 937 973 <th class="yes"><?php _e( 'Yes', 'buddypress' ) ?></th> 938 974 <th class="no"><?php _e( 'No', 'buddypress' )?></th> … … 978 1014 979 1015 /** 980 * The main theme compat class for BuddyPress Groups 1016 * The main theme compat class for BuddyPress Groups. 981 1017 * 982 1018 * This class sets up the necessary theme compatability actions to safely output 983 1019 * group template parts to the_title and the_content areas of a theme. 984 1020 * 985 * @since BuddyPress (1.7 )1021 * @since BuddyPress (1.7.0) 986 1022 */ 987 1023 class BP_Groups_Theme_Compat { 988 1024 989 1025 /** 990 * Set up the groups component theme compatibility991 * 992 * @since BuddyPress (1.7 )1026 * Set up theme compatibility for the Groups component. 1027 * 1028 * @since BuddyPress (1.7.0) 993 1029 */ 994 1030 public function __construct() { … … 999 1035 * Are we looking at something that needs group theme compatability? 1000 1036 * 1001 * @since BuddyPress (1.7 )1037 * @since BuddyPress (1.7.0) 1002 1038 */ 1003 1039 public function is_group() { … … 1032 1068 } 1033 1069 1034 /** Directory ********************************************************* ****/1070 /** Directory *********************************************************/ 1035 1071 1036 1072 /** 1037 1073 * Add template hierarchy to theme compat for the group directory page. 1038 1074 * 1039 * This is to mirror how WordPress has {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 1040 * 1041 * @since BuddyPress (1.8) 1042 * 1043 * @param string $templates The templates from bp_get_theme_compat_templates() 1075 * This is to mirror how WordPress has 1076 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 1077 * 1078 * @since BuddyPress (1.8.0) 1079 * 1080 * @param string $templates The templates from bp_get_theme_compat_templates(). 1044 1081 * @return array $templates Array of custom templates to look for. 1045 1082 */ … … 1058 1095 1059 1096 /** 1060 * Update the global $post with directory data 1061 * 1062 * @since BuddyPress (1.7 )1097 * Update the global $post with directory data. 1098 * 1099 * @since BuddyPress (1.7.0) 1063 1100 */ 1064 1101 public function directory_dummy_post() { … … 1080 1117 1081 1118 /** 1082 * Filter the_content with the groups index template part 1083 * 1084 * @since BuddyPress (1.7 )1119 * Filter the_content with the groups index template part. 1120 * 1121 * @since BuddyPress (1.7.0) 1085 1122 */ 1086 1123 public function directory_content() { … … 1088 1125 } 1089 1126 1090 /** Create ************************************************************ ****/1127 /** Create ************************************************************/ 1091 1128 1092 1129 /** 1093 1130 * Add custom template hierarchy to theme compat for the group create page. 1094 1131 * 1095 * This is to mirror how WordPress has {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 1096 * 1097 * @since BuddyPress (1.8) 1098 * 1099 * @param string $templates The templates from bp_get_theme_compat_templates() 1132 * This is to mirror how WordPress has 1133 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 1134 * 1135 * @since BuddyPress (1.8.0) 1136 * 1137 * @param string $templates The templates from bp_get_theme_compat_templates(). 1100 1138 * @return array $templates Array of custom templates to look for. 1101 1139 */ … … 1114 1152 1115 1153 /** 1116 * Update the global $post with create screen data 1117 * 1118 * @since BuddyPress (1.7 )1154 * Update the global $post with create screen data. 1155 * 1156 * @since BuddyPress (1.7.0) 1119 1157 */ 1120 1158 public function create_dummy_post() { … … 1136 1174 1137 1175 /** 1138 * Filter the_content with the create screen template part 1139 * 1140 * @since BuddyPress (1.7 )1176 * Filter the_content with the create screen template part. 1177 * 1178 * @since BuddyPress (1.7.0) 1141 1179 */ 1142 1180 public function create_content() { … … 1144 1182 } 1145 1183 1146 /** Single ************************************************************ ****/1184 /** Single ************************************************************/ 1147 1185 1148 1186 /** 1149 1187 * Add custom template hierarchy to theme compat for group pages. 1150 1188 * 1151 * This is to mirror how WordPress has {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 1152 * 1153 * @since BuddyPress (1.8) 1154 * 1155 * @param string $templates The templates from bp_get_theme_compat_templates() 1189 * This is to mirror how WordPress has 1190 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 1191 * 1192 * @since BuddyPress (1.8.0) 1193 * 1194 * @param string $templates The templates from bp_get_theme_compat_templates(). 1156 1195 * @return array $templates Array of custom templates to look for. 1157 1196 */ … … 1177 1216 1178 1217 /** 1179 * Update the global $post with single group data 1180 * 1181 * @since BuddyPress (1.7 )1218 * Update the global $post with single group data. 1219 * 1220 * @since BuddyPress (1.7.0) 1182 1221 */ 1183 1222 public function single_dummy_post() { … … 1196 1235 1197 1236 /** 1198 * Filter the_content with the single group template part 1199 * 1200 * @since BuddyPress (1.7 )1237 * Filter the_content with the single group template part. 1238 * 1239 * @since BuddyPress (1.7.0) 1201 1240 */ 1202 1241 public function single_content() {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)