echo bp_get_gallery_type(); ?> "><?php echo bp_get_gallery_type(); ?> </div> <div class="clear"></div> </div> <?php ?> <?php } ?> <br class="clear" /> <?php bp_gallery_pagination_count(); ?> <br /> <?php bp_gallery_pagination(); ?> <br /> <?php } else { ?> <p><?php bp_no_gallery_message(); ?> </p> <?php bp_gallery_create_button();
<?php if(user_can_delete_gallery()):?> <?php bp_gallery_add_media_link();?><a href="<?php bp_gallery_edit_link();?>" class='edit'>[<?php _e("Edit","bp-gallery");?>]</a><a href='<?php bp_gallery_delete_link()?>' class='delete'>[x]<?php _e("remove","bp-gallery");?></a> <?php else : global $bp; if(groups_is_user_member($bp->loggedin_user->id,$bp->groups->current_group->id)):?> <?php bp_gallery_add_media_link();?> <?php endif;?> <?php endif;?> </div> </div> </div> <?php //print_r($galleries_template->gallery); ?> <?php endwhile;?> <br class="clear" /> <?php bp_gallery_pagination_count();?><br /> <?php bp_gallery_pagination();?><br /> <?php else:?> <p><?php bp_no_gallery_message();?> </p> <?php bp_gallery_create_button();?> <?php endif;?> <br class="clear" /> </div> <?php do_action( 'bp_directory_members_content' ) ?>