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-templates/bp-legacy/buddypress/groups/single/admin.php

    r10150 r10158  
    205205
    206206    <?php endif; ?>
     207
     208<?php endif; ?>
     209
     210<?php /* Group Cover image Settings */ ?>
     211<?php if ( bp_is_group_admin_screen( 'group-cover-image' ) ) : ?>
     212
     213    <h4><?php _e( 'Change Cover Image', 'buddypress' ); ?></h4>
     214
     215    <?php
     216
     217    /**
     218     * Fires before the display of profile cover image upload content.
     219     *
     220     * @since 2.4.0
     221     */
     222    do_action( 'bp_before_group_settings_cover_image' ); ?>
     223
     224    <p><?php _e( 'The Cover Image will be used to customize the header of your group.', 'buddypress' ); ?></p>
     225
     226    <?php bp_attachments_get_template_part( 'cover-images/index' ); ?>
     227
     228    <?php
     229
     230    /**
     231     * Fires after the display of group cover image upload content.
     232     *
     233     * @since 2.4.0
     234     */
     235    do_action( 'bp_after_group_settings_cover_image' ); ?>
    207236
    208237<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.