Skip to:
Content

BuddyPress.org

Ticket #4987: 4987.diff

File 4987.diff, 1.6 KB (added by imath, 12 years ago)
  • bp-groups/bp-groups-admin.php

     
    483483
    484484        <div class="wrap">
    485485                <?php screen_icon( 'buddypress-groups' ); ?>
    486                 <h2><?php _e( 'Edit Group', 'buddypress' ); ?>
     486                <h2><?php _e( 'Edit Group', 'buddypress' ); ?></h2>
    487487
    488                         <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?>
    489                                 <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>
    490                         <?php endif; ?>
    491 
    492                 </h2>
    493 
    494488                <?php // If the user has just made a change to an group, display the status messages ?>
    495489                <?php if ( !empty( $messages ) ) : ?>
    496490                        <div id="moderated" class="<?php echo ( $is_error ) ? 'error' : 'updated'; ?>"><p><?php echo implode( "<br/>\n", $messages ); ?></p></div>
     
    620614                <?php screen_icon( 'buddypress-groups' ); ?>
    621615                <h2>
    622616                        <?php _e( 'Groups', 'buddypress' ); ?>
     617                       
     618                        <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?>
     619                                <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>
     620                        <?php endif; ?>
    623621
    624622                        <?php if ( !empty( $_REQUEST['s'] ) ) : ?>
    625623                                <span class="subtitle"><?php printf( __( 'Search results for &#8220;%s&#8221;', 'buddypress' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ); ?></span>