Skip to:
Content

BuddyPress.org

Changeset 6467


Ignore:
Timestamp:
10/26/2012 06:35:11 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Groups Admin:

  • Simplify title area.
  • Add "Add New" button to h2 area, to match existing WordPress admin title convention.
File:
1 edited

Legend:

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

    r6342 r6467  
    464464    <div class="wrap">
    465465        <?php screen_icon( 'buddypress-groups' ); ?>
    466         <h2><?php printf( __( 'Editing <em>%s</em> (ID #%s)', 'buddypress' ), $group_name, number_format_i18n( (int) $_REQUEST['gid'] ) ); ?></h2>
     466        <h2><?php _e( 'Edit Group', 'buddypress' ); ?>
     467
     468            <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?>
     469                <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>
     470            <?php endif; ?>
     471
     472        </h2>
    467473
    468474        <?php // If the user has just made a change to an group, display the status messages ?>
Note: See TracChangeset for help on using the changeset viewer.