Skip to:
Content

BuddyPress.org


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

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

Props r-a-y

See #6570

File:
1 edited

Legend:

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

    r10148 r10158  
    10051005    }
    10061006
     1007/** Group cover image *********************************************************/
     1008
     1009/**
     1010 * Should we use the group's cover image header
     1011 *
     1012 * @since 2.4.0
     1013 *
     1014 * @return bool True if the displayed user has a cover image,
     1015 *              False otherwise
     1016 */
     1017function bp_group_use_cover_image_header() {
     1018    return (bool) bp_is_active( 'groups', 'cover_image' ) && ! bp_disable_group_cover_image_uploads() && bp_attachments_is_wp_version_supported();
     1019}
     1020
    10071021/**
    10081022 * Output the 'last active' string for the current group in the loop.
Note: See TracChangeset for help on using the changeset viewer.