Changeset 11008 for trunk/src/bp-groups/bp-groups-widgets.php
- Timestamp:
- 08/10/2016 12:55:49 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-widgets.php
r10652 r11008 66 66 <div class="item-title"><a href="<?php bp_group_permalink() ?>" title="<?php bp_group_name() ?>"><?php bp_group_name() ?></a></div> 67 67 <div class="item-meta"> 68 <span class="activity"> 69 <?php 70 if ( 'newest-groups' == $_POST['filter'] ) { 71 printf( __( 'created %s', 'buddypress' ), bp_get_group_date_created() ); 72 } elseif ( 'recently-active-groups' == $_POST['filter'] ) { 73 printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); 74 } elseif ( 'popular-groups' == $_POST['filter'] ) { 75 bp_group_member_count(); 76 } 77 ?> 78 </span> 68 <?php if ( 'newest-groups' === $_POST['filter'] ) : ?> 69 <span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_date_created( 0, array( 'relative' => false ) ) ); ?>"><?php printf( __( 'created %s', 'buddypress' ), bp_get_group_date_created() ); ?></span> 70 <?php elseif ( 'recently-active-groups' === $_POST['filter'] ) : ?> 71 <span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span> 72 <?php else : ?> 73 <span class="activity"><?php bp_group_member_count(); ?></span> 74 <?php endif; ?> 79 75 </div> 80 76 </div>
Note: See TracChangeset
for help on using the changeset viewer.