Ticket #7219: 7219.patch
File 7219.patch, 5.6 KB (added by , 8 years ago) |
---|
-
src/bp-core/admin/bp-core-admin-tools.php
21 21 22 22 <h1><?php esc_html_e( 'BuddyPress Tools', 'buddypress' ) ?></h1> 23 23 24 <p> 25 <?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' ); ?>26 24 <p><?php esc_html_e( 'BuddyPress keeps track of various relationships between members, groups, and activity items.', 'buddypress' ); ?></p> 25 <p><?php esc_html_e( 'Occasionally these relationships become out of sync, most often after an import, update, or migration.', 'buddypress' ); ?></p> 26 <p><?php esc_html_e( 'Use the tools below to manually recalculate these relationships.', 'buddypress' ); ?> 27 27 </p> 28 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 29 30 30 <form class="settings" method="post" action=""> 31 <table class="form-table">32 <tbody>33 <tr valign="top">34 <th scope="row"><?php esc_html_e( 'Repair tools', 'buddypress' ) ?></th>35 <td>36 <fieldset>37 <legend class="screen-reader-text"><span><?php38 /* translators: accessibility text */39 esc_html_e( 'Repair', 'buddypress' );40 ?></span></legend>41 31 42 <?php foreach ( bp_admin_repair_list() as $item ) : ?> 32 <fieldset> 33 <legend><?php esc_html_e( 'Repair tools', 'buddypress' ) ?></legend> 43 34 44 <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><br /> 35 <div class="checkbox"> 36 <?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> 38 <?php endforeach; ?> 39 </div> 45 40 46 <?php endforeach; ?> 41 <p class="submit"> 42 <input class="button-primary" type="submit" name="bp-tools-submit" value="<?php esc_attr_e( 'Repair Items', 'buddypress' ); ?>" /> 43 <?php wp_nonce_field( 'bp-do-counts' ); ?> 44 </p> 47 45 48 </fieldset> 49 </td> 50 </tr> 51 </tbody> 52 </table> 46 </fieldset> 53 47 54 <fieldset class="submit">55 <input class="button-primary" type="submit" name="bp-tools-submit" value="<?php esc_attr_e( 'Repair Items', 'buddypress' ); ?>" />56 <?php wp_nonce_field( 'bp-do-counts' ); ?>57 </fieldset>58 48 </form> 49 59 50 </div> 51 60 52 <?php 61 53 } 62 54 -
src/bp-core/admin/css/common-rtl.css
20 20 2.3 Tools 21 21 3.0 User's Lists 22 22 4.0 Emails - Edit page 23 5.0 Tools - BuddyPress 23 24 ------------------------------------------------------------------------------*/ 24 25 25 26 /*------------------------------------------------------------------------------ … … 491 492 padding-right: 25px; 492 493 text-indent: -25px; 493 494 } 495 496 /*------------------------------------------------------------------------------ 497 * 5.0 Tools - BuddyPress 498 *----------------------------------------------------------------------------*/ 499 .tools_page_bp-tools fieldset { 500 margin: 2em 0 0; 501 } 502 503 .tools_page_bp-tools legend { 504 color: #23282d; 505 font-size: 1.3em; 506 font-weight: 600px; 507 margin: 1em 0; 508 } 509 510 .tools_page_bp-tools label { 511 clear: right; 512 display: block; 513 line-height: 1.5em; 514 margin: 0 0 1em; 515 vertical-align: middle; 516 } 517 518 @media screen and (max-width: 782px) { 519 .tools_page_bp-tools label { 520 margin-bottom: 1em; 521 padding-left: 25px; 522 text-indent: -33px; 523 } 524 .tools_page_bp-tools .checkbox { 525 padding: 0 30px 0 0; 526 } 527 } -
src/bp-core/admin/css/common.css
20 20 2.3 Tools 21 21 3.0 User's Lists 22 22 4.0 Emails - Edit page 23 5.0 Tools - BuddyPress 23 24 ------------------------------------------------------------------------------*/ 24 25 25 26 /*------------------------------------------------------------------------------ … … 491 492 padding-left: 25px; 492 493 text-indent: -25px; 493 494 } 495 496 /*------------------------------------------------------------------------------ 497 * 5.0 Tools - BuddyPress 498 *----------------------------------------------------------------------------*/ 499 .tools_page_bp-tools fieldset { 500 margin: 2em 0 0; 501 } 502 503 .tools_page_bp-tools legend { 504 color: #23282d; 505 font-size: 1.3em; 506 font-weight: 600px; 507 margin: 1em 0; 508 } 509 510 .tools_page_bp-tools label { 511 clear: left; 512 display: block; 513 line-height: 1.5em; 514 margin: 0 0 1em; 515 vertical-align: middle; 516 } 517 518 @media screen and (max-width: 782px) { 519 .tools_page_bp-tools label { 520 margin-bottom: 1em; 521 padding-right: 25px; 522 text-indent: -33px; 523 } 524 .tools_page_bp-tools .checkbox { 525 padding: 0 0 0 30px; 526 } 527 }