[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * BuddyPress - Groups Home 4 * 5 * @package BuddyPress 6 * @subpackage bp-legacy 7 * @version 3.0.0 8 */ 9 10 ?> 11 <div id="buddypress"> 12 13 <?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?> 14 15 <?php 16 17 /** 18 * Fires before the display of the group home content. 19 * 20 * @since 1.2.0 21 */ 22 do_action( 'bp_before_group_home_content' ); ?> 23 24 <div id="item-header" role="complementary"> 25 26 <?php 27 /** 28 * If the cover image feature is enabled, use a specific header 29 */ 30 if ( bp_group_use_cover_image_header() ) : 31 bp_get_template_part( 'groups/single/cover-image-header' ); 32 else : 33 bp_get_template_part( 'groups/single/group-header' ); 34 endif; 35 ?> 36 37 </div><!-- #item-header --> 38 39 <div id="item-nav"> 40 <div class="item-list-tabs no-ajax" id="object-nav" aria-label="<?php esc_attr_e( 'Group primary navigation', 'buddypress' ); ?>" role="navigation"> 41 <ul> 42 43 <?php bp_get_options_nav(); ?> 44 45 <?php 46 47 /** 48 * Fires after the display of group options navigation. 49 * 50 * @since 1.2.0 51 */ 52 do_action( 'bp_group_options_nav' ); ?> 53 54 </ul> 55 </div> 56 </div><!-- #item-nav --> 57 58 <div id="item-body"> 59 60 <?php 61 62 /** 63 * Fires before the display of the group home body. 64 * 65 * @since 1.2.0 66 */ 67 do_action( 'bp_before_group_body' ); 68 69 /** 70 * Does this next bit look familiar? If not, go check out WordPress's 71 * /wp-includes/template-loader.php file. 72 * 73 * @todo A real template hierarchy? Gasp! 74 */ 75 76 // Looking at home location 77 if ( bp_is_group_home() ) : 78 79 if ( bp_group_is_visible() ) { 80 81 // Load appropriate front template 82 bp_groups_front_template_part(); 83 84 } else { 85 86 /** 87 * Fires before the display of the group status message. 88 * 89 * @since 1.1.0 90 */ 91 do_action( 'bp_before_group_status_message' ); ?> 92 93 <div id="message" class="info"> 94 <p><?php bp_group_status_message(); ?></p> 95 </div> 96 97 <?php 98 99 /** 100 * Fires after the display of the group status message. 101 * 102 * @since 1.1.0 103 */ 104 do_action( 'bp_after_group_status_message' ); 105 106 } 107 108 // Not looking at home 109 else : 110 111 // Group Admin 112 if ( bp_is_group_admin_page() ) : bp_get_template_part( 'groups/single/admin' ); 113 114 // Group Activity 115 elseif ( bp_is_group_activity() ) : bp_get_template_part( 'groups/single/activity' ); 116 117 // Group Members 118 elseif ( bp_is_group_members() ) : bp_groups_members_template_part(); 119 120 // Group Invitations 121 elseif ( bp_is_group_invites() ) : bp_get_template_part( 'groups/single/send-invites' ); 122 123 // Membership request 124 elseif ( bp_is_group_membership_request() ) : bp_get_template_part( 'groups/single/request-membership' ); 125 126 // Anything else (plugins mostly) 127 else : bp_get_template_part( 'groups/single/plugins' ); 128 129 endif; 130 131 endif; 132 133 /** 134 * Fires after the display of the group home body. 135 * 136 * @since 1.2.0 137 */ 138 do_action( 'bp_after_group_body' ); ?> 139 140 </div><!-- #item-body --> 141 142 <?php 143 144 /** 145 * Fires after the display of the group home content. 146 * 147 * @since 1.2.0 148 */ 149 do_action( 'bp_after_group_home_content' ); ?> 150 151 <?php endwhile; endif; ?> 152 153 </div><!-- #buddypress -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Oct 16 01:00:54 2024 | Cross-referenced by PHPXref 0.7.1 |