sbrajesh

Brajesh Singh

Feb 11th, 2011
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.19 KB | None | 0 0
  1. <div class="item-list-tabs no-ajax" id="subnav">
  2. <ul>
  3.     <?php bp_group_gallery_admin_tabs(); ?>
  4. </ul>
  5. <?php gallery_display_space_usage("groups",null)?>aaa
  6. </div>
  7.  
  8.                 <div id="galleries">
  9.                
  10.                 <?php if(bp_has_galleries()):?>
  11.                     <?php while(bp_galleries()):bp_the_gallery() ;?>
  12.                             <div class='bp-gallery gallery-type-<?php bp_gallery_type();?>' id="gallery_<?php bp_gallery_id();?>">
  13.                                 <div class='gallery-content'>
  14.                            
  15.                                 <h3 class='gallery-title'><a href="<?php bp_gallery_permalink();?>"><?php bp_gallery_title();?></a></h3>
  16.                                 <?php// bp_gallery_description();?>
  17.                                 <div class='gallery-cover'><a href="<?php bp_gallery_permalink();?>"><?php bp_gallery_cover_image("mini");?></a></div>
  18.                                 <br class="clear" />
  19.                                
  20.                                
  21.                                 <div class='gallery-actions'>
  22.                                                                <?php if(user_can_delete_gallery()):?>
  23.                                 <?php bp_gallery_add_media_link();?><a href="<?php bp_gallery_edit_link();?>" class='edit'>[Edit]</a><a href='<?php bp_gallery_delete_link()?>' class='delete'>[x]remove</a>
  24.                                  <?php else :
  25.                                                                      global $bp;
  26.                                                                      if(groups_is_user_member($bp->loggedin_user->id,$bp->groups->current_group->id)):?>
  27.                                                                      <?php bp_gallery_add_media_link();?>
  28.                                                                      <?php endif;?>
  29.                                                                 <?php endif;?>
  30.                                                                 </div>
  31.                                
  32.                                 </div>
  33.                            
  34.                             </div>
  35.                             <?php
  36.                             //print_r($galleries_template->gallery);
  37.                 ?>
  38.                     <?php endwhile;?>
  39.             <br class="clear" />
  40.                     <?php bp_gallery_pagination_count();?><br />
  41.                     <?php   bp_gallery_pagination();?><br />
  42.                 <?php else:?>
  43.                     <p><?php bp_no_gallery_message();?>
  44.                     </p>
  45.                     <?php bp_gallery_create_button();?>
  46.                 <?php endif;?>
  47.                
  48.            
  49.             <br class="clear" />
  50.             </div>
  51.  
  52.                 <?php do_action( 'bp_directory_members_content' ) ?>
Add Comment
Please, Sign In to add comment