<?php while (bp_groups()) { bp_the_group(); ?> <li> <?php bp_group_avatar_thumb(); ?> <h4><a href="<?php bp_group_permalink(); ?> "><?php bp_group_name(); ?> </a><span class="small"> - <?php printf(__('%s members', 'buddypress'), bp_group_total_members(false)); ?> </span></h4> <p class="desc"> <?php bp_group_description_excerpt(); ?> </p> <div class="action"> <div class="generic-button accept"> <a href="<?php bp_group_accept_invite_link(); ?> "><?php _e('Accept', 'buddypress');
</a></h4> <p><?php bp_group_active_forum_topics(); ?> </p> </div> <?php } ?> <?php if (bp_group_is_visible()) { ?> <div class="info-group"> <h4><?php printf(__('Members (%d) <a href="%s">See All »</a>', 'buddypress'), bp_group_total_members(false), bp_group_all_members_permalink(false)); ?> </h4> <?php bp_group_random_members(); ?> </div> <?php } ?> <?php do_action('groups_custom_group_boxes'); ?> <?php
bp_group_permalink(); ?> "><?php bp_group_avatar('type=thumb&width=50&height=50'); ?> </a> </div> <h4><a href="<?php bp_group_permalink(); ?> "><?php bp_group_name(); ?> </a><span class="small"> - <?php printf(__('%s members', 'dp'), bp_group_total_members(false)); ?> </span></h4> <p class="desc"> <?php bp_group_description_excerpt(); ?> </p> <?php do_action('bp_group_invites_item'); ?> <div class="action"> <a class="button accept" href="<?php
function bp_group_management_admin_main() { /* Group delete requests are sent back to the main page. This handles group deletions */ if (isset($_GET['group_action']) && $_GET['group_action'] == 'delete') { if (!check_admin_referer('bp-group-management-action_group_delete')) { return false; } if (!bp_group_management_delete_group($_GET['id'])) { ?> <div id="message" class="updated fade"><p><?php _e('Sorry, there was an error.', 'bp-group-management'); ?> </p></div> <?php } else { ?> <div id="message" class="updated fade"><p><?php _e('Group deleted.', 'bp-group-management'); ?> </p></div> <?php do_action('groups_group_deleted', $bp->groups->current_group->id); } } ?> <div class="wrap bp-gm-wrap"> <h2><?php _e('Group Management', 'bp-group-management'); ?> </h2> <br /> <?php if (!($options = get_option('bp_gm_settings'))) { $per_page = 10; } else { $per_page = $options['groups_per_page']; } $args = array('type' => 'alphabetical', 'per_page' => $per_page); $order = isset($_GET['order']) ? $_GET['order'] : false; if ($order == 'name') { $args['type'] = 'alphabetical'; } else { if ($order == 'group_id') { $args['type'] = 'newest'; } else { if ($order == 'popular') { $args['type'] = 'popular'; } } } $args['page'] = isset($_GET['grpage']) ? $_GET['grpage'] : 1; if (bp_has_groups($args)) { global $groups_template; ?> <div class="tablenav"> <div class="tablenav-pages"> <span class="displaying-num" id="group-dir-count"> <?php bp_groups_pagination_count(); ?> </span> <span class="page-numbers" id="group-dir-pag"> <?php bp_group_management_pagination_links(); ?> </span> </div> </div> <table width="100%" cellpadding="3" cellspacing="3" class="widefat"> <thead> <tr> <th scope="col" class="check-column"></th> <th scope="col" class="bp-gm-group-id-header"><a href="admin.php?page=bp-group-management&order=group_id"><?php _e('Group ID', 'bp-group-management'); ?> </a></th> <th scope="col"><?php _e('Group avatar', 'bp-group-management'); ?> </th> <th scope="col"><a href="admin.php?page=bp-group-management&order=name"><?php _e('Group Name', 'bp-group-management'); ?> </a></th> <th scope="col"><?php _e('Group type', 'bp-group-management'); ?> </th> <th scope="col"><a href="admin.php?page=bp-group-management&order=group_id"><?php _e('Date Created', 'bp-group-management'); ?> </a></th> <th scope="col"><a href="admin.php?page=bp-group-management&order=popular"><?php _e('Number of Members', 'bp-group-management'); ?> </a></th> <?php do_action('bp_gm_group_column_header'); ?> </tr> </thead> <tbody id="the-list"> <?php while (bp_groups()) { bp_the_group(); ?> <?php $group = $groups_template->group; ?> <tr> <th scope="row" class="check-column"> </th> <th scope="row" class="bp-gm-group-id"> <?php bp_group_id(); ?> </th> <td scope="row" class="bp-gm-avatar"> <a href="admin.php?page=bp-group-management&action=edit&id=<?php bp_group_id(); ?> " class="edit"><?php bp_group_avatar('width=35&height=35'); ?> </a> </td> <td scope="row"> <?php bp_group_name(); ?> <br/> <?php $controlActions = array(); $controlActions[] = '<a href="admin.php?page=bp-group-management&action=edit&id=' . bp_get_group_id() . '" class="edit">' . __('Members', 'bp-group-management') . '</a>'; $controlActions[] = '<a class="delete" href="admin.php?page=bp-group-management&action=delete&id=' . bp_get_group_id() . '">' . __("Delete") . '</a>'; $controlActions[] = '<a href="' . bp_get_group_permalink() . 'admin">' . __('Admin', 'bp-group-management') . '</a>'; $controlActions[] = "<a href='" . bp_get_group_permalink() . "' rel='permalink'>" . __('Visit', 'bp-group-management') . '</a>'; $controlActions = apply_filters('bp_gm_group_action_links', $controlActions); ?> <?php if (count($controlActions)) { ?> <div class="row-actions"> <?php echo implode(' | ', $controlActions); ?> </div> <?php } ?> </td> <td scope="row"> <?php bp_group_type(); ?> </td> <td scope="row"> <?php echo $group->date_created; ?> </td> <td scope="row"> <?php bp_group_total_members(); ?> </td> <?php do_action('bp_gm_group_column_data'); ?> </tr> <?php } ?> </tbody> </table> <div class="tablenav"> <div class="tablenav-pages"> <span class="displaying-num" id="group-dir-count"> <?php bp_groups_pagination_count(); ?> </span> <span class="page-numbers" id="group-dir-pag"> <?php bp_group_management_pagination_links(); ?> </span> </div> </div> <?php } else { ?> You don't have any groups to manage. <?php } ?> <a class="button" id="bp-gm-settings-link" href="admin.php?page=bp-group-management&action=settings"><?php _e('Plugin settings', 'bp-group-management'); ?> </a> </div> <?php }
/** * bp_groupblog_options_nav() * * Manually create the navigation for the group since we can't fetch any other way. * You should manually add items if you have third party plugins that add a menu item. * * The BuddyPress function we duplicate is called bp_get_options_nav() */ function bp_groupblog_options_nav() { global $bp; $checks = get_site_option('bp_groupblog_blog_defaults_options'); ?> <li id="home-personal-li"<?php if ($checks['deep_group_integration']) { ?> class="current selected"<?php } ?> > <a id="home" href="<?php bp_group_permalink(); ?> "><?php _e('Home', 'groupblog'); ?> </a> </li> <?php if (groups_is_user_admin($bp->loggedin_user->id, bp_get_group_id()) || groups_is_user_mod($bp->loggedin_user->id, bp_get_group_id())) { ?> <li id="admin-personal-li" > <a id="admin" href="<?php bp_group_permalink(); ?> admin/"><?php _e('Admin', 'groupblog'); ?> </a> </li> <?php } ?> <?php if (bp_group_is_visible()) { ?> <?php if (bp_groupblog_is_blog_enabled(bp_get_group_id())) { ?> <?php if (!$checks['deep_group_integration']) { ?> <li id="<?php echo BP_GROUPBLOG_SLUG; ?> -personal-li"<?php //if ( is_page() ) : ?> class="current selected"<?php //endif; ?> > <a id="<?php echo BP_GROUPBLOG_SLUG; ?> " href="<?php bp_group_permalink(); ?> blog/"><?php _e('Blog', 'groupblog'); ?> </a> </li> <?php } ?> <?php } ?> <?php if (bp_is_active('forums') && (function_exists('bp_forums_is_installed_correctly') && bp_group_is_forum_enabled() && !(int) bp_get_option('bp-disable-forum-directory')) && bp_forums_is_installed_correctly()) { ?> <li id="<?php echo BP_FORUMS_SLUG; ?> -personal-li" > <a id="<?php echo BP_FORUMS_SLUG; ?> " href="<?php bp_group_permalink(); ?> forum/"><?php _e('Forum', 'groupblog'); ?> </a> </li> <?php } ?> <li id="<?php echo BP_MEMBERS_SLUG; ?> -personal-li" > <a id="<?php echo BP_MEMBERS_SLUG; ?> " href="<?php bp_group_permalink(); ?> members/"><?php _e('Members', 'groupblog'); ?> (<?php bp_group_total_members(); ?> )</a> </li> <li id="invite-personal-li" > <a id="invite" href="<?php bp_group_permalink(); ?> send-invites/"><?php _e('Send Invites', 'groupblog'); ?> </a> </li> <?php } elseif (!bp_group_is_visible() && bp_get_group_status() != 'hidden') { ?> <li id="request-membership-personal-li" > <a id="request-membership" href="<?php bp_group_permalink(); ?> request-membership/"><?php _e('Request Membership', 'groupblog'); ?> </a> </li> <?php } ?> <?php }
bp_group_permalink(); ?> "><?php bp_group_avatar('type=thumb&width=50&height=50'); ?> </a> </div> <h4><a href="<?php bp_group_permalink(); ?> "><?php bp_group_name(); ?> </a><span class="small"> - <?php printf(__('%s members', 'logicalboneshug'), bp_group_total_members(false)); ?> </span></h4> <p class="desc"> <?php bp_group_description_excerpt(); ?> </p> <?php do_action('bp_group_invites_item'); ?> <div class="action"> <a class="button accept" href="<?php
"><?php bp_group_avatar('type=thumb&width=50&height=50'); ?> </a> </div> <div class="item"> <div class="item-title"> <a href="<?php bp_group_permalink(); ?> "><?php bp_group_name(); ?> </a> <span class="small"> - <?php printf(__('%s members', 'bp-magic'), bp_group_total_members(false)); ?> </span> </div> <div class="item-desc"> <?php bp_group_description_excerpt(); ?> </div> <?php do_action('bp_group_invites_item'); ?> </div>
bp_group_permalink(); ?> "><?php bp_group_avatar('type=thumb&width=50&height=50'); ?> </a> </div> <h4><a href="<?php bp_group_permalink(); ?> "><?php bp_group_name(); ?> </a><span class="small"> - <?php printf(__('%s members', 'product'), bp_group_total_members(false)); ?> </span></h4> <p class="desc"> <?php bp_group_description_excerpt(); ?> </p> <?php do_action('bp_group_invites_item'); ?> <div class="action"> <a class="button accept" href="<?php
<?php do_action( 'bp_before_group_invites_content' ) ?> <?php if ( bp_has_groups( 'type=invites&user_id=' . bp_loggedin_user_id() ) ) : ?> <ul id="group-list" class="invites item-list"> <?php while ( bp_groups() ) : bp_the_group(); ?> <li> <?php bp_group_avatar_thumb() ?> <h4><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a><span class="small"> - <?php printf( __( '%s members', 'buddypress' ), bp_group_total_members( false ) ) ?></span></h4> <p class="desc"> <?php bp_group_description_excerpt() ?> </p> <?php do_action( 'bp_group_invites_item' ) ?> <div class="action"> <a class="button accept" href="<?php bp_group_accept_invite_link() ?>"><?php _e( 'Accept', 'buddypress' ) ?></a> <a class="button reject confirm" href="<?php bp_group_reject_invite_link() ?>"><?php _e( 'Reject', 'buddypress' ) ?></a> <?php do_action( 'bp_group_invites_item_action' ) ?> </div> </li> <?php endwhile; ?> </ul> <?php else: ?>
bp_group_permalink(); ?> "><?php bp_group_avatar('type=thumb&width=50&height=50'); ?> </a> </div> <h4 ><a href="<?php bp_group_permalink(); ?> "><?php bp_group_name(); ?> </a><span class="small"> - <?php printf(__('%s members', 'firmasite'), bp_group_total_members(false)); ?> </span></h4> <p class="desc"> <?php bp_group_description_excerpt(); ?> </p> <?php do_action('bp_group_invites_item'); ?> <div class="action"> <a class="button btn btn-default accept" href="<?php