Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/02/2015 01:01:03 AM (9 years ago)
Author:
boonebgorges
Message:

Allow group avatars to be disabled.

Props xgz, boonebgorges, imath, hnla.
Fixes #4677.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/groups/invites.php

    r9819 r9828  
    1515
    1616            <li>
    17                 <div class="item-avatar">
    18                     <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a>
    19                 </div>
     17                <?php if ( ! bp_disable_group_avatar_uploads() ) : ?>
     18                    <div class="item-avatar">
     19                        <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a>
     20                    </div>
     21                <?php endif; ?>
    2022
    2123                <h4><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a><span class="small"> - <?php printf( _nx( '%d member', '%d members', bp_get_group_total_members( false ),'Group member count', 'buddypress' ), bp_get_group_total_members( false )  ); ?></span></h4>
Note: See TracChangeset for help on using the changeset viewer.