Changeset 8168 for trunk/bp-groups/bp-groups-template.php
- Timestamp:
- 03/26/2014 11:35:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-template.php
r8150 r8168 777 777 global $groups_template; 778 778 779 if ( empty( $group ) ) 779 if ( empty( $group ) ) { 780 780 $group =& $groups_template->group; 781 782 if ( !empty( $group->admins ) ) { ?> 781 } 782 783 // fetch group admins if 'populate_extras' flag is false 784 if ( empty( $group->args['populate_extras'] ) ) { 785 $query = new BP_Group_Member_Query( array( 786 'group_id' => $group->id, 787 'group_role' => 'admin', 788 'type' => 'first_joined', 789 ) ); 790 791 if ( ! empty( $query->results ) ) { 792 $group->admins = $query->results; 793 } 794 } 795 796 if ( ! empty( $group->admins ) ) { ?> 783 797 <ul id="group-admins"> 784 798 <?php foreach( (array) $group->admins as $admin ) { ?> … … 797 811 global $groups_template; 798 812 799 if ( empty( $group ) ) 813 if ( empty( $group ) ) { 800 814 $group =& $groups_template->group; 801 802 if ( !empty( $group->mods ) ) : ?> 815 } 816 817 // fetch group mods if 'populate_extras' flag is false 818 if ( empty( $group->args['populate_extras'] ) ) { 819 $query = new BP_Group_Member_Query( array( 820 'group_id' => $group->id, 821 'group_role' => 'mod', 822 'type' => 'first_joined', 823 ) ); 824 825 if ( ! empty( $query->results ) ) { 826 $group->mods = $query->results; 827 } 828 } 829 830 if ( ! empty( $group->mods ) ) : ?> 803 831 804 832 <ul id="group-mods">
Note: See TracChangeset
for help on using the changeset viewer.