Skip to:
Content

BuddyPress.org

Changeset 6763


Ignore:
Timestamp:
02/04/2013 01:54:56 PM (14 years ago)
Author:
boonebgorges
Message:

Only link 'Groups administration panel' on Welcome screen if Groups is active

See #4800

Props imath

File:
1 edited

Legend:

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

    r6737 r6763  
    429429                                <div class="feature-section">
    430430                                        <h4><?php _e( 'Get More Done Quickly', 'buddypress' ); ?></h4>
     431
     432                                        <?php
     433                                        $group_admin_text = __( 'Groups administration panel', 'buddypress' );
     434                                        if ( bp_is_active( 'groups' ) ) {
     435                                                $group_admin_text = '<a href="' . bp_get_admin_url( add_query_arg( array( 'page' => 'bp-groups' ), 'admin.php' ) ) . '">' . $group_admin_text . '</a>';
     436                                        }
     437                                        ?>
     438
    431439                                        <p><?php printf(
    432                                                 __( 'The new <a href="%s">Groups administration panel</a> makes it easy to handle large numbers of groups on your BuddyPress installation. Delete groups, edit group details, modify memberships, and more, with just a few clicks.', 'buddypress' ),
    433                                                 bp_get_admin_url( add_query_arg( array( 'page' => 'bp-groups' ), 'admin.php' ) )
     440                                                __( 'The new %s makes it easy to handle large numbers of groups on your BuddyPress installation. Delete groups, edit group details, modify memberships, and more, with just a few clicks.', 'buddypress' ),
     441                                                $group_admin_text
    434442                                        ); ?></p>
    435443                                </div>
Note: See TracChangeset for help on using the changeset viewer.