Changeset 2168 for trunk/bp-groups/bp-groups-widgets.php
- Timestamp:
- 12/14/2009 03:24:05 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups/bp-groups-widgets.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-widgets.php
r2077 r2168 27 27 . $after_title; ?> 28 28 29 <?php if ( bp_has_ site_groups( 'type=popular&per_page=' . $instance['max_groups'] . '&max=' . $instance['max_groups'] ) ) : ?>29 <?php if ( bp_has_groups( 'type=popular&per_page=' . $instance['max_groups'] . '&max=' . $instance['max_groups'] ) ) : ?> 30 30 <div class="item-options" id="groups-list-options"> 31 31 <span class="ajax-loader" id="ajax-loader-groups"></span> … … 36 36 37 37 <ul id="groups-list" class="item-list"> 38 <?php while ( bp_ site_groups() ) : bp_the_site_group(); ?>38 <?php while ( bp_groups() ) : bp_the_group(); ?> 39 39 <li> 40 40 <div class="item-avatar"> 41 <a href="<?php bp_ the_site_group_link() ?>"><?php bp_the_site_group_avatar_thumb() ?></a>41 <a href="<?php bp_group_permalink() ?>"><?php bp_group_avatar_thumb() ?></a> 42 42 </div> 43 43 44 44 <div class="item"> 45 <div class="item-title"><a href="<?php bp_ the_site_group_link() ?>" title="<?php bp_the_site_group_name() ?>"><?php bp_the_site_group_name() ?></a></div>46 <div class="item-meta"><span class="activity"><?php bp_ the_site_group_member_count() ?></span></div>45 <div class="item-title"><a href="<?php bp_group_permalink() ?>" title="<?php bp_group_name() ?>"><?php bp_group_name() ?></a></div> 46 <div class="item-meta"><span class="activity"><?php bp_group_member_count() ?></span></div> 47 47 </div> 48 48 </li> … … 99 99 } 100 100 101 if ( bp_has_ site_groups( 'type=' . $type . '&per_page=' . $_POST['max_groups'] . '&max=' . $_POST['max_groups'] ) ) : ?>101 if ( bp_has_groups( 'type=' . $type . '&per_page=' . $_POST['max_groups'] . '&max=' . $_POST['max_groups'] ) ) : ?> 102 102 <?php echo "0[[SPLIT]]"; ?> 103 103 104 104 <ul id="groups-list" class="item-list"> 105 <?php while ( bp_ site_groups() ) : bp_the_site_group(); ?>105 <?php while ( bp_groups() ) : bp_the_group(); ?> 106 106 <li> 107 107 <div class="item-avatar"> 108 <a href="<?php bp_ the_site_group_link() ?>"><?php bp_the_site_group_avatar_thumb() ?></a>108 <a href="<?php bp_group_permalink() ?>"><?php bp_group_avatar_thumb() ?></a> 109 109 </div> 110 110 111 111 <div class="item"> 112 <div class="item-title"><a href="<?php bp_ the_site_group_link() ?>" title="<?php bp_the_site_group_name() ?>"><?php bp_the_site_group_name() ?></a></div>112 <div class="item-title"><a href="<?php bp_group_permalink() ?>" title="<?php bp_group_name() ?>"><?php bp_group_name() ?></a></div> 113 113 <div class="item-meta"> 114 114 <span class="activity"> 115 115 <?php 116 116 if ( 'newest-groups' == $_POST['filter'] ) { 117 bp_the_site_group_date_created();117 printf( __( 'created %s ago', 'buddypress' ), bp_get_group_date_created() ); 118 118 } else if ( 'recently-active-groups' == $_POST['filter'] ) { 119 bp_the_site_group_last_active();119 printf( __( 'active %s ago', 'buddypress' ), bp_get_group_last_active() ); 120 120 } else if ( 'popular-groups' == $_POST['filter'] ) { 121 bp_ the_site_group_member_count();121 bp_group_member_count(); 122 122 } 123 123 ?>
Note: See TracChangeset
for help on using the changeset viewer.