Advertisement
sbrajesh

gallery/groups/index.php

Jun 6th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.16 KB | None | 0 0
  1. <?php get_header() ?>
  2.  
  3. <div id="content">
  4.     <div class="padder">
  5.         <?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?>
  6.  
  7.         <?php do_action( 'bp_before_group_home_content' ) ?>
  8.        
  9.         <div id="item-body">
  10.             <?php do_action( 'template_notices' ) ?>
  11.  
  12.                                 <?php do_action( 'bp_before_group_body' ) ?>
  13.                     <?php if(bp_is_gallery_home())
  14.                          locate_template( array( 'gallery/groups/home.php' ), true ) ;
  15.                          
  16.                 else if(bp_is_gallery_create())
  17.                         locate_template( array( 'gallery/groups/create.php' ), true ) ;
  18.                                
  19.                 else if(bp_is_gallery_edit())
  20.                         locate_template( array( 'gallery/groups/edit.php' ), true ) ;
  21.                          
  22.                 else if(bp_is_gallery_upload())
  23.                         locate_template( array( 'gallery/groups/upload.php' ), true ) ;
  24.                  else if(bp_is_single_media())
  25.                        
  26.                         locate_template( array( 'gallery/groups/single-media.php' ), true ) ;
  27.                  
  28.                 else if(bp_is_single_gallery())
  29.                        
  30.                         locate_template( array( 'gallery/groups/single.php' ), true ) ;
  31.                  
  32.                  else { ?>
  33.                                         <?php /* The group is not visible, show the status message */ ?>
  34.  
  35.                                         <?php do_action( 'bp_before_group_status_message' ) ?>
  36.  
  37.                                         <div id="message" class="info">
  38.                                                 <p><?php bp_group_status_message() ?></p>
  39.                                         </div>
  40.  
  41.                                         <?php do_action( 'bp_after_group_status_message' ) ?>
  42.                                 <?php }; ?>
  43.  
  44.                                 <?php do_action( 'bp_after_group_body' ) ?>
  45.            
  46.         </div>
  47.  
  48.         <?php do_action( 'bp_after_group_home_content' ) ?>
  49.  
  50.         <?php endwhile; endif; ?>
  51.     </div><!-- .padder -->
  52. </div><!-- #content -->
  53.  
  54. <?php get_footer() ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement