Skip to:
Content

BuddyPress.org

Changeset 13364


Ignore:
Timestamp:
11/11/2022 10:04:54 AM (2 years ago)
Author:
imath
Message:

BP Nouveau: improve the member’s cover header display

When the activity component is not activated or when activity mentions are disabled, the @username header title is not displayed into the member's cover header moving up all other parts which can lead to contrast troubles for some user information such as the last time the displayed member was active.

Props fawp

Fixes #8761

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/functions.php

    r13344 r13364  
    763763    $top_offset  = bp_core_avatar_full_height() - 10;
    764764    $left_offset = bp_core_avatar_full_width() + 20;
     765
     766    if ( ! bp_is_active( 'activity' ) || ! bp_activity_do_mentions() ) {
     767        $top_offset -= 40;
     768    }
    765769
    766770    $cover_image = isset( $params['cover_image'] ) ? 'background-image: url( ' . $params['cover_image'] . ' );' : '';
Note: See TracChangeset for help on using the changeset viewer.