Skip to:
Content

BuddyPress.org

Ticket #7216: 7216-group-manage-screens.patch

File 7216-group-manage-screens.patch, 1.9 KB (added by mercime, 8 years ago)

Headings for all Group > Manage screens are added/moved above respective forms.

  • src/bp-templates/bp-legacy/buddypress/groups/single/admin.php

     
    1313        </ul>
    1414</div><!-- .item-list-tabs -->
    1515
     16<?php /* Add headings before respective forms. */ ?>
     17
     18<?php if ( bp_is_group_admin_screen( 'edit-details' ) ) : ?>
     19        <h2 class="bp-screen-reader-text"><?php _e( 'Manage Group Details', 'buddypress' ); ?></h2>
     20
     21<?php elseif ( bp_is_group_admin_screen( 'group-settings' ) ) : ?>
     22        <h2 class="bp-screen-reader-text"><?php _e( 'Manage Group Settings', 'buddypress' ); ?></h2>
     23
     24<?php elseif ( bp_is_group_admin_screen( 'manage-members' ) ) : ?>
     25        <h2 class="bp-screen-reader-text"><?php _e( 'Manage Members', 'buddypress' ); ?></h2>
     26
     27<?php elseif ( bp_is_group_admin_screen( 'group-avatar' ) ) : ?>
     28        <h2 class="bp-screen-reader-text"><?php _e( 'Group Avatar', 'buddypress' ); ?></h2>
     29
     30<?php elseif ( bp_is_group_admin_screen( 'group-cover-image' ) ) : ?>
     31        <h2><?php _e( 'Cover Image', 'buddypress' ); ?></h2>
     32
     33<?php elseif ( bp_is_group_admin_screen( 'membership-requests' ) ) : ?>
     34        <h2 class="bp-screen-reader-text"><?php _e( 'Manage Membership Requests', 'buddypress' ); ?></h2>
     35
     36<?php elseif ( bp_is_group_admin_screen( 'delete-group' ) ) : ?>
     37        <h2 class="bp-screen-reader-text"><?php _e( 'Delete Group', 'buddypress' ); ?></h2>
     38
     39<?php endif; ?>
     40
    1641<form action="<?php bp_group_admin_form_action(); ?>" name="group-settings-form" id="group-settings-form" class="standard-form" method="post" enctype="multipart/form-data">
    1742
    1843<?php
     
    227252<?php /* Group Cover image Settings */ ?>
    228253<?php if ( bp_is_group_admin_screen( 'group-cover-image' ) ) : ?>
    229254
    230         <h4><?php _e( 'Change Cover Image', 'buddypress' ); ?></h4>
    231 
    232255        <?php
    233256
    234257        /**