Пример #1
0
        if (bp_is_group_home()) {
            if (bp_group_is_visible()) {
                // Load appropriate front template
                bp_groups_front_template_part();
            } else {
                /**
                 * Fires before the display of the group status message.
                 *
                 * @since 1.1.0
                 */
                do_action('bp_before_group_status_message');
                ?>

					<div id="message" class="info">
						<p><?php 
                bp_group_status_message();
                ?>
</p>
					</div>

					<?php 
                /**
                 * Fires after the display of the group status message.
                 *
                 * @since 1.1.0
                 */
                do_action('bp_after_group_status_message');
            }
            // Not looking at home
        } else {
            // Group Admin
Пример #2
0
			locate_template( array( 'gallery/groups/upload.php' ), true ) ;
		 else if(bp_is_single_media())
			
			locate_template( array( 'gallery/groups/single-media.php' ), true ) ;
		 
		else if(bp_is_single_gallery())
			
			locate_template( array( 'gallery/groups/single.php' ), true ) ;
		 
		 else { ?>
					<?php /* The group is not visible, show the status message */ ?>

					<?php do_action( 'bp_before_group_status_message' ) ?>

					<div id="message" class="info">
						<p><?php bp_group_status_message() ?></p>
					</div>

					<?php do_action( 'bp_after_group_status_message' ) ?>
				<?php }; ?>

				<?php do_action( 'bp_after_group_body' ) ?>
			</div>

			<?php do_action( 'bp_after_group_home_content' ) ?>

			<?php endwhile; endif; ?>
		</div><!-- .padder -->
	</div><!-- #content -->

	<?php locate_template( array( 'sidebar.php' ), true ) ?>