Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/29/2015 11:13:57 PM (10 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-templates/bp-legacy/buddypress/groups/create.php

    r10150 r10158  
    253253            <?php endif; ?>
    254254
    255             <?php /* Group creation step 4: Invite friends to group */ ?>
     255            <?php /* Group creation step 4: Cover image */ ?>
     256            <?php if ( bp_is_group_creation_step( 'group-cover-image' ) ) : ?>
     257
     258                <?php
     259
     260                /**
     261                 * Fires before the display of the group cover image creation step.
     262                 *
     263                 * @since 2.4.0
     264                 */
     265                do_action( 'bp_before_group_cover_image_creation_step' ); ?>
     266
     267                <div id="header-cover-image"></div>
     268
     269                <p><?php _e( 'The Cover Image will be used to customize the header of your group.', 'buddypress' ); ?></p>
     270
     271                <?php bp_attachments_get_template_part( 'cover-images/index' ); ?>
     272
     273                <?php
     274
     275                /**
     276                 * Fires after the display of the group cover image creation step.
     277                 *
     278                 * @since 2.4.0
     279                 */
     280                do_action( 'bp_after_group_cover_image_creation_step' ); ?>
     281
     282                <?php wp_nonce_field( 'groups_create_save_group-cover-image' ); ?>
     283
     284            <?php endif; ?>
     285
     286            <?php /* Group creation step 5: Invite friends to group */ ?>
    256287            <?php if ( bp_is_group_creation_step( 'group-invites' ) ) : ?>
    257288
Note: See TracChangeset for help on using the changeset viewer.