Skip to:
Content

BuddyPress.org

Changeset 12739


Ignore:
Timestamp:
10/03/2020 05:19:21 PM (4 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

Location:
trunk/src/bp-core/admin
Files:
3 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">
  • trunk/src/bp-core/admin/css/common-rtl.css

    r12550 r12739  
    2222    3.2 Site Notices
    23234.0 Emails - Edit page
    24 5.0 Tools - BuddyPress
    25 6.0 Plugins page
     245.0 Plugins page
    2625------------------------------------------------------------------------------*/
    2726
     
    524523
    525524/*------------------------------------------------------------------------------
    526  * 5.0 Tools - BuddyPress
    527  *----------------------------------------------------------------------------*/
    528 .tools_page_bp-tools .wrap {
    529     max-width: 950px;
    530 }
    531 
    532 .tools_page_bp-tools p {
    533     line-height: 2;
    534 }
    535 
    536 .tools_page_bp-tools fieldset {
    537     margin: 2em 0 0;
    538 }
    539 
    540 .tools_page_bp-tools legend {
    541     color: #23282d;
    542     font-size: 1.3em;
    543     font-weight: 600;
    544     margin: 1em 0;
    545 }
    546 
    547 .tools_page_bp-tools label {
    548     clear: right;
    549     display: block;
    550     line-height: 1.5;
    551     margin: 0 0 1em;
    552     vertical-align: middle;
    553 }
    554 
    555 @media screen and (max-width: 782px) {
    556 
    557     .tools_page_bp-tools p {
    558         line-height: 1.5;
    559     }
    560 
    561     .tools_page_bp-tools label {
    562         margin-bottom: 1em;
    563         padding-left: 25px;
    564         text-indent: -33px;
    565     }
    566 
    567     .tools_page_bp-tools .checkbox {
    568         padding: 0 30px 0 0;
    569     }
    570 }
    571 
    572 
    573 /*------------------------------------------------------------------------------
    574  * 6.0 Plugins page
     525 * 5.0 Plugins page
    575526 *----------------------------------------------------------------------------*/
    576527#buddypress-update.not-shiny .update-message {
  • trunk/src/bp-core/admin/css/common.css

    r12550 r12739  
    2222    3.2 Site Notices
    23234.0 Emails - Edit page
    24 5.0 Tools - BuddyPress
    25 6.0 Plugins page
     245.0 Plugins page
    2625------------------------------------------------------------------------------*/
    2726
     
    524523
    525524/*------------------------------------------------------------------------------
    526  * 5.0 Tools - BuddyPress
    527  *----------------------------------------------------------------------------*/
    528 .tools_page_bp-tools .wrap {
    529     max-width: 950px;
    530 }
    531 
    532 .tools_page_bp-tools p {
    533     line-height: 2;
    534 }
    535 
    536 .tools_page_bp-tools fieldset {
    537     margin: 2em 0 0;
    538 }
    539 
    540 .tools_page_bp-tools legend {
    541     color: #23282d;
    542     font-size: 1.3em;
    543     font-weight: 600;
    544     margin: 1em 0;
    545 }
    546 
    547 .tools_page_bp-tools label {
    548     clear: left;
    549     display: block;
    550     line-height: 1.5;
    551     margin: 0 0 1em;
    552     vertical-align: middle;
    553 }
    554 
    555 @media screen and (max-width: 782px) {
    556 
    557     .tools_page_bp-tools p {
    558         line-height: 1.5;
    559     }
    560 
    561     .tools_page_bp-tools label {
    562         margin-bottom: 1em;
    563         padding-right: 25px;
    564         text-indent: -33px;
    565     }
    566 
    567     .tools_page_bp-tools .checkbox {
    568         padding: 0 0 0 30px;
    569     }
    570 }
    571 
    572 
    573 /*------------------------------------------------------------------------------
    574  * 6.0 Plugins page
     525 * 5.0 Plugins page
    575526 *----------------------------------------------------------------------------*/
    576527#buddypress-update.not-shiny .update-message {
Note: See TracChangeset for help on using the changeset viewer.