Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/20/2021 04:02:22 PM (4 years ago)
Author:
dcavins
Message:

BP Admin Tools: Add tab interface to support additional screens.

Expand the BP Tools screen to use a tabbed interface
so that multiple tools screens can be grouped in a
single Tools > BuddyPress menu item.

Props imath.

See #8448.

File:
1 edited

Legend:

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

    r12826 r12897  
    2222        <h1 class="wp-heading-inline"><?php esc_html_e( 'BuddyPress Tools', 'buddypress' ) ?></h1>
    2323        <hr class="wp-header-end">
     24
     25        <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs( __( 'Repair', 'buddypress' ), 'tools' ); ?></h2>
    2426
    2527        <p><?php esc_html_e( 'BuddyPress keeps track of various relationships between members, groups, and activity items.', 'buddypress' ); ?></p>
     
    542544    $url  = add_query_arg( $query_arg, bp_get_admin_url( $page ) );
    543545    ?>
    544     <div class="card tool-box">
     546    <div class="card tool-box bp-tools">
    545547        <h2><?php esc_html_e( 'BuddyPress Tools', 'buddypress' ) ?></h2>
    546         <p>
    547             <?php esc_html_e( 'BuddyPress keeps track of various relationships between users, groups, and activity items. Occasionally these relationships become out of sync, most often after an import, update, or migration.', 'buddypress' ); ?>
    548             <?php
    549             printf(
    550                 /* translators: %s: the link to the BuddyPress repair tools */
    551                 esc_html_x( 'Use the %s to repair these relationships.', 'buddypress tools intro', 'buddypress' ),
    552                 '<a href="' . esc_url( $url ) . '">' . esc_html__( 'BuddyPress Tools', 'buddypress' ) . '</a>'
    553             );
    554             ?>
    555         </p>
     548
     549        <dl>
     550            <dt><?php esc_html_e( 'Repair Tools', 'buddypress' ) ?></dt>
     551            <dd>
     552                <?php esc_html_e( 'BuddyPress keeps track of various relationships between users, groups, and activity items. Occasionally these relationships become out of sync, most often after an import, update, or migration.', 'buddypress' ); ?>
     553                <?php
     554                printf(
     555                    /* translators: %s: the link to the BuddyPress repair tools */
     556                    esc_html_x( 'Use the %s to repair these relationships.', 'buddypress tools intro', 'buddypress' ),
     557                    '<a href="' . esc_url( $url ) . '">' . esc_html__( 'BuddyPress Repair Tools', 'buddypress' ) . '</a>'
     558                );
     559                ?>
     560            </dd>
     561        </dl>
    556562    </div>
    557563    <?php
Note: See TracChangeset for help on using the changeset viewer.