Skip to:
Content

BuddyPress.org

Changeset 12078


Ignore:
Timestamp:
05/10/2018 07:21:00 PM (19 months ago)
Author:
djpaul
Message:

Templates, Nouveau: improve heading levels and classes for member templates.

Props mercime, imath

See #7728

Location:
trunk/src/bp-templates/bp-nouveau/buddypress
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/activity/post-form.php

    r11856 r12078  
    1414?>
    1515
     16<h2 class="bp-screen-reader-text"><?php _e( 'Post Update', 'buddypress' ); ?></h2>
     17
    1618<div id="bp-nouveau-activity-form" class="activity-update-form"></div>
    1719
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/activity.php

    r11899 r12078  
    1616</nav><!-- .item-list-tabs#subnav -->
    1717
     18<h2 class="bp-screen-title<?php echo ( bp_displayed_user_has_front_template() ) ? ' bp-screen-reader-text' : ''; ?>">
     19    <?php esc_html_e( 'Member Activities', 'buddypress' ); ?>
     20</h2>
     21
    1822<?php bp_nouveau_activity_member_post_form(); ?>
    19 
    2023
    2124<?php bp_get_template_part( 'common/search-and-filters-bar' ); ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/friends/requests.php

    r11918 r12078  
    66 */
    77
    8 bp_nouveau_member_hook( 'before', 'friend_requests_content' ); ?>
     8?>
     9
     10<h2 class="screen-heading friendship-requests-screen"><?php esc_html_e( 'Friendship Requests', 'buddypress' ); ?></h2>
     11
     12<?php bp_nouveau_member_hook( 'before', 'friend_requests_content' ); ?>
    913
    1014<?php if ( bp_has_members( 'type=alphabetical&include=' . bp_get_friendship_requests() ) ) : ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/groups/invites.php

    r11899 r12078  
    66 */
    77
    8 bp_nouveau_group_hook( 'before', 'invites_content' ); ?>
     8?>
     9
     10<h2 class="screen-heading group-invites-screen"><?php esc_html_e( 'Group Invites', 'buddypress' ); ?></h2>
     11
     12<?php bp_nouveau_group_hook( 'before', 'invites_content' ); ?>
    913
    1014<?php if ( bp_has_groups( 'type=invites&user_id=' . bp_loggedin_user_id() ) ) : ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/change-avatar.php

    r11986 r12078  
    77?>
    88
    9 <h2 class="screen-heading"><?php _e( 'Change Profile Photo', 'buddypress' ); ?></h2>
     9<h2 class="screen-heading change-avatar-screen"><?php _e( 'Change Profile Photo', 'buddypress' ); ?></h2>
    1010
    1111<?php bp_nouveau_member_hook( 'before', 'avatar_upload_content' ); ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/change-cover-image.php

    r11986 r12078  
    88?>
    99
    10 <h2 class="screen-heading"><?php _e( 'Change Cover Image', 'buddypress' ); ?></h2>
     10<h2 class="screen-heading change-cover-image-screen"><?php _e( 'Change Cover Image', 'buddypress' ); ?></h2>
    1111
    1212<?php bp_nouveau_member_hook( 'before', 'edit_cover_image' ); ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/edit.php

    r11899 r12078  
    66 */
    77
    8 bp_nouveau_xprofile_hook( 'before', 'edit_content' );
     8bp_nouveau_xprofile_hook( 'before', 'edit_content' ); ?>
    99
    10 if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) :
     10<h2 class="screen-heading edit-profile-screen"><?php esc_html_e( 'Edit Profile', 'buddypress' ); ?></h2>
     11
     12<?php if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) :
    1113    while ( bp_profile_groups() ) :
    1214        bp_the_profile_group();
     
    2527                <?php endif; ?>
    2628
    27                 <h2 class="screen-heading profile-group-title edit"><?php printf( __( 'Editing \'%s\' Profile Group', 'buddypress' ), bp_get_the_profile_group_name() ); ?></h2>
     29                <h3 class="screen-heading profile-group-title edit"><?php printf( __( 'Editing \'%s\' Profile Group', 'buddypress' ), bp_get_the_profile_group_name() ); ?></h3>
    2830
    2931                <?php
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/profile-loop.php

    r11899 r12078  
    66 */
    77
    8 bp_nouveau_xprofile_hook( 'before', 'loop_content' ); ?>
     8?>
     9
     10<h2 class="screen-heading view-profile-screen"><?php _e( 'View Profile', 'buddypress' ); ?></h2>
     11
     12<?php bp_nouveau_xprofile_hook( 'before', 'loop_content' ); ?>
    913
    1014<?php if ( bp_has_profile() ) : ?>
     
    2125            <div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    2226
    23                 <h2 class="screen-heading profile-group-title">
     27                <h3 class="screen-heading profile-group-title">
    2428                    <?php bp_the_profile_group_name(); ?>
    25                 </h2>
     29                </h3>
    2630
    2731                <table class="profile-fields bp-tables-user">
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/profile-wp.php

    r11899 r12078  
    1010<div class="bp-widget wp-profile">
    1111
    12     <h2 class="screen-heading">
     12    <h2 class="screen-heading wp-profile-screen">
    1313        <?php
    1414        if ( bp_is_my_profile() ) {
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/general.php

    r11899 r12078  
    88bp_nouveau_member_hook( 'before', 'settings_template' ); ?>
    99
    10 <h2 class="screen-heading genaral-settings-screen">
     10<h2 class="screen-heading general-settings-screen">
    1111    <?php _e( 'Email & Password', 'buddypress' ); ?>
    1212</h2>
Note: See TracChangeset for help on using the changeset viewer.