Skip to:
Content

BuddyPress.org

Changeset 12725


Ignore:
Timestamp:
09/18/2020 08:58:20 PM (4 years ago)
Author:
imath
Message:

Administration: improve BP Admin header titles consistency

This is a follow up of [12724]. It makes sure BP Admin headers titles (<h1>) are including the .wp-heading-inline class and are followed by an <hr> tag having the .wp-header-end class.

Fixes #8364

Location:
trunk/src
Files:
12 edited

Legend:

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

    r12698 r12725  
    670670
    671671    <div class="wrap">
    672         <h1><?php esc_html_e( 'Delete Activities', 'buddypress' ) ?></h1>
     672        <h1 class="wp-heading-inline"><?php esc_html_e( 'Delete Activities', 'buddypress' ) ?></h1>
     673        <hr class="wp-header-end">
     674
    673675        <p><?php esc_html_e( 'You are about to delete the following activities:', 'buddypress' ) ?></p>
    674676
     
    757759
    758760    <div class="wrap">
    759         <h1>
     761        <h1 class="wp-heading-inline">
    760762            <?php
    761763            /* translators: %s: the activity ID */
     
    763765            ?>
    764766        </h1>
     767
     768        <hr class="wp-header-end">
    765769
    766770        <?php if ( ! empty( $activity ) ) : ?>
     
    11501154
    11511155    <div class="wrap">
    1152         <h1>
     1156        <h1 class="wp-heading-inline">
    11531157            <?php if ( !empty( $_REQUEST['aid'] ) ) : ?>
    11541158                <?php
     
    11701174        </h1>
    11711175
     1176        <hr class="wp-header-end">
     1177
    11721178        <?php // If the user has just made a change to an activity item, display the status messages. ?>
    11731179        <?php if ( !empty( $messages ) ) : ?>
  • trunk/src/bp-core/admin/bp-core-admin-components.php

    r12588 r12725  
    2222    <div class="wrap">
    2323
    24         <h1><?php _e( 'BuddyPress Settings', 'buddypress' ); ?> </h1>
     24        <h1 class="wp-heading-inline"><?php _e( 'BuddyPress Settings', 'buddypress' ); ?> </h1>
     25        <hr class="wp-header-end">
    2526
    2627        <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs( __( 'Components', 'buddypress' ) ); ?></h2>
  • trunk/src/bp-core/admin/bp-core-admin-functions.php

    r12678 r12725  
    103103
    104104    <div class="wrap">
    105         <h2><?php _e( 'Why have all my BuddyPress menus disappeared?', 'buddypress' ); ?></h2>
    106 
    107         <p><?php _e( "Don't worry! We've moved the BuddyPress options into more convenient and easier to find locations. You're seeing this page because you are running a legacy BuddyPress plugin which has not been updated.", 'buddypress' ); ?></p>
     105        <h1 class="wp-heading-inline"><?php esc_html_e( 'Why have all my BuddyPress menus disappeared?', 'buddypress' ); ?></h1>
     106        <hr class="wp-header-end">
     107
     108        <p><?php esc_html_e( "Don't worry! We've moved the BuddyPress options into more convenient and easier to find locations. You're seeing this page because you are running a legacy BuddyPress plugin which has not been updated.", 'buddypress' ); ?></p>
    108109        <p>
    109110            <?php
  • trunk/src/bp-core/admin/bp-core-admin-settings.php

    r12553 r12725  
    273273    <div class="wrap">
    274274
    275         <h1><?php _e( 'BuddyPress Settings', 'buddypress' ); ?> </h1>
    276 
    277         <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs( __( 'Options', 'buddypress' ) ); ?></h2>
     275        <h1 class="wp-heading-inline"><?php esc_html_e( 'BuddyPress Settings', 'buddypress' ); ?></h1>
     276        <hr class="wp-header-end">
     277
     278        <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs( esc_html__( 'Options', 'buddypress' ) ); ?></h2>
    278279
    279280        <form action="<?php echo esc_url( $form_action ) ?>" method="post">
  • trunk/src/bp-core/admin/bp-core-admin-slugs.php

    r12718 r12725  
    2222    <div class="wrap">
    2323
    24         <h1><?php _e( 'BuddyPress Settings', 'buddypress' ); ?> </h1>
    25 
    26         <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs( __( 'Pages', 'buddypress' ) ); ?></h2>
     24        <h1 class="wp-heading-inline"><?php esc_html_e( 'BuddyPress Settings', 'buddypress' ); ?> </h1>
     25        <hr class="wp-header-end">
     26
     27        <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs( esc_html__( 'Pages', 'buddypress' ) ); ?></h2>
    2728        <form action="" method="post" id="bp-admin-page-form">
    2829
  • trunk/src/bp-core/admin/bp-core-admin-tools.php

    r12668 r12725  
    2020    <div class="wrap">
    2121
    22         <h1><?php esc_html_e( 'BuddyPress Tools', 'buddypress' ) ?></h1>
     22        <h1 class="wp-heading-inline"><?php esc_html_e( 'BuddyPress Tools', 'buddypress' ) ?></h1>
     23        <hr class="wp-header-end">
    2324
    2425        <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>
     
    443444    ?>
    444445    <div class="wrap">
    445         <h1><?php esc_attr_e( 'Tools', 'buddypress' ) ?></h1>
     446        <h1 class="wp-heading-inline"><?php esc_html_e( 'Tools', 'buddypress' ) ?></h1>
     447        <hr class="wp-header-end">
    446448
    447449        <?php
  • trunk/src/bp-core/classes/class-bp-admin.php

    r12651 r12725  
    829829        <div class="wrap bp-about-wrap">
    830830
    831         <h1><?php esc_html_e( 'BuddyPress Settings', 'buddypress' ); ?> </h1>
     831        <h1 class="wp-heading-inline"><?php esc_html_e( 'BuddyPress Settings', 'buddypress' ); ?></h1>
     832        <hr class="wp-header-end">
    832833
    833834        <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs( esc_html__( 'Credits', 'buddypress' ) ); ?></h2>
  • trunk/src/bp-groups/bp-groups-admin.php

    r12724 r12725  
    698698
    699699    <div class="wrap">
    700         <h1><?php _e( 'Delete Groups', 'buddypress' ) ?></h1>
     700        <h1 class="wp-heading-inline"><?php _e( 'Delete Groups', 'buddypress' ) ?></h1>
     701        <hr class="wp-header-end">
     702
    701703        <p><?php _e( 'You are about to delete the following groups:', 'buddypress' ) ?></p>
    702704
  • trunk/src/bp-members/classes/class-bp-members-admin.php

    r12724 r12725  
    21962196
    21972197        <div class="wrap">
    2198             <h1><?php echo esc_html( $header_text ); ?></h1>
     2198            <h1 class="wp-heading-inline"><?php echo esc_html( $header_text ); ?></h1>
     2199            <hr class="wp-header-end">
     2200
    21992201            <p><?php echo esc_html( $helper_text ); ?></p>
    22002202
  • trunk/src/bp-xprofile/bp-xprofile-admin.php

    r12724 r12725  
    445445
    446446    <div class="wrap">
    447         <h1><?php esc_html_e( 'Delete Field Group', 'buddypress' ) ?></h1>
     447        <h1 class="wp-heading-inline"><?php esc_html_e( 'Delete Field Group', 'buddypress' ) ?></h1>
     448        <hr class="wp-header-end">
     449
    448450        <p><?php esc_html_e( 'You are about to delete the following field group:', 'buddypress' ) ?></p>
    449451
     
    654656
    655657    <div class="wrap">
    656         <h1>
     658        <h1 class="wp-heading-inline">
    657659            <?php
    658660            printf(
     
    663665            ?>
    664666        </h1>
     667
     668        <hr class="wp-header-end">
     669
    665670        <p>
    666671            <?php
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php

    r12676 r12725  
    12271227        <div class="wrap">
    12281228
    1229             <h1><?php echo esc_html( $title ); ?></h1>
     1229            <h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
     1230            <hr class="wp-header-end">
    12301231
    12311232            <?php if ( !empty( $message ) ) : ?>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-group.php

    r12668 r12725  
    845845        <div class="wrap">
    846846
    847             <h1><?php echo esc_html( $title ); ?></h1>
     847            <h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
     848            <hr class="wp-header-end">
    848849
    849850            <?php if ( ! empty( $message ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.