Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/02/2015 01:01:03 AM (11 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/groups/groups-loop.php

    r9819 r9828  
    5353
    5454        <li <?php bp_group_class(); ?>>
    55             <div class="item-avatar">
    56                 <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a>
    57             </div>
     55            <?php if ( ! bp_disable_group_avatar_uploads() ) : ?>
     56                <div class="item-avatar">
     57                    <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a>
     58                </div>
     59            <?php endif; ?>
    5860
    5961            <div class="item">
Note: See TracChangeset for help on using the changeset viewer.