Skip to:
Content

BuddyPress.org

Changeset 7006


Ignore:
Timestamp:
05/06/2013 07:33:40 PM (12 years ago)
Author:
boonebgorges
Message:

Add "Add New" link to Dashboard > Groups header.

Fixes #4987

Props imath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-admin.php

    r6959 r7006  
    621621        <h2>
    622622            <?php _e( 'Groups', 'buddypress' ); ?>
     623
     624            <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?>
     625                <a class="add-new-h2" href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a>
     626            <?php endif; ?>
    623627
    624628            <?php if ( !empty( $_REQUEST['s'] ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.