Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/29/2015 11:13:57 PM (5 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-loader.php

    r10148 r10158  
    314314        }
    315315
     316        if ( bp_group_use_cover_image_header() ) {
     317            $this->group_creation_steps['group-cover-image'] = array(
     318                'name'     => _x( 'Cover Image', 'Group screen nav', 'buddypress' ),
     319                'position' => 25
     320            );
     321        }
     322
    316323        // If friends component is active, add invitations
    317324        if ( bp_is_active( 'friends' ) ) {
     
    592599                }
    593600
     601                if ( bp_group_use_cover_image_header() ) {
     602                    $sub_nav[] = array_merge( array(
     603                        'name'     => __( 'Cover Image', 'buddypress' ),
     604                        'slug'     => 'group-cover-image',
     605                        'position' => 25,
     606                    ), $default_params );
     607                }
     608
    594609                $sub_nav[] = array_merge( array(
    595610                    'name'     => __( 'Members', 'buddypress' ),
Note: See TracChangeset for help on using the changeset viewer.