Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/29/2015 11:02:46 PM (9 years ago)
Author:
imath
Message:

Introduce BuddyPress Cover Images functions and templates specific to the Members single items.

Props r-a-y

See #6570

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-template.php

    r10149 r10157  
    14801480}
    14811481
     1482/** Cover image ***************************************************************/
     1483
     1484/**
     1485 * Should we use the cover image header
     1486 *
     1487 * @since 2.4.0
     1488 *
     1489 * @return bool True if the displayed user has a cover image,
     1490 *              False otherwise
     1491 */
     1492function bp_displayed_user_use_cover_image_header() {
     1493    return (bool) bp_is_active( 'xprofile', 'cover_image' ) && ! bp_disable_cover_image_uploads() && bp_attachments_is_wp_version_supported();
     1494}
     1495
    14821496/** Avatars *******************************************************************/
    14831497
Note: See TracChangeset for help on using the changeset viewer.