Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/03/2020 05:19:21 PM (5 years ago)
Author:
imath
Message:

Make the BP Tools Admin screen more consistent with WP Admin ones

  • the notice message now uses the same width & height than in other administration screens.
  • improve the visibility of the advice about not running multiple tools at the same time.
  • edit the HTML markup to use existing WordPress styling and save some code lines into our common.css file.

Fixes #8357

File:
1 edited

Legend:

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

    r12732 r12739  
    2323        <hr class="wp-header-end">
    2424
    25         <p><?php esc_html_e( 'BuddyPress keeps track of various relationships between members, groups, and activity items. Occasionally these relationships become out of sync, most often after an import, update, or migration.', 'buddypress' ); ?></p>
     25        <p><?php esc_html_e( 'BuddyPress keeps track of various relationships between members, groups, and activity items.', 'buddypress' ); ?></p>
     26        <p><?php esc_html_e( 'Occasionally these relationships become out of sync, most often after an import, update, or migration.', 'buddypress' ); ?></p>
    2627        <p><?php esc_html_e( 'Use the tools below to manually recalculate these relationships.', 'buddypress' ); ?>
    2728        </p>
    28         <p class="description"><?php esc_html_e( 'Some of these tools create substantial database overhead. Avoid running more than one repair job at a time.', 'buddypress' ); ?></p>
     29        <p class="attention"><?php esc_html_e( 'Some of these tools create substantial database overhead. Avoid running more than one repair job at a time.', 'buddypress' ); ?></p>
     30
     31        <h2><?php esc_html_e( 'Activate checkboxe(s) to select the operation(s) to perform', 'buddypress' ); ?></h2>
    2932
    3033        <form class="settings" method="post" action="">
    3134
    3235            <fieldset>
    33                 <legend><?php esc_html_e( 'Repair tools', 'buddypress' ) ?></legend>
    34 
    35                 <div class="checkbox">
     36                <legend class="screen-reader-text"><?php esc_html_e( 'Repair tools', 'buddypress' ); ?></legend>
     37
    3638                <?php foreach ( bp_admin_repair_list() as $item ) : ?>
    37                     <label for="<?php echo esc_attr( str_replace( '_', '-', $item[0] ) ); ?>"><input type="checkbox" class="checkbox" name="<?php echo esc_attr( $item[0] ) . '" id="' . esc_attr( str_replace( '_', '-', $item[0] ) ); ?>" value="1" /> <?php echo esc_html( $item[1] ); ?></label>
     39                    <p>
     40                        <label for="<?php echo esc_attr( str_replace( '_', '-', $item[0] ) ); ?>">
     41                            <input type="checkbox" class="checkbox" name="<?php echo esc_attr( $item[0] ) . '" id="' . esc_attr( str_replace( '_', '-', $item[0] ) ); ?>" value="1" /> <?php echo esc_html( $item[1] ); ?>
     42                        </label>
     43                    </p>
    3844                <?php endforeach; ?>
    39                 </div>
    4045
    4146                <p class="submit">
Note: See TracChangeset for help on using the changeset viewer.